%define version @VERSION@
%define release @ZFS_META_RELEASE@
%define debug_package %{nil}
+%define _prefix /
+%define _bindir /lib/udev
+%define _libexecdir /usr/libexec
+%define _datadir /usr/share
Summary: ZFS Library and Utils
Group: Utilities/System
%package test
Summary: ZFS File System Test Infrastructure
Group: Utilities/System
+Requires: parted lsscsi
%description test
The %{name}-test package contains a test infrastructure for zpios which
%{_sysconfdir}/init.d/*
%{_sysconfdir}/udev/rules.d/*
%{_sysconfdir}/zfs/*
-/sbin/*
%files devel
%defattr(-,root,root)
%files dracut
%defattr(-,root,root)
-%{_datarootdir}/dracut/*
+%{_datadir}/dracut/*
%post
[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
exit 0
%preun
-[ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
+[ "$1" = 0 ] && [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
exit 0