diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-29 12:30:06 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-29 12:30:06 -0800 |
commit | 3c9911dddcdd6f4d76ea0cb2ee3516d7f7422183 (patch) | |
tree | 6031962403d58c26c545763ad705691819223977 | |
parent | 34a055786927a93f17ec52ed869021d1e84e6e13 (diff) | |
download | multipath-tools-3c9911dddcdd6f4d76ea0cb2ee3516d7f7422183.tar.gz multipath-tools-3c9911dddcdd6f4d76ea0cb2ee3516d7f7422183.tar.bz2 multipath-tools-3c9911dddcdd6f4d76ea0cb2ee3516d7f7422183.zip |
install udev rules under /usr/lib
-rw-r--r-- | packaging/multipath-tools.spec | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/packaging/multipath-tools.spec b/packaging/multipath-tools.spec index c3a1545..cf08698 100644 --- a/packaging/multipath-tools.spec +++ b/packaging/multipath-tools.spec @@ -47,57 +47,28 @@ Authors: %prep %setup -q -n multipath-tools-%{version} %build +cd kpartx make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%_lib %install +pushd kpartx make DESTDIR=$RPM_BUILD_ROOT LIB=%_libdir install -mkdir -p $RPM_BUILD_ROOT/var/cache/multipath/ -rm $RPM_BUILD_ROOT/usr/include/mpath_persist.h -rm $RPM_BUILD_ROOT/%_lib/libmpathpersist.so +popd + %clean rm -rf $RPM_BUILD_ROOT; %files %defattr(-,root,root) -%license COPYING -%doc multipath.conf* -%dir /etc/udev -%dir /etc/udev/rules.d -%config /etc/init.d/multipathd -%config /etc/init.d/boot.multipath -%config /etc/udev/rules.d/71-multipath.rules -/%{_lib}/libmultipath.so.0 -/%{_lib}/libmpathpersist.so.0 -/%{_lib}/multipath -/sbin/multipath -/sbin/multipathd -/sbin/mpathpersist -%attr (0700, root, root) /var/cache/multipath -%dir /lib/mkinitrd -%dir /lib/mkinitrd/scripts -/lib/mkinitrd/scripts/boot-multipath.sh -/lib/mkinitrd/scripts/setup-multipath.sh -/lib/mkinitrd/scripts/boot-multipathd.sh -/lib/mkinitrd/scripts/boot-killmultipathd.sh -%dir /lib/systemd/system -/lib/systemd/system/multipathd.service -%{_mandir}/man8/multipath.8* -%{_mandir}/man5/multipath.conf.5* -%{_mandir}/man8/multipathd.8* -%{_mandir}/man8/mpathpersist.8* -%{_mandir}/man3/mpath_persistent_* %files -n kpartx +%license COPYING %defattr(-,root,root) -%dir /etc/udev -%dir /etc/udev/rules.d -%config /etc/udev/rules.d/70-kpartx.rules +%config /etc/udev/rules.d/kpartx.rules /sbin/kpartx %dir /lib/udev /lib/udev/kpartx_id -%dir /lib/mkinitrd -%dir /lib/mkinitrd/scripts %{_mandir}/man8/kpartx.8* %changelog |