Switch to %ldconfig_scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
50d11e91d8
commit
531eaa311c
@ -67,7 +67,7 @@
|
||||
|
||||
Name: libblockdev
|
||||
Version: 2.15
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A library for low-level manipulation with block devices
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/storaged-project/libblockdev
|
||||
@ -530,74 +530,59 @@ A meta-package that pulls all the libblockdev plugins as dependencies.
|
||||
find %{buildroot} -type f -name "*.la" | xargs %{__rm}
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
%post utils -p /sbin/ldconfig
|
||||
%postun utils -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets
|
||||
%ldconfig_scriptlets utils
|
||||
|
||||
%if %{with_btrfs}
|
||||
%post btrfs -p /sbin/ldconfig
|
||||
%postun btrfs -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets btrfs
|
||||
%endif
|
||||
|
||||
%if %{with_crypto}
|
||||
%post crypto -p /sbin/ldconfig
|
||||
%postun crypto -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets crypto
|
||||
%endif
|
||||
|
||||
%if %{with_dm}
|
||||
%post dm -p /sbin/ldconfig
|
||||
%postun dm -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets dm
|
||||
%endif
|
||||
|
||||
%if %{with_fs}
|
||||
%post fs -p /sbin/ldconfig
|
||||
%postun fs -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets fs
|
||||
%endif
|
||||
|
||||
%if %{with_loop}
|
||||
%post loop -p /sbin/ldconfig
|
||||
%postun loop -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets loop
|
||||
%endif
|
||||
|
||||
%if %{with_lvm}
|
||||
%post lvm -p /sbin/ldconfig
|
||||
%postun lvm -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets lvm
|
||||
%endif
|
||||
|
||||
%if %{with_lvm_dbus}
|
||||
%post lvm-dbus -p /sbin/ldconfig
|
||||
%postun lvm-dbus -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets lvm-dbus
|
||||
%endif
|
||||
|
||||
%if %{with_mdraid}
|
||||
%post mdraid -p /sbin/ldconfig
|
||||
%postun mdraid -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets mdraid
|
||||
%endif
|
||||
|
||||
%if %{with_mpath}
|
||||
%post mpath -p /sbin/ldconfig
|
||||
%postun mpath -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets mpath
|
||||
%endif
|
||||
|
||||
%if %{with_part}
|
||||
%post part -p /sbin/ldconfig
|
||||
%postun part -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets part
|
||||
%endif
|
||||
|
||||
%if %{with_swap}
|
||||
%post swap -p /sbin/ldconfig
|
||||
%postun swap -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets swap
|
||||
%endif
|
||||
|
||||
%ifarch s390 s390x
|
||||
%post s390 -p /sbin/ldconfig
|
||||
%postun s390 -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets s390
|
||||
%endif
|
||||
|
||||
%if %{with_kbd}
|
||||
%post kbd -p /sbin/ldconfig
|
||||
%postun kbd -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets kbd
|
||||
%endif
|
||||
|
||||
|
||||
@ -800,6 +785,9 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
|
||||
%files plugins-all
|
||||
|
||||
%changelog
|
||||
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.15-2
|
||||
- Switch to %%ldconfig_scriptlets
|
||||
|
||||
* Fri Dec 01 2017 Vratislav Podzimek <vpodzime@redhat.com> - 2.15-1
|
||||
- Do not use the 'btrfs' plugin in overrides tests (vpodzime)
|
||||
- Do not use the btrfs plugin in library tests (vpodzime)
|
||||
|
Loading…
Reference in New Issue
Block a user