ExcludeArch: ppc ppc64
Requires: spl = %{version}
-Requires: zfs-dracut = %{version}
-Requires: zfs-test = %{version}
Requires: %{name}-kmod >= %{version}
Provides: %{name}-kmod-common = %{version}
make install DESTDIR=%{?buildroot}
find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \;
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
+exit 0
+
+%preun
+if [ $1 -eq 0 ] ; then
+ [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
+fi
+exit 0
%postun -p /sbin/ldconfig
%doc AUTHORS COPYRIGHT DISCLAIMER
%doc OPENSOLARIS.LICENSE README.markdown
%{_sbindir}/*
+%{_bindir}/*
%{_libdir}/*.so.1*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_dracutdir}/modules.d/*
%changelog
-* Tue Mar 12 2013 Brian Behlendorf <behlendorf1@llnl.gov> - 0.6.0-1
-- Refreshed RPM packaging.
+* Fri Mar 22 2013 Brian Behlendorf <behlendorf1@llnl.gov> - 0.6.1-1
+- First official stable release.