Linux 3.9 compat: Undefine GCC_VERSION
[zfs.git] / zfs.spec.in
index 2bed540..3e784ec 100644 (file)
@@ -2,11 +2,10 @@
 %define version          @VERSION@
 %define release          @ZFS_META_RELEASE@
 %define debug_package    %{nil}
-%define _prefix          /
-%define _libexecdir      /usr/libexec
-%define _datadir         /usr/share
-%define _includedir      /usr/include
+%define _sbindir         /sbin
+%define _libdir          /%{_lib}
 %define _udevdir         /lib/udev
+%define _dracutdir       %{_datadir}/dracut
 
 Summary:         ZFS Library and Utils
 Group:           Utilities/System
@@ -62,7 +61,10 @@ which are ZFS aware.
 %prep
 %setup
 %build
-%configure --with-config=user --without-blkid --with-udevdir=%{_udevdir}
+%configure --with-config=user \
+           --without-blkid \
+           --with-udevdir=%{_udevdir} \
+           --with-dracutdir=%{_dracutdir}
 make
 
 %install
@@ -74,27 +76,29 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-, root, root)
-%doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER
-%doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE
 %{_sbindir}/*
-%{_bindir}/*
 %{_libdir}/*
+%{_mandir}/man5/*
 %{_mandir}/man8/*
-%{_sysconfdir}/init.d/*
-%{_sysconfdir}/zfs/*
 %{_udevdir}/*
 
+%config %{_sysconfdir}/init.d/*
+%config %{_sysconfdir}/zfs/*
+
+%doc AUTHORS COPYING COPYRIGHT DISCLAIMER
+%doc OPENSOLARIS.LICENSE README.markdown
+
 %files devel
 %defattr(-,root,root)
 %{_includedir}/*
 
 %files test
 %defattr(-,root,root)
-%{_libexecdir}/@PACKAGE@/*
+%{_datadir}/@PACKAGE@/*
 
 %files dracut
 %defattr(-,root,root)
-%{_datadir}/dracut/*
+%{_dracutdir}/*
 
 %post
 [ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs