X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=rpm%2Fgeneric%2Fzfs.spec.in;h=c832404a691e94d4f15d7668e772bbe0a281b011;hb=51a3ae72d23d89d35a4a67059b39e870d66a2495;hp=05d55d975ce6277c6115b60b1d401b754d54c0ae;hpb=f3757573a677e8662e268f0bb8e5ffe750013088;p=zfs.git diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 05d55d9..c832404 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -28,6 +28,7 @@ ExclusiveArch: i386 i686 x86_64 # May build but untested on ppc/ppc64 ExcludeArch: ppc ppc64 +Requires: spl = %{version} Requires: %{name}-kmod >= %{version} Provides: %{name}-kmod-common = %{version} @@ -112,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 @@ -120,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/* @@ -128,8 +139,7 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \; %{_udevdir}/zvol_id %{_udevdir}/rules.d/* %config(noreplace) %{_sysconfdir}/%{name} -# Systemd integration is still required. -%exclude %{_sysconfdir}/init.d/* +%{_sysconfdir}/init.d/* %files devel %{_libdir}/*.so @@ -143,5 +153,5 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \; %{_dracutdir}/modules.d/* %changelog -* Tue Mar 12 2013 Brian Behlendorf - 0.6.0-1 -- Refreshed RPM packaging. +* Fri Mar 22 2013 Brian Behlendorf - 0.6.1-1 +- First official stable release.