rebuilt under %_prefix [release 0.8.5-2mamba;Mon Mar 08 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:22:56 +01:00
parent 14e2936530
commit 6ed0843e0a

View File

@ -1,6 +1,6 @@
Name: multipath-tools
Version: 0.8.5
Release: 1mamba
Release: 2mamba
Summary: Tools for multipath connectivity
Group: System/Tools
Vendor: openmamba
@ -25,7 +25,6 @@ BuildRequires: liburcu-devel
BuildRequires: libsystemd-devel >= 230-1mamba
Requires(post): systemd-core
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Tools for multipath connectivity.
@ -53,15 +52,29 @@ This package contains libraries and header files for developing applications tha
#%patch1 -p1
%build
%make libudevdir=/lib/udev unitdir=%{_unitdir}
%make \
prefix=%{_prefix} \
includedir=%{_includedir} \
man3dir=%{_mandir}/man3 \
man5dir=%{_mandir}/man5 \
man8dir=%{_mandir}/man8 \
libudevdir=/lib/udev \
unitdir=%{_unitdir}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall libudevdir=/lib/udev unitdir=%{_unitdir}
%makeinstall \
prefix=%{_prefix} \
includedir=%{_includedir} \
man3dir=%{_mandir}/man3 \
man5dir=%{_mandir}/man5 \
man8dir=%{_mandir}/man8 \
libudevdir=/lib/udev \
unitdir=%{_unitdir}
# broken symlink
rm -f %{buildroot}/%{_lib}/libmpathpersist.so
ln -s libmpathpersist.so.0 %{buildroot}/%{_lib}/libmpathpersist.so
## broken symlink
#rm -f %{buildroot}/%{_lib}/libmpathpersist.so
#ln -s libmpathpersist.so.0 %{buildroot}/%{_lib}/libmpathpersist.so
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -83,10 +96,10 @@ ln -s libmpathpersist.so.0 %{buildroot}/%{_lib}/libmpathpersist.so
%files
%defattr(-,root,root)
/sbin/kpartx
/sbin/mpathpersist
/sbin/multipath
/sbin/multipathd
%{_sbindir}/kpartx
%{_sbindir}/mpathpersist
%{_sbindir}/multipath
%{_sbindir}/multipathd
/lib/udev/kpartx_id
%{_udevrulesdir}/*.rules
%{_unitdir}/multipathd.service
@ -101,29 +114,32 @@ ln -s libmpathpersist.so.0 %{buildroot}/%{_lib}/libmpathpersist.so
%files -n lib%{name}
%defattr(-,root,root)
/%{_lib}/libmpathpersist.so.*
/%{_lib}/libmultipath.so.*
/%{_lib}/libdmmp.so.*
/%{_lib}/libmpathcmd.so.*
%dir /%{_lib}/multipath
/%{_lib}/multipath/*.so
%{_libdir}/libmpathpersist.so.*
%{_libdir}/libmultipath.so.*
%{_libdir}/libdmmp.so.*
%{_libdir}/libmpathcmd.so.*
%dir %{_libdir}/multipath
%{_libdir}/multipath/*.so
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
/%{_lib}/libdmmp.so
/%{_lib}/libmpathcmd.so
/%{_lib}/libmultipath.so
/%{_lib}/libmpathpersist.so
%{_libdir}/libdmmp.so
%{_libdir}/libmpathcmd.so
%{_libdir}/libmultipath.so
%{_libdir}/libmpathpersist.so
%{_includedir}/mpath_persist.h
%{_includedir}/mpath_cmd.h
%dir %{_includedir}/libdmmp
%{_includedir}/libdmmp/libdmmp.h
/%{_lib}/pkgconfig/libdmmp.pc
%{_libdir}/pkgconfig/libdmmp.pc
%{_mandir}/man3/dmmp_*.3*
%{_mandir}/man3/libdmmp.h.3*
%changelog
* Mon Mar 08 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.5-2mamba
- rebuilt under %_prefix
* Thu Dec 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.5-1mamba
- update to 0.8.5