From f5e85a63e5ad5bf5b2c88fbb3a94a115ae90c27b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 12 Jul 2018 10:48:42 +0200 Subject: [PATCH] remove unneeded scriptlets install-info is handled by filetriggers nowadays. Signed-off-by: Igor Gnatenko --- m4.spec | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/m4.spec b/m4.spec index 7d56f9f..c926838 100644 --- a/m4.spec +++ b/m4.spec @@ -8,8 +8,6 @@ Source1: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz.sig # Patch0: update to glibc libio.h removal, rhbz#1573342 Patch0: m4-1.4.18-glibc-change-work-around.patch URL: http://www.gnu.org/software/m4/ -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info BuildRequires: gcc autoconf automake %ifarch ppc ppc64 BuildRequires: texinfo @@ -36,10 +34,10 @@ chmod 644 COPYING %build autoreconf -ivf %configure -make %{?_smp_mflags} +%make_build %install -make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT +%make_install rm -f $RPM_BUILD_ROOT%{_infodir}/dir %check @@ -52,18 +50,6 @@ make %{?_smp_mflags} check %{_infodir}/* %{_mandir}/man1/m4.1* -%post -if [ -f %{_infodir}/m4.info.gz ]; then # --excludedocs? - /sbin/install-info %{_infodir}/m4.info.gz %{_infodir}/dir || : -fi - -%preun -if [ "$1" = 0 ]; then - if [ -f %{_infodir}/m4.info.gz ]; then # --excludedocs? - /sbin/install-info --delete %{_infodir}/m4.info.gz %{_infodir}/dir || : - fi -fi - %changelog * Wed May 02 2018 Vitezslav Crhonek - 1.4.18-8 - Work around change in glibc