mirror_zfs/rpm/generic
Brian Behlendorf 6f2012c1dc zfs.spec.in: remove post ldconfig scriptlets
In Fedora 28 the packaging guidelines were changed such that ldconfig
should no longer be called in either the %post or %postun scriptlets.
Instead the new compatibility macros %ldconfig_post, %ldconfig_postun,
and %ldocnfig_scriptlets should be used.

Since we only currently support Fedora 31 and newer, we could drop
%post or %postun scriptlets entirely according to the guidelines.
However, since we also use the same spec file for CentOS / RHEL
it's convenient to call the macros which are available starting
with CentOS / RHEL 8.  For CentOS / RHEL 7 we must still call
ldconfig in the traditional way.

https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11931
2021-05-10 12:07:16 -07:00
..
.gitignore Refresh RPM packaging 2013-03-18 15:33:17 -07:00
Makefile.am Refresh RPM packaging 2013-03-18 15:33:17 -07:00
zfs-dkms.spec.in Replace ZFS on Linux references with OpenZFS 2020-10-08 20:10:13 -07:00
zfs-kmod.spec.in zfs-kmods: install to /lib/modules instead of /usr/lib/modules 2020-12-21 20:14:32 -08:00
zfs.spec.in zfs.spec.in: remove post ldconfig scriptlets 2021-05-10 12:07:16 -07:00