- fix buildroot

- remove trailing dot from summary
- fix post/preun requirements
- use make install DESTDIR=...
- convert changelog to utf-8
- use smp flags
This commit is contained in:
Karsten Hopp 2007-02-23 11:02:21 +00:00
parent cde3b9c3b0
commit de8956e034

39
bc.spec
View File

@ -1,7 +1,7 @@
Summary: GNU's bc (a numeric processing language) and dc (a calculator).
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
Name: bc
Version: 1.06
Release: 23
Release: 24
License: GPL
URL: http://www.gnu.org/software/bc/
Group: Applications/Engineering
@ -9,8 +9,9 @@ Source: ftp://ftp.gnu.org/gnu/bc/bc-%{version}.tar.bz2
Patch1: bc-1.06-readline42.patch
Patch2: bc-1.06-s390.patch
Patch3: bc-1.06-info_exp_bessel.patch
Prereq: /sbin/install-info grep
Buildroot: %{_tmppath}/%{name}-%{version}-root
Requires(post): /sbin/install-info grep mktemp
Requires(preun): /sbin/install-info
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel, flex, automake
%description
@ -31,15 +32,13 @@ if you would like to use its text mode calculator.
%build
autoconf
%configure --with-readline
make
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
gzip -n -9f $RPM_BUILD_ROOT/%{_infodir}/*
%clean
rm -rf $RPM_BUILD_ROOT
@ -62,7 +61,7 @@ fi
exit 0
%files
%defattr(-,root,root)
%defattr(-,root,root,-)
%doc COPYING COPYING.LIB FAQ AUTHORS NEWS README
/usr/bin/dc
/usr/bin/bc
@ -70,6 +69,14 @@ exit 0
%{_infodir}/*
%changelog
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 1.06-24
- fix buildroot
- remove trailing dot from summary
- fix post/preun requirements
- use make install DESTDIR=...
- convert changelog to utf-8
- use smp flags
* Tue Jan 23 2007 Florian La Roche <laroche@redhat.com>
- scripts should never fail: rhbz#223677
@ -128,10 +135,10 @@ exit 0
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-8
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-8
- Rebuild
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-7
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-7
- s/Copyright/License/
- The %%doc file AUTHOR should be AUTHORS
@ -148,27 +155,27 @@ exit 0
- rebuild with new readline
- Add patch to fix compilation with recent readline versions
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README
* Sun Nov 19 2000 Florian La Roche <Florian.LaRoche@redhat.de>
- update to bc 1.06
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir}
and %%{_tmppath}
* Wed May 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Wed May 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- added URL
- let build system handle man page gzipping
* Thu Apr 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Thu Apr 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
- fixed bug 7145 (long commands -> coredump)
- removed explicit stripping, it does this by itself anyway
- gzipped man-pages