2024-01-06 07:22:56 +01:00
|
|
|
Name: multipath-tools
|
2024-01-06 07:22:56 +01:00
|
|
|
Version: 0.8.5
|
|
|
|
Release: 1mamba
|
2024-01-06 07:22:56 +01:00
|
|
|
Summary: Tools for multipath connectivity
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://christophe.varoqui.free.fr/
|
2024-01-06 07:22:56 +01:00
|
|
|
Source: https://github.com/opensvc/multipath-tools.git/%{version}/multipath-tools-%{version}.tar.bz2
|
2024-01-06 07:22:56 +01:00
|
|
|
Patch0: multipath-tools-0.5.0-readline-link-with-termcap.patch
|
2024-01-06 07:22:56 +01:00
|
|
|
Patch1: multipath-tools-0.5.0-systemd-230.patch
|
2024-01-06 07:22:56 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 07:22:56 +01:00
|
|
|
BuildRequires: ldconfig
|
2024-01-06 07:22:56 +01:00
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libdevmapper-devel
|
2024-01-06 07:22:56 +01:00
|
|
|
BuildRequires: libjson-c-devel
|
2024-01-06 07:22:56 +01:00
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
BuildRequires: libsystemd-devel
|
|
|
|
BuildRequires: libudev-devel
|
2024-01-06 07:22:56 +01:00
|
|
|
BuildRequires: liburcu-devel
|
2024-01-06 07:22:56 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 07:22:56 +01:00
|
|
|
BuildRequires: libsystemd-devel >= 230-1mamba
|
2024-01-06 07:22:56 +01:00
|
|
|
Requires(post): systemd-core
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tools for multipath connectivity.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 07:22:56 +01:00
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
2024-01-06 07:22:56 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%make libudevdir=/lib/udev unitdir=%{_unitdir}
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall libudevdir=/lib/udev unitdir=%{_unitdir}
|
|
|
|
|
|
|
|
# broken symlink
|
|
|
|
rm -f %{buildroot}/%{_lib}/libmpathpersist.so
|
|
|
|
ln -s libmpathpersist.so.0 %{buildroot}/%{_lib}/libmpathpersist.so
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
2024-01-06 07:22:56 +01:00
|
|
|
%systemd_post multipathd.socket
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun multipathd.socket
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun multipathd.socket
|
2024-01-06 07:22:56 +01:00
|
|
|
:
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/sbin/kpartx
|
|
|
|
/sbin/mpathpersist
|
|
|
|
/sbin/multipath
|
|
|
|
/sbin/multipathd
|
|
|
|
/lib/udev/kpartx_id
|
2024-01-06 07:22:56 +01:00
|
|
|
%{_udevrulesdir}/*.rules
|
2024-01-06 07:22:56 +01:00
|
|
|
%{_unitdir}/multipathd.service
|
|
|
|
%{_unitdir}/multipathd.socket
|
|
|
|
%{_mandir}/man3/mpath_persistent_reserve_in.3*
|
|
|
|
%{_mandir}/man3/mpath_persistent_reserve_out.3*
|
|
|
|
%{_mandir}/man5/multipath.conf.5*
|
|
|
|
%{_mandir}/man8/kpartx.8*
|
|
|
|
%{_mandir}/man8/mpathpersist.8*
|
|
|
|
%{_mandir}/man8/multipath.8*
|
|
|
|
%{_mandir}/man8/multipathd.8*
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%{_lib}/libmpathpersist.so.*
|
|
|
|
/%{_lib}/libmultipath.so.*
|
2024-01-06 07:22:56 +01:00
|
|
|
/%{_lib}/libdmmp.so.*
|
|
|
|
/%{_lib}/libmpathcmd.so.*
|
2024-01-06 07:22:56 +01:00
|
|
|
%dir /%{_lib}/multipath
|
2024-01-06 07:22:56 +01:00
|
|
|
/%{_lib}/multipath/*.so
|
2024-01-06 07:22:56 +01:00
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 07:22:56 +01:00
|
|
|
/%{_lib}/libdmmp.so
|
|
|
|
/%{_lib}/libmpathcmd.so
|
|
|
|
/%{_lib}/libmultipath.so
|
2024-01-06 07:22:56 +01:00
|
|
|
/%{_lib}/libmpathpersist.so
|
|
|
|
%{_includedir}/mpath_persist.h
|
2024-01-06 07:22:56 +01:00
|
|
|
%{_includedir}/mpath_cmd.h
|
|
|
|
%dir %{_includedir}/libdmmp
|
|
|
|
%{_includedir}/libdmmp/libdmmp.h
|
|
|
|
/%{_lib}/pkgconfig/libdmmp.pc
|
|
|
|
%{_mandir}/man3/dmmp_*.3*
|
|
|
|
%{_mandir}/man3/libdmmp.h.3*
|
2024-01-06 07:22:56 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:22:56 +01:00
|
|
|
* Thu Dec 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.5-1mamba
|
|
|
|
- update to 0.8.5
|
|
|
|
|
2024-01-06 07:22:56 +01:00
|
|
|
* Sun Jul 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libsystemd-devel>=230-1mamba
|
|
|
|
|
2024-01-06 07:22:56 +01:00
|
|
|
* Mon Jun 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-1mamba
|
|
|
|
- package created using the webbuild interface
|