Remove unneeded info scriptlets
These are handled by file triggers now
This commit is contained in:
parent
ca909aee1b
commit
7880ef80b4
14
frr.spec
14
frr.spec
@ -54,11 +54,9 @@ BuildRequires: texinfo
|
||||
|
||||
Requires: ncurses
|
||||
Requires: net-snmp
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(post): hostname
|
||||
Requires(post): systemd
|
||||
Requires(postun): systemd
|
||||
Requires(preun): /sbin/install-info
|
||||
Requires(preun): systemd
|
||||
Conflicts: quagga
|
||||
Provides: routingdaemon = %{version}-%{release}
|
||||
@ -149,10 +147,6 @@ usermod -aG frrvty frr
|
||||
%post
|
||||
%systemd_post frr.service
|
||||
|
||||
if [ -f %{_infodir}/%{name}.inf* ]; then
|
||||
install-info %{_infodir}/frr.info %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
# Create dummy files if they don't exist so basic functions can be used.
|
||||
if [ ! -e %{_sysconfdir}/frr/frr.conf ]; then
|
||||
echo "hostname `hostname`" > %{_sysconfdir}/frr/frr.conf
|
||||
@ -173,13 +167,6 @@ fi
|
||||
%preun
|
||||
%systemd_preun frr.service
|
||||
|
||||
#only when removing frr
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ -f %{_infodir}/%{name}.inf* ]; then
|
||||
install-info --delete %{_infodir}/frr.info %{_infodir}/dir || :
|
||||
fi
|
||||
fi
|
||||
|
||||
%check
|
||||
%make_build check PYTHON=%{__python3}
|
||||
|
||||
@ -217,6 +204,7 @@ fi
|
||||
%changelog
|
||||
* Wed Jul 07 2021 Neal Gompa <ngompa@datto.com> - 7.5.1-5
|
||||
- Clean up the spec file for legibility and modern spec standards
|
||||
- Remove unneeded info scriptlets
|
||||
|
||||
* Wed Jul 07 2021 Michal Ruprich <mruprich@redhat.com> - 7.5.1-4
|
||||
- Rebuild for newer abseil-cpp
|
||||
|
Loading…
Reference in New Issue
Block a user