Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
48b9f73cc8
commit
84c7852e73
12
units.spec
12
units.spec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user