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:33 +01:00
parent 48b9f73cc8
commit 84c7852e73
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -5,8 +5,6 @@ Release: 1%{?dist}
Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
URL: https://www.gnu.org/software/units/units.html URL: https://www.gnu.org/software/units/units.html
License: GPLv3+ License: GPLv3+
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRequires: automake BuildRequires: automake
BuildRequires: bison BuildRequires: bison
BuildRequires: gcc BuildRequires: gcc
@ -46,16 +44,6 @@ ln -s units.1 %{buildroot}%{_mandir}/man1/units_cur.1
%check %check
make check make check
%post
if [ -e %{_infodir}/units.info.gz ]; then
/sbin/install-info %{_infodir}/units.info.gz %{_infodir}/dir || :
fi
%preun
if [ $1 = 0 -a -e %{_infodir}/units.info.gz ]; then
/sbin/install-info --delete %{_infodir}/units.info.gz %{_infodir}/dir || :
fi
%files %files
%doc ChangeLog COPYING NEWS README %doc ChangeLog COPYING NEWS README
%{_bindir}/units %{_bindir}/units