diff --git a/amanda.spec b/amanda.spec index 00a7a7c..94681de 100644 --- a/amanda.spec +++ b/amanda.spec @@ -10,7 +10,7 @@ Summary: A network-capable tape backup solution Name: amanda Version: 3.5.1 -Release: 6%{?dist} +Release: 7%{?dist} Source: http://downloads.sourceforge.net/amanda/amanda-%{version}.tar.gz Source1: amanda.crontab Source4: disklist @@ -44,6 +44,8 @@ BuildRequires: libcurl-devel procps-ng systemd Requires: grep tar /bin/mail Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: amanda-libs%{?_isa} = %{version}-%{release} +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconifg %{?systemd_requires} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\) @@ -181,7 +183,7 @@ make check /usr/bin/gpasswd -a %amanda_user tape >/dev/null 2>&1 || : %post -/sbin/ldconfig +%{?ldconfig} %systemd_post amanda.socket %systemd_post amanda-udp.socket %systemd_post kamanda.socket @@ -192,18 +194,13 @@ make check %systemd_preun kamanda.socket %postun -/sbin/ldconfig +%{?ldconfig} %systemd_postun_with_restart amanda.socket %systemd_postun_with_restart amanda-udp.socket %systemd_postun_with_restart kamanda.socket -%post client -p /sbin/ldconfig - -%post server -p /sbin/ldconfig - -%postun client -p /sbin/ldconfig - -%postun server -p /sbin/ldconfig +%ldconfig_scriptlets client +%ldconfig_scriptlets server %files %license COPYRIGHT @@ -432,6 +429,9 @@ make check %changelog +* Wed Feb 14 2018 Jason L Tibbitts III - 3.5.1-7 +- Convert to ldconfig macros. + * Wed Feb 14 2018 Josef Ridky - 3.5.1-6 - Remove Group tag