X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=rpm%2Fgeneric%2Fzfs.spec.in;h=c832404a691e94d4f15d7668e772bbe0a281b011;hb=168d056cf8ed073e17f008b9109ad3d37e63f172;hp=7ee4ca018e31c849491a377d4c9e861395d7b06d;hpb=36c0b62799554d0a41fc0a65602de3b50f9f6409;p=zfs.git diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 7ee4ca0..c832404 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -29,8 +29,6 @@ ExclusiveArch: i386 i686 x86_64 ExcludeArch: ppc ppc64 Requires: spl = %{version} -Requires: zfs-dracut = %{version} -Requires: zfs-test = %{version} Requires: %{name}-kmod >= %{version} Provides: %{name}-kmod-common = %{version} @@ -115,7 +113,16 @@ make %{?_smp_mflags} 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 @@ -123,6 +130,7 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \; %doc AUTHORS COPYRIGHT DISCLAIMER %doc OPENSOLARIS.LICENSE README.markdown %{_sbindir}/* +%{_bindir}/* %{_libdir}/*.so.1* %{_mandir}/man1/* %{_mandir}/man5/*