From de8956e03448ae0823e1cbc52d4809a2226aeb50 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Fri, 23 Feb 2007 11:02:21 +0000 Subject: [PATCH] - fix buildroot - remove trailing dot from summary - fix post/preun requirements - use make install DESTDIR=... - convert changelog to utf-8 - use smp flags --- bc.spec | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/bc.spec b/bc.spec index bb9df26..c8ef50c 100644 --- a/bc.spec +++ b/bc.spec @@ -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 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 - scripts should never fail: rhbz#223677 @@ -128,10 +135,10 @@ exit 0 * Thu May 23 2002 Tim Powers - automated rebuild -* Tue Feb 26 2002 Trond Eivind Glomsrød 1.06-8 +* Tue Feb 26 2002 Trond Eivind Glomsrød 1.06-8 - Rebuild -* Mon Feb 4 2002 Trond Eivind Glomsrød 1.06-7 +* Mon Feb 4 2002 Trond Eivind Glomsrød 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 +* Fri Dec 01 2000 Trond Eivind Glomsrød - Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README * Sun Nov 19 2000 Florian La Roche - update to bc 1.06 -* Fri Jul 21 2000 Trond Eivind Glomsrød +* Fri Jul 21 2000 Trond Eivind Glomsrød - rebuild * Wed Jul 12 2000 Prospector - automatic rebuild -* Tue Jun 06 2000 Trond Eivind Glomsrød +* Tue Jun 06 2000 Trond Eivind Glomsrød - use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir} and %%{_tmppath} -* Wed May 10 2000 Trond Eivind Glomsrød +* Wed May 10 2000 Trond Eivind Glomsrød - added URL - let build system handle man page gzipping -* Thu Apr 06 2000 Trond Eivind Glomsrød +* Thu Apr 06 2000 Trond Eivind Glomsrød - fixed bug 7145 (long commands -> coredump) - removed explicit stripping, it does this by itself anyway - gzipped man-pages