Fix packaging of udev rules file
authorBryn M. Reeves <bmr@redhat.com>
Wed, 31 Oct 2012 19:34:00 +0000 (19:34 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Wed, 31 Oct 2012 19:34:00 +0000 (19:34 +0000)
blkdevalias.spec

index 16cbb5b..ef5daae 100644 (file)
@@ -1,5 +1,5 @@
 Name: blkdevalias
-Version: 0.01git8c2bcc
+Version: 0.01git19747f
 Release: 1%{?dist}
 Summary: blkdevalias is a tool to manage persistent storage device aliases and permissions
 BuildArch: noarch
@@ -24,15 +24,16 @@ true
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/sbin
-cp blkdevalias $RPM_BUILD_ROOT/sbin/blkdevalias
+cp -p blkdevalias $RPM_BUILD_ROOT/sbin/blkdevalias
 chmod ugo+x $RPM_BUILD_ROOT/sbin/blkdevalias
 mkdir -p $RPM_BUILD_ROOT/etc/blkdevalias
 cp conf $RPM_BUILD_ROOT/etc/blkdevalias
-cp map $RPM_BUILD_ROOT/etc/blkdevalias/map
+cp -p 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
 mkdir -p $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}
-
+cp -p README $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
+cp -p COPYING $RPM_BUILD_ROOT/usr/share/doc/blkdevalias-%{version}-%{release}
 
 %files
 %defattr(-,root,root)