Remove obsolete scriptlets

References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-01-27 19:40:14 +01:00
parent a9e623e5af
commit 424a5c64c4
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -24,8 +24,8 @@ BuildRequires: git
BuildRequires: c-ares-devel
BuildRequires: gcc
Requires: net-snmp ncurses c-ares
Requires(post): systemd /sbin/install-info
Requires(preun): systemd /sbin/install-info
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Provides: routingdaemon = %{version}-%{release}
Obsoletes: quagga-sysvinit
@ -143,11 +143,6 @@ usermod -a -G %vty_group quagga
%systemd_post ospf6d.service
%systemd_post ripngd.service
ls %{_infodir}/%{name}.inf* > /dev/null 2>&1
if [ $? -eq 0 ]; then
install-info %{_infodir}/quagga.info %{_infodir}/dir || :
fi
# Create dummy files if they don't exist so basic functions can be used.
if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then
echo "hostname `hostname`" > %{_sysconfdir}/quagga/zebra.conf
@ -170,11 +165,6 @@ fi
%systemd_postun_with_restart ospf6d.service
%systemd_postun_with_restart ripngd.service
ls %{_infodir}/%{name}.inf* > /dev/null 2>&1
if [ $? -eq 0 ]; then
install-info --delete %{_infodir}/quagga.info %{_infodir}/dir || :
fi
%preun
%systemd_preun zebra.service
%systemd_preun isisd.service