Specfile fixes
authorBryn M. Reeves <bmr@redhat.com>
Thu, 8 Nov 2012 15:47:07 +0000 (15:47 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Thu, 8 Nov 2012 15:47:07 +0000 (15:47 +0000)
Ensure that mpath-parent is properly installed.

blkdevalias.spec

index 55d8b8b..feb532a 100644 (file)
@@ -1,12 +1,13 @@
+%define git_hash gitc1ad25
 Name: blkdevalias
-Version: 0.02git35f2114
+Version: 0.03%{?git_hash}
 Release: 1%{?dist}
 Summary: blkdevalias is a tool to manage persistent storage device aliases and permissions
 BuildArch: noarch
 
 Group: System Environment/Base
 License: GPL
-Source0: blkdevalias-0.01git8c2bcc.tar.gz
+Source0: blkdevalias-0.03%{?git_hash}.tar.gz
 
 Requires: bash udev util-linux coreutils
 
@@ -26,8 +27,8 @@ mkdir -p $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/sbin
 cp blkdevalias $RPM_BUILD_ROOT/sbin/blkdevalias
 chmod ugo+x $RPM_BUILD_ROOT/sbin/blkdevalias
-cp mpath-parent $RPM_BUILD_ROOT/mpath-parent
-chmod ugo+x $RPM_BUILD_ROOT/mpath-parent
+cp mpath-parent $RPM_BUILD_ROOT/sbin/mpath-parent
+chmod ugo+x $RPM_BUILD_ROOT/sbin/mpath-parent
 mkdir -p $RPM_BUILD_ROOT/etc/blkdevalias
 cp conf $RPM_BUILD_ROOT/etc/blkdevalias
 cp map $RPM_BUILD_ROOT/etc/blkdevalias/map
@@ -44,6 +45,7 @@ cp COPYING $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
 %config(noreplace) /etc/blkdevalias/map
 %config /etc/udev/rules.d/99-blkdevalias.rules
 /sbin/blkdevalias
+/sbin/mpath-parent
 %doc /usr/share/doc/blkdevalias-%{version}-%{release}/README
 %doc /usr/share/doc/blkdevalias-%{version}-%{release}/COPYING