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