Blame SPECS/fuse3.spec

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