Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
c8a3f66a01
commit
e1cc383538
18
bc.spec
18
bc.spec
@ -7,8 +7,6 @@ URL: http://www.gnu.org/software/bc/
|
||||
Source: http://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
|
||||
Patch1: bc-1.06-dc_ibase.patch
|
||||
Patch2: bc-1.06.95-doc.patch
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
BuildRequires: gcc
|
||||
BuildRequires: readline-devel, flex, bison, texinfo, ed
|
||||
|
||||
@ -32,22 +30,6 @@ if you would like to use its text mode calculator.
|
||||
%make_install
|
||||
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||||
|
||||
%post
|
||||
if [ -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
|
||||
/sbin/install-info %{_infodir}/bc.info.gz %{_infodir}/dir \
|
||||
--entry="* bc: (bc). The GNU calculator language." || :
|
||||
/sbin/install-info %{_infodir}/dc.info.gz %{_infodir}/dir \
|
||||
--entry="* dc: (dc). The GNU RPN calculator." || :
|
||||
fi
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 -a -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
|
||||
/sbin/install-info --delete %{_infodir}/bc.info.gz %{_infodir}/dir \
|
||||
--entry="* bc: (bc). The GNU calculator language." || :
|
||||
/sbin/install-info --delete %{_infodir}/dc.info.gz %{_infodir}/dir \
|
||||
--entry="* dc: (dc). The GNU RPN calculator." || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%license COPYING COPYING.LIB
|
||||
%doc FAQ AUTHORS NEWS README Examples/
|
||||
|
Loading…
Reference in New Issue
Block a user