Remove obsolete ldconfig scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
d59d5d69d2
commit
8cb13b2d8b
32
samba.spec
32
samba.spec
@ -1148,7 +1148,7 @@ TDB_NO_FSYNC=1 make %{?_smp_mflags} test
|
|||||||
getent group printadmin >/dev/null || groupadd -r printadmin || :
|
getent group printadmin >/dev/null || groupadd -r printadmin || :
|
||||||
|
|
||||||
%post common
|
%post common
|
||||||
/sbin/ldconfig
|
%{?ldconfig}
|
||||||
%tmpfiles_create %{_tmpfilesdir}/samba.conf
|
%tmpfiles_create %{_tmpfilesdir}/samba.conf
|
||||||
if [ -d /var/cache/samba ]; then
|
if [ -d /var/cache/samba ]; then
|
||||||
mv /var/cache/samba/netsamlogon_cache.tdb /var/lib/samba/ 2>/dev/null
|
mv /var/cache/samba/netsamlogon_cache.tdb /var/lib/samba/ 2>/dev/null
|
||||||
@ -1167,18 +1167,12 @@ if [ $1 -eq 0 ] ; then
|
|||||||
%{_sbindir}/update-alternatives --remove cups_backend_smb %{_bindir}/smbspool
|
%{_sbindir}/update-alternatives --remove cups_backend_smb %{_bindir}/smbspool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post client-libs -p /sbin/ldconfig
|
%ldconfig_scriptlets client-libs
|
||||||
|
|
||||||
%postun client-libs -p /sbin/ldconfig
|
%ldconfig_scriptlets common-libs
|
||||||
|
|
||||||
%post common-libs -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun common-libs -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%if %{with_dc}
|
%if %{with_dc}
|
||||||
%post dc-libs -p /sbin/ldconfig
|
%ldconfig_scriptlets dc-libs
|
||||||
|
|
||||||
%postun dc-libs -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post dc
|
%post dc
|
||||||
%systemd_post samba.service
|
%systemd_post samba.service
|
||||||
@ -1200,14 +1194,10 @@ if [ $1 -eq 0 ] ; then
|
|||||||
%{_sbindir}/update-alternatives --remove cups_backend_smb %{_libexecdir}/samba/smbspool_krb5_wrapper
|
%{_sbindir}/update-alternatives --remove cups_backend_smb %{_libexecdir}/samba/smbspool_krb5_wrapper
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%if %with_libsmbclient
|
%if %with_libsmbclient
|
||||||
%post -n libsmbclient -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libsmbclient
|
||||||
|
|
||||||
%postun -n libsmbclient -p /sbin/ldconfig
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %with_libwbclient
|
%if %with_libwbclient
|
||||||
@ -1220,7 +1210,7 @@ fi
|
|||||||
libwbclient.so.%{libwbc_alternatives_version}%{libwbc_alternatives_suffix} \
|
libwbclient.so.%{libwbc_alternatives_version}%{libwbc_alternatives_suffix} \
|
||||||
%{_libdir}/samba/wbclient/libwbclient.so.%{libwbc_alternatives_version} \
|
%{_libdir}/samba/wbclient/libwbclient.so.%{libwbc_alternatives_version} \
|
||||||
10
|
10
|
||||||
/sbin/ldconfig
|
%{?ldconfig}
|
||||||
|
|
||||||
%preun -n libwbclient
|
%preun -n libwbclient
|
||||||
%{_sbindir}/update-alternatives \
|
%{_sbindir}/update-alternatives \
|
||||||
@ -1250,9 +1240,7 @@ fi
|
|||||||
|
|
||||||
%endif # with_libwbclient
|
%endif # with_libwbclient
|
||||||
|
|
||||||
%post test -p /sbin/ldconfig
|
%ldconfig_scriptlets test
|
||||||
|
|
||||||
%postun test -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%pre winbind
|
%pre winbind
|
||||||
/usr/sbin/groupadd -g 88 wbpriv >/dev/null 2>&1 || :
|
/usr/sbin/groupadd -g 88 wbpriv >/dev/null 2>&1 || :
|
||||||
@ -1283,9 +1271,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
%{_sbindir}/update-alternatives --remove winbind_krb5_locator.so %{_libdir}/samba/krb5/winbind_krb5_locator.so
|
%{_sbindir}/update-alternatives --remove winbind_krb5_locator.so %{_libdir}/samba/krb5/winbind_krb5_locator.so
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post winbind-modules -p /sbin/ldconfig
|
%ldconfig_scriptlets winbind-modules
|
||||||
|
|
||||||
%postun winbind-modules -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%if %with_clustering_support
|
%if %with_clustering_support
|
||||||
%post -n ctdb
|
%post -n ctdb
|
||||||
|
Loading…
Reference in New Issue
Block a user