- removed grep and mktemp usage from post script, also the requires
This commit is contained in:
Thomas Woerner 2007-02-26 14:18:11 +00:00
parent 74773878c3
commit c5e5d6bf96

14
bc.spec
View File

@ -1,7 +1,7 @@
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
Name: bc
Version: 1.06
Release: 25
Release: 26
License: GPL
URL: http://www.gnu.org/software/bc/
Group: Applications/Engineering
@ -10,7 +10,7 @@ Patch1: bc-1.06-readline42.patch
Patch2: bc-1.06-s390.patch
Patch3: bc-1.06-info_exp_bessel.patch
Patch4: bc-1.06-flex.patch
Requires(post): /sbin/install-info grep mktemp
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel, flex, automake
@ -48,13 +48,6 @@ rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
rm -rf $RPM_BUILD_ROOT
%post
# previous versions of bc put an improper entry into %{_infodir}/dir -- remove
# it
if grep 'dc: (bc)' %{_infodir}/dir > /dev/null; then
tmpfile=`mktemp ${_infodir}/dir.XXXXXX`
grep -v 'The GNU RPN calculator' < %{_infodir}/dir > $tmpfile
mv -f $tmpfile %{_infodir}/dir
fi
/sbin/install-info %{_infodir}/dc.info.gz %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator."
exit 0
@ -73,6 +66,9 @@ exit 0
%{_infodir}/*
%changelog
* Mon Feb 26 2007 Thomas Woerner <twoerner@redhat.com> 1.06-26
- removed grep and mktemp usage from post script, also the requires
* Mon Feb 26 2007 Karsten Hopp <karsten@redhat.com> 1.06-25
- fex supports -8 now (pmachata)