package created using the webbuild interface [release 0.5.0-1mamba;Mon Jun 23 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 07:22:56 +01:00
parent 20dd0da388
commit 533cd8084a
3 changed files with 139 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# multipath-tools # multipath-tools
Tools for multipath connectivity.

View File

@ -0,0 +1,12 @@
diff -Nru multipath-tools-0.5.0.orig/multipathd/Makefile multipath-tools-0.5.0/multipathd/Makefile
--- multipath-tools-0.5.0.orig/multipathd/Makefile 2013-12-17 22:40:41.000000000 +0100
+++ multipath-tools-0.5.0/multipathd/Makefile 2014-06-23 23:42:21.483547735 +0200
@@ -9,7 +9,7 @@
ifdef SYSTEMD
CFLAGS += -DUSE_SYSTEMD=$(SYSTEMD)
endif
-LDFLAGS += -lpthread -ldevmapper -lreadline
+LDFLAGS += -lpthread -ldevmapper -lreadline -ltermcap
ifdef SYSTEMD
LDFLAGS += -lsystemd-daemon
endif

125
multipath-tools.spec Normal file
View File

@ -0,0 +1,125 @@
Name: multipath-tools
Version: 0.5.0
Release: 1mamba
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/
Source: http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-%{version}.tar.bz2
Patch0: multipath-tools-0.5.0-readline-link-with-termcap.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libaio-devel
BuildRequires: libdevmapper-devel
BuildRequires: libreadline-devel
BuildRequires: libsystemd-devel
BuildRequires: libtermcap-devel
BuildRequires: libudev-devel
## AUTOBUILDREQ-END
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
%patch0 -p1
%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
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
fi
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sysconfdir}/udev/rules.d/kpartx.rules
/sbin/kpartx
/sbin/mpathpersist
/sbin/multipath
/sbin/multipathd
/lib/udev/kpartx_id
%{_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.*
%dir /%{_lib}/multipath
/%{_lib}/multipath/libcheckcciss_tur.so
/%{_lib}/multipath/libcheckdirectio.so
/%{_lib}/multipath/libcheckemc_clariion.so
/%{_lib}/multipath/libcheckhp_sw.so
/%{_lib}/multipath/libcheckrdac.so
/%{_lib}/multipath/libcheckreadsector0.so
/%{_lib}/multipath/libchecktur.so
/%{_lib}/multipath/libprioalua.so
/%{_lib}/multipath/libprioconst.so
/%{_lib}/multipath/libpriodatacore.so
/%{_lib}/multipath/libprioemc.so
/%{_lib}/multipath/libpriohds.so
/%{_lib}/multipath/libpriohp_sw.so
/%{_lib}/multipath/libprioiet.so
/%{_lib}/multipath/libprioontap.so
/%{_lib}/multipath/libpriorandom.so
/%{_lib}/multipath/libpriordac.so
/%{_lib}/multipath/libprioweightedpath.so
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
/%{_lib}/libmpathpersist.so
%{_includedir}/mpath_persist.h
%doc ChangeLog README TODO
%changelog
* Mon Jun 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-1mamba
- package created using the webbuild interface