specfile: install-info removed from scriptlets

https://fedoraproject.org/wiki/Packaging:Scriptlets#Texinfo
This commit is contained in:
David Kaspar [Dee'Kej] 2018-06-18 12:13:51 +02:00
parent 9a979170a7
commit b81f38439e

View File

@ -48,8 +48,6 @@ Summary: Development tools for the GNU MP arbitrary precision library
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release}
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%description devel %description devel
The libraries, header files and documentation for using the GNU MP The libraries, header files and documentation for using the GNU MP
@ -144,20 +142,6 @@ make %{?_smp_mflags} check
%postun c++ -p /sbin/ldconfig %postun c++ -p /sbin/ldconfig
%post devel
if [ -f %{_infodir}/gmp.info.gz ]; then
/sbin/install-info %{_infodir}/gmp.info.gz %{_infodir}/dir || :
fi
exit 0
%preun devel
if [ $1 = 0 ]; then
if [ -f %{_infodir}/gmp.info.gz ]; then
/sbin/install-info --delete %{_infodir}/gmp.info.gz %{_infodir}/dir || :
fi
fi
exit 0
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}