Remove install-info from scriptlets

This commit is contained in:
Nikola Forró 2018-06-19 17:49:28 +02:00
parent d1a23c947c
commit ab6a60f534

View File

@ -3,7 +3,7 @@
Summary: A document formatting system
Name: groff
Version: 1.22.3
Release: 15%{?dist}
Release: 16%{?dist}
License: GPLv3+ and GFDL and BSD and MIT
Group: Applications/Publishing
URL: http://www.gnu.org/software/groff/
@ -19,9 +19,7 @@ Patch3: 0004-don-t-use-usr-bin-env-in-shebang.patch
# SSIA
Patch4: 0005-Add-missing-rule-for-gropdf.patch
Requires: coreutils, /sbin/install-info, groff-base = %{version}-%{release}
Requires(post): info
Requires(preun): info
Requires: coreutils, groff-base = %{version}-%{release}
BuildRequires: gcc, gcc-c++
BuildRequires: git, netpbm-progs, perl-generators, psutils, ghostscript
Provides: nroff-i18n = %{version}-%{release}
@ -84,8 +82,6 @@ Summary: Documentation for groff document formatting system
Group: Documentation
BuildArch: noarch
Requires: groff = %{version}-%{release}
Requires(post): info
Requires(preun): info
%description doc
The groff-doc package includes additional documentation for groff
@ -150,14 +146,6 @@ popd
# /bin/sed moved to /usr/bin/sed in Fedora
sed --in-place 's|#! /bin/sed -f|#! /usr/bin/sed -f|' %{buildroot}%{_datadir}/groff/%{version}/font/devps/generate/symbol.sed
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%files
# data
%{_datadir}/%{name}/%{version}/font/devdvi/
@ -426,6 +414,9 @@ fi
%doc %{_pkgdocdir}/pdf/
%changelog
* Tue Jun 19 2018 Nikola Forró <nforro@redhat.com> - 1.22.3-16
- Remove install-info from scriptlets
* Tue Feb 27 2018 Nikola Forró <nforro@redhat.com> - 1.22.3-15
- Add unowned directories to groff-base and groff-perl
resolves: #1548688