From e67f2eedf909646eb4a2c51c3775f6500be87ea8 Mon Sep 17 00:00:00 2001 From: basebuilder_pel7x64builder0 Date: Mon, 4 May 2020 19:20:24 +0200 Subject: [PATCH] fuse3 & fuse-overlayfs package version creation Signed-off-by: basebuilder_pel7x64builder0 --- SPECS/fuse-overlayfs.spec | 260 ++++++++++++++++++++++++++++++++++++++ SPECS/fuse3.spec | 206 ++++++++++++++++++++++++++++++ 2 files changed, 466 insertions(+) create mode 100644 SPECS/fuse-overlayfs.spec create mode 100644 SPECS/fuse3.spec diff --git a/SPECS/fuse-overlayfs.spec b/SPECS/fuse-overlayfs.spec new file mode 100644 index 00000000..f2d731f8 --- /dev/null +++ b/SPECS/fuse-overlayfs.spec @@ -0,0 +1,260 @@ +%define git0 https://github.com/containers/%{name} +%define commit0 561d0287dc2ec73cd7167798611272fb5eef6f58 +%define shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +# Used for comparing with latest upstream tag +# to decide whether to autobuild (non-rawhide only) +%define built_tag v1.0.0 +%define built_tag_strip %(b=%{built_tag}; echo ${b:1}) +%define download_url https://github.com/containers/%{name}/archive/%{built_tag}.tar.gz + +%{!?_modulesloaddir:%global _modulesloaddir %{_usr}/lib/modules-load.d} + +Name: fuse-overlayfs +Version: 1.0.0 +Release: 1%{?dist} +Summary: FUSE overlay+shiftfs implementation for rootless containers +License: GPLv3+ +URL: %{git0} +Source0: %{download_url} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: fuse3-devel +BuildRequires: gcc +BuildRequires: git +BuildRequires: make +%if 0%{?fedora} && ! 0%{?centos} +BuildRequires: systemd-rpm-macros +%endif +Requires: kmod +Provides: bundled(gnulib) = cb634d40c7b9bbf33fa5198d2e27fdab4c0bf143 +Requires: fuse3 + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +%{summary} + +This package contains library source intended for +building other packages which use import path with +%{import_path} prefix. + +%prep +%autosetup -Sgit -n %{name}-%{built_tag_strip} + +%build +./autogen.sh +./configure --prefix=%{_usr} --libdir=%{_libdir} +%{__make} + +%install +make DESTDIR=%{buildroot} 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 Apr 20 2020 RH Container Bot - 1.0.0-1 +- autobuilt v1.0.0 + +* Tue Mar 17 2020 RH Container Bot - 0.7.8-1 +- autobuilt v0.7.8 + +* Wed Mar 04 2020 RH Container Bot - 0.7.7-1 +- autobuilt v0.7.7 + +* Sat Feb 15 2020 RH Container Bot - 0.7.6-1 +- autobuilt v0.7.6 + +* Fri Feb 07 2020 RH Container Bot - 0.7.6-2 +- bump to v0.7.6 +- autobuilt ce61c7e + +* Sat Jan 18 2020 RH Container Bot - 0.7.5-2 +- bump to v0.7.5 +- autobuilt 99d49d5 + +* Fri Jan 17 2020 RH Container Bot - 0.7.4-2 +- bump to v0.7.4 +- autobuilt 1a1c42a + +* Thu Jan 09 2020 RH Container Bot - 0.7.3-2 +- bump to v0.7.3 +- autobuilt e01ba30 + +* Fri Dec 06 2019 RH Container Bot - 0.7.2-2 +- bump to v0.7.2 +- autobuilt 8c59873 + +* Fri Nov 29 2019 Giuseppe Scrivano - 0.7.2-1 +- bump to v0.7.2 + +* Thu Nov 07 2019 Giuseppe Scrivano - 0.7-1 +- bump to v0.7 + +* Wed Oct 16 2019 RH Container Bot - 0.6.5-2 +- bump to v0.6.5 +- autobuilt 3bc0aa6 + +* Fri Oct 04 2019 RH Container Bot - 0.6.4-2 +- bump to v0.6.4 +- autobuilt 098d9ad + +* Thu Sep 26 2019 RH Container Bot - 0.6.3-2.0.dev.git46c0f8e +- bump to 0.6.3 +- autobuilt 46c0f8e + +* Wed Sep 18 2019 Lokesh Mandvekar (Bot) - 0.6.2-7.0.dev.gitb0a9bda +- autobuilt b0a9bda + +* Fri Sep 13 2019 Jindrich Novy - 0.6.2-6.0.dev.git66e01c8 +- require fuse3 so that fuse-overlayfs will pull in /usr/bin/fusermount3 + +* Fri Sep 13 2019 Lokesh Mandvekar (Bot) - 0.6.2-5.0.dev.git66e01c8 +- autobuilt 66e01c8 + +* Wed Sep 11 2019 Lokesh Mandvekar (Bot) - 0.6.2-4.0.dev.git74fb3dd +- autobuilt 74fb3dd + +* Mon Sep 09 2019 Lokesh Mandvekar (Bot) - 0.6.2-3.0.dev.git16f39b1 +- autobuilt 16f39b1 + +* Wed Sep 04 2019 Lokesh Mandvekar (Bot) - 0.6.2-2.0.dev.git67a4afe +- bump to 0.6.2 +- autobuilt 67a4afe + +* Fri Aug 30 2019 Lokesh Mandvekar (Bot) - 0.6.1-3.0.dev.gitcb4b35e +- autobuilt cb4b35e + +* Mon Aug 26 2019 Lokesh Mandvekar (Bot) - 0.6.1-2.0.dev.gitc548530 +- bump to 0.6.1 +- autobuilt c548530 + +* Sun Aug 25 2019 Lokesh Mandvekar (Bot) - 0.6-2.0.dev.git43b641d +- bump to 0.6 +- autobuilt 43b641d + +* Wed Aug 21 2019 Lokesh Mandvekar - 0.5.2-1.1.dev.gitf8ba9ad +- change release tag to preserve upgrade path + +* Wed Aug 21 2019 Lokesh Mandvekar (Bot) - 0.5.2-0.2.dev.gitf8ba9ad +- autobuilt f8ba9ad + +* Mon Aug 19 2019 Lokesh Mandvekar (Bot) - 0.5.2-0.1.dev.git4dc60f0 +- bump to 0.5.2 +- autobuilt 4dc60f0 + +* Fri Aug 16 2019 Lokesh Mandvekar (Bot) - 0.5.1-0.3.dev.git89b814d +- autobuilt 89b814d + +* Mon Aug 12 2019 Lokesh Mandvekar (Bot) - 0.5.1-0.2.dev.gitc756bbe +- autobuilt c756bbe + +* Thu Aug 08 2019 Lokesh Mandvekar (Bot) - 0.5.1-0.1.dev.git58e3f7c +- bump to 0.5.1 +- autobuilt 58e3f7c + +* Tue Aug 06 2019 Lokesh Mandvekar (Bot) - 0.5-3.1.dev.git80eb59d +- autobuilt 80eb59d + +* Thu Aug 01 2019 Lokesh Mandvekar (Bot) - 0.5-2.1.dev.gitb92a654 +- autobuilt b92a654 + +* Tue Jul 30 2019 Giuseppe Scrivano - 0.5 +- built commit v0.5 + +* Mon Jul 15 2019 Lokesh Mandvekar - 0.4.1-4 +- update release tag + +* Mon Jul 15 2019 Lokesh Mandvekar - 0.4.1-3.git7bc2dd9 +- update release tag + +* Mon Jul 15 2019 Lokesh Mandvekar (Bot) - 0.4.1-2.dev.git7bc2dd9 +- bump to 0.4.1 +- autobuilt tag v0. + +* Fri Jun 21 2019 Giuseppe Scrivano - 0.4.2-0.dev.git7bc2dd9 +- built commit 7bc2dd9 + +* Thu Jun 13 2019 Giuseppe Scrivano - 0.4.1-0.dev.git1ff7c64 +- built commit 1ff7c64 + +* Thu Jun 06 2019 Giuseppe Scrivano - 0.4-1.dev.git8d92da6 +- built commit 8d92da6 + +* Fri May 17 2019 Giuseppe Scrivano - 0.3-10.dev.gita7c829 +- built commit a7c829 + +* Mon May 06 2019 Giuseppe Scrivano - 0.3-9.dev.git89bd69b +- built commit 89bd69b + +* Thu Mar 28 2019 Giuseppe Scrivano - 0.3-8.dev.gita6958ce +- built commit a6958ce + +* Mon Mar 25 2019 Giuseppe Scrivano - 0.3-7.dev.git8ec68ae +- Add loading of fuse file system + +* Thu Mar 21 2019 Dan Walsh - 0.3-6.dev.git8ec68ae +- Add loading of fuse file system + +* Sun Mar 10 2019 Giuseppe Scrivano - 0.3-5.dev.git8ec68ae +- built commit 8ec68ae + +* Tue Feb 26 2019 Giuseppe Scrivano - 0.3-4.dev.gitea72572 +- built commit ea72572 + +* Wed Feb 13 2019 Giuseppe Scrivano - 0.3-3.dev.gitff65ede +- built commit ff65ede + +* Thu Jan 31 2019 Fedora Release Engineering - 0.3-2.dev.git6d269aa +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 15 2019 Giuseppe Scrivano - 0.3-1.dev.git6d269aa +- built commit 6d269aa + +* Tue Jan 08 2019 Giuseppe Scrivano - 0.1-9.dev.git5c9742d +- built commit 5c9742d + +* Thu Dec 20 2018 Giuseppe Scrivano - 0.1-8.dev.git91bb401 +- built commit 91bb401 + +* Tue Dec 18 2018 Giuseppe Scrivano - 0.1-7.dev.gitf48e1ef +- built commit f48e1ef + +* Fri Nov 23 2018 Giuseppe Scrivano - 0.1-6.dev.git3d48bf9 +- built commit 3d48bf9 + +* Fri Aug 10 2018 Lokesh Mandvekar - 0.1-5.dev.gitd40ac75 +- built commit d40ac75 + +* Mon Jul 30 2018 Lokesh Mandvekar - 0.1-4.dev.git79c70fd +- Resolves: #1609598 - initial upload to Fedora +- bundled gnulib + +* Mon Jul 30 2018 Lokesh Mandvekar - 0.1-3.dev.git79c70fd +- correct license field + +* Mon Jul 30 2018 Lokesh Mandvekar - 0.1-2.dev.git79c70fd +- fix license + +* Sun Jul 29 2018 Lokesh Mandvekar - 0.1-1.dev.git13575b6 +- First package for Fedora diff --git a/SPECS/fuse3.spec b/SPECS/fuse3.spec new file mode 100644 index 00000000..a0c8b2bf --- /dev/null +++ b/SPECS/fuse3.spec @@ -0,0 +1,206 @@ +Name: fuse3 +Version: 3.9.1 +Release: 1%{?dist} +Summary: File System in Userspace (FUSE) v3 utilities +License: GPL+ +URL: http://fuse.sf.net +Source0: https://github.com/libfuse/libfuse/archive/fuse-%{version}.tar.gz +Source1: fuse.conf + +BuildRequires: which +%if ! 0%{?el6} +Conflicts: filesystem < 3 +%endif +BuildRequires: libselinux-devel +BuildRequires: meson, ninja-build, gcc, gcc-c++ +%if ! 0%{?el6} && ! 0%{?el7} +BuildRequires: systemd-udev +%endif +%if 0%{?el6} +BuildRequires: udev, kernel-devel +%else +Requires: %{_sysconfdir}/fuse.conf +%endif +# fuse-common 3.4.2-3 had the fuse & fuse3 man pages in it +Conflicts: fuse-common < 3.4.2-4 + +%description +With FUSE it is possible to implement a fully functional filesystem in a +userspace program. This package contains the FUSE v3 userspace tools to +mount a FUSE filesystem. + +%package libs +Summary: File System in Userspace (FUSE) v3 libraries +License: LGPLv2+ +%if ! 0%{?el6} +Conflicts: filesystem < 3 +%endif + +%description libs +Devel With FUSE it is possible to implement a fully functional filesystem in a +userspace program. This package contains the FUSE v3 libraries. + +%package devel +Summary: File System in Userspace (FUSE) v3 devel files +Requires: %{name}-libs = %{version}-%{release} +Requires: pkgconfig +License: LGPLv2+ +%if ! 0%{?el6} +Conflicts: filesystem < 3 +%endif + +%description devel +With FUSE it is possible to implement a fully functional filesystem in a +userspace program. This package contains development files (headers, +pgk-config) to develop FUSE v3 based applications/filesystems. + +%if ! 0%{?el6} && ! 0%{?el7} +%package -n fuse-common +Summary: Common files for File System in Userspace (FUSE) v2 and v3 +License: GPL+ + +%description -n fuse-common +Common files for FUSE v2 and FUSE v3. +%endif + +%prep +%setup -n libfuse-fuse-%{version} + +%build +export LC_ALL=en_US.UTF-8 +%if ! 0%{?_vpath_srcdir:1} +%global _vpath_srcdir . +%endif +%if ! 0%{?_vpath_builddir:1} +%global _vpath_builddir build +%endif +%if 0%{?el6} +%if ! 0%{?__global_ldflags:1} +%global __global_ldflags "" +%endif +%meson -D udevrulesdir=/etc/udev/rules.d +%else +%meson +%endif + +(cd %{_vpath_builddir} +%if 0%{?el6} +meson configure -D c_args=-I"`ls -d /usr/src/kernels/*/include|head -1`" +%endif +%if 0%{?el6} || 0%{?el7} +meson configure -D examples=false +%endif +# don't have root for installation +meson configure -D useroot=false +ninja-build reconfigure +) +%meson_build + +%install +export MESON_INSTALL_DESTDIR_PREFIX=%{buildroot}/usr %meson_install +find %{buildroot} . +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' +# change from 4755 to 0755 to allow stripping -- fixed later in files +chmod 0755 %{buildroot}/%{_bindir}/fusermount3 + +# Get rid of static libs +rm -f %{buildroot}/%{_libdir}/*.a +# No need to create init-script +rm -f %{buildroot}%{_sysconfdir}/init.d/fuse3 + +%if 0%{?el6} || 0%{?el7} +# This is in the fuse package on el7 and there's no default on el6 +rm -f %{buildroot}%{_sysconfdir}/fuse.conf +%else +# Install config-file +install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir} +%endif + +# Delete pointless udev rules, which do not belong in /usr/lib (brc#748204) +rm -f %{buildroot}/usr/lib/udev/rules.d/99-fuse3.rules + +%if 0%{?el6} || 0%{?el7} +%post -p /sbin/ldconfig libs +%postun -p /sbin/ldconfig libs +%else +%ldconfig_scriptlets libs +%endif + +%{!?_licensedir:%global license %%doc} + +%files +%license LICENSE GPL2.txt +%doc AUTHORS ChangeLog.rst README.md +%{_sbindir}/mount.fuse3 +%attr(4755,root,root) %{_bindir}/fusermount3 +%{_mandir}/man1/* +%{_mandir}/man8/* +%if 0%{?el6} +%{_sysconfdir}/udev/rules.d/* +%endif + +%files libs +%license LGPL2.txt +%{_libdir}/libfuse3.so.* + +%files devel +%{_libdir}/libfuse3.so +%{_libdir}/pkgconfig/fuse3.pc +%{_includedir}/fuse3/ + +%if ! 0%{?el6} && ! 0%{?el7} +%files -n fuse-common +%config(noreplace) %{_sysconfdir}/fuse.conf +%endif + +%changelog +* Thu Mar 19 2020 Tom Callaway - 3.9.1-1 +- update to 3.9.1 + +* Tue Jan 28 2020 Fedora Release Engineering - 3.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Dec 16 2019 Tom Callaway - 3.9.0-1 +- update to 3.9.0 + +* Mon Nov 4 2019 Tom Callaway - 3.8.0-1 +- update to 3.8.0 + +* Fri Sep 27 2019 Tom Callaway - 3.7.0-1 +- update to 3.7.0 + +* Sun Sep 1 2019 Peter Lemenkov - 3.6.2-1 +- Update to 3.6.2 + +* Thu Jul 25 2019 Fedora Release Engineering - 3.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Jul 03 2019 Dave Dykstra - 3.6.1-3 +- Update to the final version of pr #421 + +* Wed Jul 03 2019 Dave Dykstra - 3.6.1-2 +- Update to newer version of pr #421 +- Disable building examples on el7 + +* Thu Jun 13 2019 Tom Callaway - 3.6.1-1 +- Update to 3.6.1 + +* Fri May 24 2019 Dave Dykstra - 3.5.0-1 +- Upgrade to upstream 3.5.0 + +* Sat May 04 2019 Dave Dykstra - 3.4.2-7 +- Fix building on el6 + +* Wed May 01 2019 Dave Dykstra - 3.4.2-6 +- Need Conflicts: fuse-common < 3.4.2-4, because <= 3.4.2-3 isn't quite + enough. + +* Wed May 01 2019 Dave Dykstra - 3.4.2-5 +- Update the Conflicts: fuse-common <= version to 3.4.2-3 + +* Wed May 01 2019 Dave Dykstra - 3.4.2-4 +- Bump release number in order to larger than a rebuild of fuse package + done before separation pull request was merged. + +* Mon Apr 08 2019 Dave Dykstra - 3.4.2-3 +- Separate out from fuse package