update to 3.10.4 [release 3.10.4-1mamba;Sat Jun 19 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 22:35:15 +01:00
parent bb1f157e24
commit 8dfbe69124

View File

@ -1,16 +1,15 @@
%define libname lib%{name}
%define gitver %(echo %version | tr . _)
Name: fuse3
Version: 3.10.3
Version: 3.10.4
Release: 1mamba
Summary: File System in Userspace (FUSE) utilities
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: https://fuse.sourceforge.net
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/libfuse/libfuse
Source: https://github.com/libfuse/libfuse.git/fuse-%{version}/libfuse-%{version}.tar.bz2
#Source1: %{name}-initscript
License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -44,8 +43,9 @@ Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
%description -n %{libname}-devel
Libraries for FUSE.
This package contains static libraries and header files needed for development.
This package contains static libraries and header files need for development.
%debug_package
%prep
%setup -q -n libfuse-%{version}
@ -53,57 +53,28 @@ sed -i "s|^chown root|#chown root|" util/install_helper.sh
sed -i "s|mknod|#mknod|" util/install_helper.sh
%build
mkdir build
cd build
meson --prefix=%{_prefix} --libdir=%{_libdir} .. \
%meson \
-Duseroot=false \
-Dudevrulesdir=%{_udevrulesdir}
ninja
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
DESTDIR=%{buildroot} ninja install -C build
%meson_install
rm -rf %{buildroot}/etc/init.d
rm -f %{buildroot}%{_sysconfdir}/fuse.conf
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
# new install
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add %{name}
service %{name} start
fi
:
%preun
# erase
if [ $1 -eq 0 ]; then
service %{name} stop
/sbin/chkconfig --del %{name}
fi
:
%postun
# upgrade
if [ $1 -eq 1 ]; then
if [ -e %{_sysconfdir}/modules.d/%{name} ]; then
rm -f %{_sysconfdir}/modules.d/%{name}
/sbin/chkconfig --add %{name}
fi
/sbin/chkconfig %{name}
[ $? -eq 0 ] && service %{name} restart
fi
:
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/fuse.conf
%{_sysconfdir}/init.d/fuse3
#%config(noreplace) %{_sysconfdir}/fuse.conf
%{_udevrulesdir}/99-fuse3.rules
%{_bindir}/fusermount3
%{_sbindir}/mount.fuse3
@ -124,6 +95,9 @@ fi
#%doc ChangeLog NEWS README.NFS
%changelog
* Sat Jun 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.4-1mamba
- update to 3.10.4
* Mon Apr 12 2021 Automatic Build System <autodist@mambasoft.it> 3.10.3-1mamba
- automatic version update by autodist