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:03:25 +01:00
parent e24a90df1a
commit 2b5439770a
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -25,9 +25,6 @@ BuildRequires: perl(strict)
%{?with_nls:BuildRequires: perl(Encode)}
%{?with_nls:BuildRequires: perl(I18N::Langinfo)}
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%description
help2man is a script to create simple man pages from the --help and
--version output of programs.
@ -48,15 +45,6 @@ make install_l10n DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %name --with-man
%post
/sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
%preun
if [ $1 -eq 0 ]; then
/sbin/install-info --delete %{_infodir}/help2man.info \
%{_infodir}/dir 2>/dev/null || :
fi
%files -f %name.lang
%doc README NEWS THANKS
%license COPYING