remove unneeded scriptlets

install-info is handled by filetriggers nowadays.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-12 10:48:42 +02:00
parent 814d592134
commit f5e85a63e5
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

18
m4.spec
View File

@ -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: update to glibc libio.h removal, rhbz#1573342
Patch0: m4-1.4.18-glibc-change-work-around.patch Patch0: m4-1.4.18-glibc-change-work-around.patch
URL: http://www.gnu.org/software/m4/ URL: http://www.gnu.org/software/m4/
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRequires: gcc autoconf automake BuildRequires: gcc autoconf automake
%ifarch ppc ppc64 %ifarch ppc ppc64
BuildRequires: texinfo BuildRequires: texinfo
@ -36,10 +34,10 @@ chmod 644 COPYING
%build %build
autoreconf -ivf autoreconf -ivf
%configure %configure
make %{?_smp_mflags} %make_build
%install %install
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT %make_install
rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%check %check
@ -52,18 +50,6 @@ make %{?_smp_mflags} check
%{_infodir}/* %{_infodir}/*
%{_mandir}/man1/m4.1* %{_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 %changelog
* Wed May 02 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.18-8 * Wed May 02 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.18-8
- Work around change in glibc - Work around change in glibc