%global date 20180628 %global gittag be557410232d84929614410d9048468bc6e5f671 %global short_gittag %(c=%{gittag}; echo ${c:0:7}) Name: apfs-fuse Summary: A read-only FUSE driver for Apple's APFS Version: 0 Release: 1.%{date}git%{short_gittag}%{?dist} License: GPLv2+ URL: https://github.com/sgan81/apfs-fuse Source0: https://github.com/sgan81/%{name}/archive/%{short_gittag}/%{name}-%{short_gittag}.tar.gz Source1: https://github.com/lzfse/lzfse/archive/lzfse-1.0.tar.gz Provides: bundled(lzfse) = 1.0 Requires: fuse BuildRequires: fuse-devel libicu-devel libattr-devel zlib-devel bzip2-devel BuildRequires: cmake %description apfs-fuse is a read-only driver for the new Apple File System, APFS. Since Apple didn't document the disk format, this driver should be considered experimental. Not all compression methods are supported yet, thus the driver may return compressed files instead of uncompressed ones. %prep %autosetup -n %{name}-%{gittag} cd 3rdparty rmdir lzfse tar zxf %{SOURCE1} mv lzfse-* lzfse %build %cmake -DBUILD_SHARED_LIBS:BOOL=OFF . %make_build %install mkdir -p %{buildroot}/%{_bindir} cp -a bin/apfs-* %{buildroot}/%{_bindir}/ %files %{_bindir}/apfs-* %doc README.md %license LICENSE %changelog * Thu Jun 28 2018 Bastien Nocera - First Fedora version based off package by Lawrence R. Rogers