SPECS/device-mapper-multipath/device-mapper-multipath.spec
99ffaade
 Summary:    Provide tools to manage multipath devices
 Name:       device-mapper-multipath
108e7d10
 Version:    0.7.3
6431726b
 Release:    2%{?dist}
99ffaade
 License:    GPL+
 Group:      System Environment/Base
 URL:        http://christophe.varoqui.free.fr/
108e7d10
 Source0:    multipath-tools-a0e0752.tar.gz
 %define git_commit_short a0e0752
 %define sha1 multipath-tools=56c171d5ed567654a10996b6d9892944d9d0cb48
4cf57004
 BuildRequires:  userspace-rcu-devel
99ffaade
 BuildRequires:  libaio-devel
 BuildRequires:  device-mapper-devel
 BuildRequires:  readline-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  systemd-devel
4cf57004
 BuildRequires:  json-c-devel
 Requires:   userspace-rcu
99ffaade
 Requires:   libaio
 Requires:   device-mapper
 Requires:   libselinux
 Requires:   libsepol
 Requires:   readline
 Requires:   ncurses
 Requires:   kpartx = %{version}-%{release}
92e58245
 
 %description
 Device-mapper-multipath provides tools to manage multipath devices by
 instructing the device-mapper multipath kernel module what to do. 
 
 %package -n kpartx
99ffaade
 Summary:    Partition device manager for device-mapper devices
92e58245
 
 %description -n kpartx
 kpartx manages partition creation and removal for device-mapper devices.
 
4cf57004
 %package devel
 Summary: Development libraries and headers for %{name}
 Requires: %{name} = %{version}-%{release}
 %description devel
 It contains the libraries and header files to create applications
 
92e58245
 %prep
4cf57004
 %setup -qn multipath-tools-%{git_commit_short}
92e58245
 
 %build
 make %{?_smp_mflags}
 
 %install
4cf57004
 make install DESTDIR=%{buildroot} \
 	SYSTEMDPATH=/lib \
 	bindir=%{_sbindir} \
 	syslibdir=%{_libdir} \
 	libdir=%{_libdir}/multipath \
 	pkgconfdir=%{_libdir}/pkgconfig
 
92e58245
 install -vd %{buildroot}/etc/multipath
 
 %clean
 rm -rf %{buildroot}
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root,-)
4cf57004
 %{_sbindir}/mpathpersist
 %{_sbindir}/multipath
 %{_sbindir}/multipathd
 /lib/udev/rules.d/*
108e7d10
 /lib64/*.so
 /lib64/*.so.*
4cf57004
 %{_unitdir}/*
92e58245
 %{_libdir}/*.so
 %{_libdir}/*.so.*
 %{_libdir}/multipath/*.so
 %{_mandir}/man5/*
4cf57004
 %{_mandir}/man8/mpathpersist.8.gz
 %{_mandir}/man8/multipath.8.gz
 %{_mandir}/man8/multipathd.8.gz
92e58245
 %dir /etc/multipath
 
4cf57004
 %files devel
 %defattr(-,root,root,-)
 %{_mandir}/man3/*
 %{_includedir}/*
 %{_libdir}/pkgconfig/*
 
92e58245
 %files -n kpartx
 %defattr(-,root,root,-)
 %{_sbindir}/kpartx
4cf57004
 /lib/udev/kpartx_id
92e58245
 %{_mandir}/man8/kpartx.8.gz
 
 %changelog
6431726b
 *   Wed Sep 26 2018 Anish Swaminathan <anishs@vmware.com>  0.7.3-2
 -   Remove rados dependency
108e7d10
 *   Wed Oct 04 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.7.3-1
 -   Update to 0.7.3
4cf57004
 *   Tue May 9  2017 Bo Gan <ganb@vmware.com> 0.7.1-1
 -   Update to 0.7.1
99ffaade
 *   Fri Nov 18 2016 Anish Swaminathan <anishs@vmware.com>  0.5.0-3
 -   Change systemd dependency
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.5.0-2
 -   GA - Bump release of all rpms
 *   Mon Jun 22 2015 Divya Thaluru <dthaluru@vmware.com> 0.5.0-1
 -   Initial build. First version
92e58245