Add GPL license header to blkdevalias
[blkdevalias.git] / blkdevalias.spec
index 9746367..feb532a 100644 (file)
@@ -1,12 +1,13 @@
+%define git_hash gitc1ad25
 Name: blkdevalias
-Version: 0.01git19747f
+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
 
@@ -24,16 +25,18 @@ true
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/sbin
-cp -p blkdevalias $RPM_BUILD_ROOT/sbin/blkdevalias
+cp blkdevalias $RPM_BUILD_ROOT/sbin/blkdevalias
 chmod ugo+x $RPM_BUILD_ROOT/sbin/blkdevalias
+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 -p map $RPM_BUILD_ROOT/etc/blkdevalias/map
+cp map $RPM_BUILD_ROOT/etc/blkdevalias/map
 mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
-cp -p 99-blkdevalias.rules $RPM_BUILD_ROOT/etc/udev/rules.d
+cp 99-blkdevalias.rules $RPM_BUILD_ROOT/etc/udev/rules.d
 mkdir -p $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
-cp -p README $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
-cp -p COPYING $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
+cp README $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
+cp COPYING $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
 
 %files
 %defattr(-,root,root)
@@ -42,6 +45,7 @@ cp -p 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