Blame SPECS/fuse3.spec

2238cc
Name:		fuse3
2238cc
Version:	3.10.2
26afa1
Release:	5%{?dist}
2238cc
Summary:	File System in Userspace (FUSE) v3 utilities
2238cc
License:	GPL+
2238cc
URL:		http://fuse.sf.net
2238cc
Source0:	https://github.com/libfuse/libfuse/archive/fuse-%{version}.tar.gz
2238cc
Source1:	fuse.conf
2238cc
Patch0:         fuse3-gcc11.patch
26afa1
Patch1:         fuse-3.10.4-fix-test-failure.patch
2238cc
2238cc
BuildRequires:	which
2238cc
%if ! 0%{?el6}
2238cc
Conflicts:	filesystem < 3
2238cc
%endif
2238cc
BuildRequires:	libselinux-devel
2238cc
BuildRequires:	meson, ninja-build, gcc, gcc-c++
2238cc
%if ! 0%{?el6} && ! 0%{?el7}
2238cc
BuildRequires:	systemd-udev
2238cc
%endif
2238cc
%if 0%{?el6}
2238cc
BuildRequires:	udev, kernel-devel
2238cc
%else
2238cc
Requires:	%{_sysconfdir}/fuse.conf
2238cc
%endif
26afa1
26afa1
Requires:	%{name}-libs = %{version}-%{release}
2238cc
# fuse-common 3.4.2-3 had the fuse & fuse3 man pages in it
2238cc
Conflicts:	fuse-common < 3.4.2-4
2238cc
2238cc
%description
2238cc
With FUSE it is possible to implement a fully functional filesystem in a
2238cc
userspace program. This package contains the FUSE v3 userspace tools to
2238cc
mount a FUSE filesystem.
2238cc
2238cc
%package libs
2238cc
Summary:	File System in Userspace (FUSE) v3 libraries
2238cc
License:	LGPLv2+
2238cc
%if ! 0%{?el6}
2238cc
Conflicts:	filesystem < 3
2238cc
%endif
2238cc
2238cc
%description libs
2238cc
Devel With FUSE it is possible to implement a fully functional filesystem in a
2238cc
userspace program. This package contains the FUSE v3 libraries.
2238cc
2238cc
%package devel
2238cc
Summary:	File System in Userspace (FUSE) v3 devel files
2238cc
Requires:	%{name}-libs = %{version}-%{release}
2238cc
Requires:	pkgconfig
2238cc
License:	LGPLv2+
2238cc
%if ! 0%{?el6}
2238cc
Conflicts:	filesystem < 3
2238cc
%endif
2238cc
2238cc
%description devel
2238cc
With FUSE it is possible to implement a fully functional filesystem in a
2238cc
userspace program. This package contains development files (headers,
2238cc
pgk-config) to develop FUSE v3 based applications/filesystems.
2238cc
2238cc
%if ! 0%{?el6} && ! 0%{?el7}
2238cc
%package -n fuse-common
2238cc
Summary:	Common files for File System in Userspace (FUSE) v2 and v3
2238cc
License:	GPL+
2238cc
2238cc
%description -n fuse-common
2238cc
Common files for FUSE v2 and FUSE v3.
2238cc
%endif
2238cc
2238cc
%prep
2238cc
%setup -n libfuse-fuse-%{version}
2238cc
%patch0 -p1
26afa1
%patch1 -p1
2238cc
2238cc
%build
2238cc
export LC_ALL=en_US.UTF-8
2238cc
%if ! 0%{?_vpath_srcdir:1}
2238cc
%global _vpath_srcdir .
2238cc
%endif
2238cc
%if ! 0%{?_vpath_builddir:1}
2238cc
%global _vpath_builddir build
2238cc
%endif
2238cc
%if 0%{?el6}
2238cc
%if ! 0%{?__global_ldflags:1}
2238cc
%global __global_ldflags ""
2238cc
%endif
2238cc
%meson -D udevrulesdir=/etc/udev/rules.d
2238cc
%else
2238cc
%meson
2238cc
%endif
2238cc
2238cc
(cd %{_vpath_builddir}
2238cc
%if 0%{?el6}
2238cc
meson configure -D c_args=-I"`ls -d /usr/src/kernels/*/include|head -1`"
2238cc
%endif
2238cc
%if 0%{?el6} || 0%{?el7}
2238cc
meson configure -D examples=false
2238cc
%endif
2238cc
# don't have root for installation
2238cc
meson configure -D useroot=false
2238cc
ninja-build reconfigure
2238cc
)
2238cc
%meson_build
2238cc
2238cc
%install
2238cc
export MESON_INSTALL_DESTDIR_PREFIX=%{buildroot}/usr %meson_install
2238cc
find %{buildroot} .
2238cc
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
2238cc
# change from 4755 to 0755 to allow stripping -- fixed later in files
2238cc
chmod 0755 %{buildroot}/%{_bindir}/fusermount3
2238cc
2238cc
# Get rid of static libs
2238cc
rm -f %{buildroot}/%{_libdir}/*.a
2238cc
# No need to create init-script
2238cc
rm -f %{buildroot}%{_sysconfdir}/init.d/fuse3
2238cc
2238cc
%if 0%{?el6} || 0%{?el7}
2238cc
# This is in the fuse package on el7 and there's no default on el6
2238cc
rm -f %{buildroot}%{_sysconfdir}/fuse.conf
2238cc
%else
2238cc
# Install config-file
2238cc
install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}
2238cc
%endif
2238cc
2238cc
# Delete pointless udev rules, which do not belong in /usr/lib (brc#748204)
2238cc
rm -f %{buildroot}/usr/lib/udev/rules.d/99-fuse3.rules
2238cc
2238cc
%if 0%{?el6} || 0%{?el7}
2238cc
%post -p /sbin/ldconfig libs
2238cc
%postun -p /sbin/ldconfig libs
2238cc
%else
2238cc
%ldconfig_scriptlets libs
2238cc
%endif
2238cc
2238cc
%{!?_licensedir:%global license %%doc}
2238cc
2238cc
%files
2238cc
%license LICENSE GPL2.txt
2238cc
%doc AUTHORS ChangeLog.rst README.md
2238cc
%{_sbindir}/mount.fuse3
2238cc
%attr(4755,root,root) %{_bindir}/fusermount3
2238cc
%{_mandir}/man1/*
2238cc
%{_mandir}/man8/*
2238cc
%if 0%{?el6}
2238cc
%{_sysconfdir}/udev/rules.d/*
2238cc
%endif
2238cc
2238cc
%files libs
2238cc
%license LGPL2.txt
2238cc
%{_libdir}/libfuse3.so.*
2238cc
2238cc
%files devel
2238cc
%{_libdir}/libfuse3.so
2238cc
%{_libdir}/pkgconfig/fuse3.pc
2238cc
%{_includedir}/fuse3/
2238cc
2238cc
%if ! 0%{?el6} && ! 0%{?el7}
2238cc
%files -n fuse-common
2238cc
%config(noreplace) %{_sysconfdir}/fuse.conf
2238cc
%endif
2238cc
2238cc
%changelog
26afa1
* Wed Feb 16 2022 Pavel Reichl <preichl@redhat.com> - 3.10.2-5
26afa1
- Fix test failure
26afa1
- Fix missing dependency
26afa1
26afa1
* Tue Feb 15 2022 Pavel Reichl <preichl@redhat.com> - 3.10.2-4
26afa1
- Add gating.yaml file
26afa1
2238cc
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.10.2-3
2238cc
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
2238cc
  Related: rhbz#1991688
2238cc
2238cc
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.10.2-2
2238cc
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2238cc
2238cc
* Fri Feb  5 2021 Tom Callaway <spot@fedoraproject.org> - 3.10.2-1
2238cc
- update to 3.10.2
2238cc
2238cc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-2
2238cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2238cc
2238cc
* Mon Dec  7 2020 Tom Callaway <spot@fedoraproject.org> - 3.10.1-1
2238cc
- update to 3.10.1
2238cc
2238cc
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 3.10.0-2
2238cc
- Add missing #include for gcc-11
2238cc
2238cc
* Mon Oct 12 2020 Tom Callaway <spot@fedoraproject.org> - 3.10.0-1
2238cc
- update to 3.10.0
2238cc
- enable lto
2238cc
2238cc
* Mon Aug 10 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.4-1
2238cc
- update to 3.9.4
2238cc
2238cc
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-3
2238cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2238cc
2238cc
* Wed Jul  1 2020 Jeff Law <law@redhat.com> - 3.9.2-2
2238cc
- Disable LTO
2238cc
2238cc
* Thu Jun 18 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.2-1
2238cc
- update to 3.9.2
2238cc
2238cc
* Thu Mar 19 2020 Tom Callaway <spot@fedoraproject.org> - 3.9.1-1
2238cc
- update to 3.9.1
2238cc
2238cc
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2
2238cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2238cc
2238cc
* Mon Dec 16 2019 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
2238cc
- update to 3.9.0
2238cc
2238cc
* Mon Nov  4 2019 Tom Callaway <spot@fedoraproject.org> - 3.8.0-1
2238cc
- update to 3.8.0
2238cc
2238cc
* Fri Sep 27 2019 Tom Callaway <spot@fedoraproject.org> - 3.7.0-1
2238cc
- update to 3.7.0
2238cc
2238cc
* Sun Sep  1 2019 Peter Lemenkov <lemenkov@gmail.com> - 3.6.2-1
2238cc
- Update to 3.6.2
2238cc
2238cc
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-4
2238cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2238cc
2238cc
* Wed Jul 03 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.6.1-3
2238cc
- Update to the final version of pr #421
2238cc
2238cc
* Wed Jul 03 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.6.1-2
2238cc
- Update to newer version of pr #421
2238cc
- Disable building examples on el7
2238cc
2238cc
* Thu Jun 13 2019 Tom Callaway <spot@fedoraproject.org> - 3.6.1-1
2238cc
- Update to 3.6.1
2238cc
2238cc
* Fri May 24 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.5.0-1
2238cc
- Upgrade to upstream 3.5.0
2238cc
2238cc
* Sat May 04 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-7
2238cc
- Fix building on el6
2238cc
2238cc
* Wed May 01 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-6
2238cc
- Need Conflicts: fuse-common < 3.4.2-4, because <= 3.4.2-3 isn't quite
2238cc
  enough.
2238cc
2238cc
* Wed May 01 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-5
2238cc
- Update the Conflicts: fuse-common <= version to 3.4.2-3
2238cc
2238cc
* Wed May 01 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-4
2238cc
- Bump release number in order to larger than a rebuild of fuse package
2238cc
  done before separation pull request was merged.
2238cc
2238cc
* Mon Apr 08 2019 Dave Dykstra <dwd@fedoraproject.org> - 3.4.2-3
2238cc
- Separate out from fuse package