diff --git a/fuse-overlayfs.spec b/fuse-overlayfs.spec new file mode 100644 index 0000000..3251f18 --- /dev/null +++ b/fuse-overlayfs.spec @@ -0,0 +1,59 @@ +# Used for comparing with latest upstream tag +# to decide whether to autobuild (non-rawhide only) +%define built_tag v1.5.0 +%define built_tag_strip %(b=%{built_tag}; echo ${b:1}) +%{!?_modulesloaddir:%global _modulesloaddir %{_usr}/lib/modules-load.d} + +Name: fuse-overlayfs +Version: 1.5.0 +Release: 1 +Summary: FUSE overlay+shiftfs implementation for rootless containers +License: GPLv3+ +URL: https://github.com/containers/fuse-overlayfs +Source0: https://github.com/containers/fuse-overlayfs/archive/refs/tags/v1.5.0.tar.gz +BuildRequires: autoconf automake fuse3-devel +BuildRequires: gcc git make fuse3 +Requires: kmod fuse3 +Provides: bundled(gnulib) = cb634d40c7b9bbf33fa5198d2e27fdab4c0bf143 + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +This package contains library source intended for +building other packages which use import path with. + +%prep +%autosetup -Sgit -n %{name}-%{built_tag_strip} + +%build +./autogen.sh +./configure --prefix=%{_usr} --libdir=%{_libdir} +%{__make} + +%install +%make_install +install -d %{buildroot}%{_modulesloaddir} +echo fuse > %{buildroot}%{_modulesloaddir}/fuse-overlayfs.conf + +%post +modprobe fuse > /dev/null 2>&1 || : + +%check +#define license tag if not already defined +%{!?_licensedir:%global license %doc} + +%files +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/* +%{_modulesloaddir}/fuse-overlayfs.conf + +%changelog +* Mon Jan 24 2022 fushanqing - 1.5.0-1 +- Initial package \ No newline at end of file diff --git a/v1.5.0.tar.gz b/v1.5.0.tar.gz new file mode 100644 index 0000000..93241bf Binary files /dev/null and b/v1.5.0.tar.gz differ