Spec file compat, %{datadir}
authorFajar A. Nugraha <github@fajar.net>
Fri, 25 Mar 2011 17:01:28 +0000 (10:01 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Mar 2011 17:08:49 +0000 (10:08 -0700)
The dracut change caused an error during "make rpm".  The cause
is simple, RHEL5 does not recognize the %{datarootdir} macro in
zfs.spec.  It was changed to %{datadir} which fixes the build.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
zfs.spec.in

index fe56a2f..4cfd3b3 100644 (file)
@@ -89,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files dracut
 %defattr(-,root,root)
-%{_datarootdir}/dracut/*
+%{_datadir}/dracut/*
 
 %post
 [ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs