2022-02-17 00:51:56 +00:00
|
|
|
# Need to be specific for flatpak builds, otherwise it'll create rules
|
|
|
|
# in other directory than /app/etc which will make builds fail.
|
|
|
|
# On Fedora, this should be the same definition.
|
|
|
|
%if 0%{?flatpak}
|
|
|
|
%global _udevrulesdir %{_prefix}/lib/udev/rules.d
|
|
|
|
%endif
|
|
|
|
|
2023-08-11 21:53:21 +00:00
|
|
|
%global xyz_version 3.16.1
|
|
|
|
%global xy_version %(sed 's/\\(.*\\)\\..*/\\1/'<<<%{xyz_version})
|
|
|
|
|
2019-04-08 18:14:30 +00:00
|
|
|
Name: fuse3
|
2023-08-11 21:53:21 +00:00
|
|
|
Version: %{xyz_version}
|
|
|
|
Release: 1%{?dist}
|
2019-04-08 18:14:30 +00:00
|
|
|
Summary: File System in Userspace (FUSE) v3 utilities
|
|
|
|
License: GPL+
|
|
|
|
URL: http://fuse.sf.net
|
2023-08-11 21:53:21 +00:00
|
|
|
Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz.sig
|
|
|
|
Source2: https://raw.githubusercontent.com/libfuse/libfuse/master/signify/fuse-%{xy_version}.pub
|
|
|
|
Source3: fuse.conf
|
2020-10-14 14:04:27 +00:00
|
|
|
Patch0: fuse3-gcc11.patch
|
2019-04-08 18:14:30 +00:00
|
|
|
|
2023-08-11 21:53:21 +00:00
|
|
|
BuildRequires: signify
|
2019-04-08 18:14:30 +00:00
|
|
|
BuildRequires: which
|
2019-05-05 01:16:54 +00:00
|
|
|
%if ! 0%{?el6}
|
2019-04-08 18:14:30 +00:00
|
|
|
Conflicts: filesystem < 3
|
2019-05-05 01:16:54 +00:00
|
|
|
%endif
|
2019-04-08 18:14:30 +00:00
|
|
|
BuildRequires: libselinux-devel
|
2019-06-13 17:47:24 +00:00
|
|
|
BuildRequires: meson, ninja-build, gcc, gcc-c++
|
2019-04-08 18:14:30 +00:00
|
|
|
%if ! 0%{?el6} && ! 0%{?el7}
|
2019-04-08 18:36:57 +00:00
|
|
|
BuildRequires: systemd-udev
|
2019-04-08 18:14:30 +00:00
|
|
|
%endif
|
2019-05-05 01:16:54 +00:00
|
|
|
%if 0%{?el6}
|
|
|
|
BuildRequires: udev, kernel-devel
|
|
|
|
%else
|
2019-04-08 18:14:30 +00:00
|
|
|
Requires: %{_sysconfdir}/fuse.conf
|
2019-05-05 01:16:54 +00:00
|
|
|
%endif
|
2019-05-01 14:57:31 +00:00
|
|
|
# fuse-common 3.4.2-3 had the fuse & fuse3 man pages in it
|
2019-05-01 22:48:26 +00:00
|
|
|
Conflicts: fuse-common < 3.4.2-4
|
2019-04-08 18:14:30 +00:00
|
|
|
|
2023-06-26 13:20:00 +00:00
|
|
|
# The dependency from fuse3 to fuse3-libs is already implicit through
|
|
|
|
# the generated library dependency, but unless we force the exact
|
|
|
|
# version then we risk mixing different fuse3 & fuse3-libs versions
|
|
|
|
# which is not likely to be a well-tested situation upstream.
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
2019-04-08 18:14:30 +00:00
|
|
|
%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+
|
2019-05-05 01:16:54 +00:00
|
|
|
%if ! 0%{?el6}
|
2019-04-08 18:14:30 +00:00
|
|
|
Conflicts: filesystem < 3
|
2019-05-05 01:16:54 +00:00
|
|
|
%endif
|
2019-04-08 18:14:30 +00:00
|
|
|
|
|
|
|
%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+
|
2019-05-05 01:16:54 +00:00
|
|
|
%if ! 0%{?el6}
|
2019-04-08 18:14:30 +00:00
|
|
|
Conflicts: filesystem < 3
|
2019-05-05 01:16:54 +00:00
|
|
|
%endif
|
2019-04-08 18:14:30 +00:00
|
|
|
|
|
|
|
%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
|
2023-08-11 21:53:21 +00:00
|
|
|
# Fuse is using signify rather than PGG since 3.15.1 For more details see:
|
|
|
|
# https://github.com/libfuse/libfuse/releases/tag/fuse-3.15.1
|
|
|
|
signify -V -m '%{SOURCE0}' -p '%{SOURCE2}'
|
|
|
|
|
|
|
|
%setup -n fuse-%{version}
|
2023-04-03 15:54:58 +00:00
|
|
|
%patch -P0 -p1
|
2019-04-08 18:14:30 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-01 17:43:23 +00:00
|
|
|
export LC_ALL=en_US.UTF-8
|
2019-04-08 18:14:30 +00:00
|
|
|
%if ! 0%{?_vpath_srcdir:1}
|
|
|
|
%global _vpath_srcdir .
|
|
|
|
%endif
|
2019-05-05 01:16:54 +00:00
|
|
|
%if ! 0%{?_vpath_builddir:1}
|
|
|
|
%global _vpath_builddir build
|
|
|
|
%endif
|
|
|
|
%if 0%{?el6}
|
|
|
|
%if ! 0%{?__global_ldflags:1}
|
|
|
|
%global __global_ldflags ""
|
|
|
|
%endif
|
2022-02-17 00:51:56 +00:00
|
|
|
%meson -D udevrulesdir=%{_udevrulesdir}
|
2019-07-03 19:53:16 +00:00
|
|
|
%else
|
2022-02-21 14:31:42 +00:00
|
|
|
%if 0%{?flatpak}
|
|
|
|
%meson -D udevrulesdir=%{_udevrulesdir}
|
|
|
|
%else
|
2019-09-01 17:43:23 +00:00
|
|
|
%meson
|
2019-07-03 19:53:16 +00:00
|
|
|
%endif
|
2022-02-21 14:31:42 +00:00
|
|
|
%endif
|
2019-07-03 19:53:16 +00:00
|
|
|
|
2019-05-05 01:16:54 +00:00
|
|
|
(cd %{_vpath_builddir}
|
2019-07-03 19:53:16 +00:00
|
|
|
%if 0%{?el6}
|
2019-05-05 01:16:54 +00:00
|
|
|
meson configure -D c_args=-I"`ls -d /usr/src/kernels/*/include|head -1`"
|
2019-07-03 19:53:16 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?el6} || 0%{?el7}
|
|
|
|
meson configure -D examples=false
|
|
|
|
%endif
|
|
|
|
# don't have root for installation
|
2019-07-04 13:32:15 +00:00
|
|
|
meson configure -D useroot=false
|
2019-05-05 01:16:54 +00:00
|
|
|
ninja-build reconfigure
|
|
|
|
)
|
2019-04-08 18:14:30 +00:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
2022-02-17 00:51:56 +00:00
|
|
|
export MESON_INSTALL_DESTDIR_PREFIX=%{buildroot}%{_prefix} %meson_install
|
2019-04-08 18:14:30 +00:00
|
|
|
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
|
2022-02-17 00:51:56 +00:00
|
|
|
# This path is hardcoded:
|
|
|
|
# https://github.com/libfuse/libfuse/blob/master/util/install_helper.sh#L43
|
|
|
|
# so flatpaks will fail unless we delete it below.
|
|
|
|
rm -f %{buildroot}/etc/init.d/fuse3
|
|
|
|
|
2019-04-08 18:14:30 +00:00
|
|
|
|
|
|
|
%if 0%{?el6} || 0%{?el7}
|
2019-05-05 01:16:54 +00:00
|
|
|
# This is in the fuse package on el7 and there's no default on el6
|
2019-04-08 18:14:30 +00:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/fuse.conf
|
|
|
|
%else
|
|
|
|
# Install config-file
|
2023-08-11 21:53:21 +00:00
|
|
|
install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}
|
2019-04-08 18:14:30 +00:00
|
|
|
%endif
|
|
|
|
|
2022-02-17 00:51:56 +00:00
|
|
|
# Delete pointless udev rules (brc#748204)
|
|
|
|
rm -f %{buildroot}%{_udevrulesdir}/99-fuse3.rules
|
2019-04-08 18:14:30 +00:00
|
|
|
|
|
|
|
%if 0%{?el6} || 0%{?el7}
|
|
|
|
%post -p /sbin/ldconfig libs
|
|
|
|
%postun -p /sbin/ldconfig libs
|
|
|
|
%else
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
%endif
|
|
|
|
|
2019-05-05 01:16:54 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
2019-04-08 18:14:30 +00:00
|
|
|
%files
|
|
|
|
%license LICENSE GPL2.txt
|
|
|
|
%doc AUTHORS ChangeLog.rst README.md
|
|
|
|
%{_sbindir}/mount.fuse3
|
|
|
|
%attr(4755,root,root) %{_bindir}/fusermount3
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
2019-05-05 01:16:54 +00:00
|
|
|
%if 0%{?el6}
|
2022-02-17 00:51:56 +00:00
|
|
|
%{_udevrulesdir}/*
|
2019-05-05 01:16:54 +00:00
|
|
|
%endif
|
2019-04-08 18:14:30 +00:00
|
|
|
|
|
|
|
%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
|
2023-08-11 21:53:21 +00:00
|
|
|
* Wed Aug 09 2023 Pavel Reichl <preichl@redhat.com> - 3.16.1-1
|
|
|
|
- update to 3.16.1
|
|
|
|
- Add tarball signature verification
|
|
|
|
|
2023-07-19 20:24:49 +00:00
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-26 13:20:00 +00:00
|
|
|
* Mon Jun 26 2023 Richard W.M. Jones <rjones@redhat.com> - 3.14.1-2
|
|
|
|
- Force fuse3 and fuse3-libs versions to be identical
|
|
|
|
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/LYQUYUAS7FG6FFGJBBWP7XEV563V4LBS/
|
|
|
|
|
2023-04-03 15:54:58 +00:00
|
|
|
* Mon Apr 3 2023 Tom Callaway <spot@fedoraproject.org> - 3.14.1-1
|
|
|
|
- update to 3.14.1
|
|
|
|
|
2023-02-28 15:08:19 +00:00
|
|
|
* Tue Feb 28 2023 Richard W.M. Jones <rjones@redhat.com> - 3.14.0-1
|
|
|
|
- Update to 3.14.0
|
|
|
|
|
2023-02-08 20:54:18 +00:00
|
|
|
* Wed Feb 8 2023 Tom Callaway <spot@fedoraproject.org> - 3.13.1-1
|
|
|
|
- update to 3.13.1
|
|
|
|
|
2023-01-20 14:22:47 +00:00
|
|
|
* Fri Jan 20 2023 Tom Callaway <spot@fedoraproject.org> - 3.13.0-1
|
|
|
|
- update to 3.13.0
|
|
|
|
|
2023-01-19 04:02:29 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-09-09 04:17:30 +00:00
|
|
|
* Fri Sep 9 2022 Tom Callaway <spot@fedoraproject.org> - 3.12.0-1
|
|
|
|
- update to 3.12.0
|
|
|
|
|
2022-07-21 03:46:19 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-02-21 14:31:42 +00:00
|
|
|
* Mon Feb 21 2022 Tom Callaway <spot@fedoraproject.org> - 3.10.5-4
|
|
|
|
- force udevrulesdir option for flatpak builds
|
|
|
|
|
2022-02-17 00:51:56 +00:00
|
|
|
* Wed Feb 16 2022 Tom Callaway <spot@fedoraproject.org> - 3.10.5-3
|
|
|
|
- fix flatpak issues
|
|
|
|
|
2022-01-20 03:33:28 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-09-16 15:39:20 +00:00
|
|
|
* Thu Sep 16 2021 Tom Callaway <spot@fedoraproject.org> - 3.10.5-1
|
|
|
|
- update to 3.10.5
|
|
|
|
|
2021-07-21 23:29:17 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-15 13:32:36 +00:00
|
|
|
* Tue Jun 15 2021 Tom Callaway <spot@fedoraproject.org> - 3.10.4-1
|
|
|
|
- update to 3.10.4
|
|
|
|
|
2021-05-06 19:06:15 +00:00
|
|
|
* Thu May 6 2021 Tom Callaway <spot@fedoraproject.org> - 3.10.3-1
|
|
|
|
- update to 3.10.3
|
|
|
|
|
2021-02-05 15:50:41 +00:00
|
|
|
* Fri Feb 5 2021 Tom Callaway <spot@fedoraproject.org> - 3.10.2-1
|
|
|
|
- update to 3.10.2
|
|
|
|
|
2021-01-26 06:03:06 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-07 16:22:03 +00:00
|
|
|
* Mon Dec 7 2020 Tom Callaway <spot@fedoraproject.org> - 3.10.1-1
|
|
|
|
- update to 3.10.1
|
|
|
|
|
2020-10-14 14:04:27 +00:00
|
|
|
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 3.10.0-2
|
|
|
|
- Add missing #include for gcc-11
|
|
|
|
|
2020-10-12 14:41:14 +00:00
|
|
|
* Mon Oct 12 2020 Tom Callaway <spot@fedoraproject.org> - 3.10.0-1
|
|
|
|
- update to 3.10.0
|
|
|
|
- enable lto
|
|
|
|
|
2020-08-10 14:27:44 +00:00
|
|
|
* Mon Aug 10 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.4-1
|
|
|
|
- update to 3.9.4
|
|
|
|
|
2020-07-27 17:57:43 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-01 18:30:37 +00:00
|
|
|
* Wed Jul 1 2020 Jeff Law <law@redhat.com> - 3.9.2-2
|
|
|
|
- Disable LTO
|
|
|
|
|
2020-06-18 17:14:14 +00:00
|
|
|
* Thu Jun 18 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.2-1
|
|
|
|
- update to 3.9.2
|
|
|
|
|
2020-03-19 21:48:36 +00:00
|
|
|
* Thu Mar 19 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.1-1
|
|
|
|
- update to 3.9.1
|
|
|
|
|
2020-01-28 19:10:07 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-16 13:33:32 +00:00
|
|
|
* Mon Dec 16 2019 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
|
|
|
|
- update to 3.9.0
|
|
|
|
|
2019-11-04 17:04:16 +00:00
|
|
|
* Mon Nov 4 2019 Tom Callaway <spot@fedoraproject.org> - 3.8.0-1
|
|
|
|
- update to 3.8.0
|
|
|
|
|
2019-09-28 01:51:36 +00:00
|
|
|
* Fri Sep 27 2019 Tom Callaway <spot@fedoraproject.org> - 3.7.0-1
|
|
|
|
- update to 3.7.0
|
|
|
|
|
2019-09-01 17:43:23 +00:00
|
|
|
* Sun Sep 1 2019 Peter Lemenkov <lemenkov@gmail.com> - 3.6.2-1
|
|
|
|
- Update to 3.6.2
|
|
|
|
|
2019-07-25 01:11:31 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-04 13:32:15 +00:00
|
|
|
* Wed Jul 03 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.6.1-3
|
|
|
|
- Update to the final version of pr #421
|
|
|
|
|
2019-07-03 19:53:16 +00:00
|
|
|
* Wed Jul 03 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.6.1-2
|
|
|
|
- Update to newer version of pr #421
|
|
|
|
- Disable building examples on el7
|
|
|
|
|
2019-06-13 17:40:49 +00:00
|
|
|
* Thu Jun 13 2019 Tom Callaway <spot@fedoraproject.org> - 3.6.1-1
|
|
|
|
- Update to 3.6.1
|
|
|
|
|
2019-05-24 15:47:09 +00:00
|
|
|
* Fri May 24 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.5.0-1
|
|
|
|
- Upgrade to upstream 3.5.0
|
|
|
|
|
2019-05-05 01:16:54 +00:00
|
|
|
* Sat May 04 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-7
|
|
|
|
- Fix building on el6
|
|
|
|
|
2019-05-01 22:48:26 +00:00
|
|
|
* Wed May 01 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-6
|
|
|
|
- Need Conflicts: fuse-common < 3.4.2-4, because <= 3.4.2-3 isn't quite
|
|
|
|
enough.
|
|
|
|
|
2019-05-01 14:57:31 +00:00
|
|
|
* Wed May 01 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-5
|
|
|
|
- Update the Conflicts: fuse-common <= version to 3.4.2-3
|
|
|
|
|
2019-05-01 14:27:45 +00:00
|
|
|
* Wed May 01 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-4
|
|
|
|
- Bump release number in order to larger than a rebuild of fuse package
|
|
|
|
done before separation pull request was merged.
|
|
|
|
|
2019-04-08 18:14:30 +00:00
|
|
|
* Mon Apr 08 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-3
|
|
|
|
- Separate out from fuse package
|