Summary: GNU's bc (a numeric processing language) and dc (a calculator) Name: bc Version: 1.06 Release: 25 License: GPL URL: http://www.gnu.org/software/bc/ Group: Applications/Engineering 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 Patch4: bc-1.06-flex.patch 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 The bc package includes bc and dc. Bc is an arbitrary precision numeric processing arithmetic language. Dc is an interactive arbitrary precision stack based calculator, which can be used as a text mode calculator. Install the bc package if you need its number handling capabilities or if you would like to use its text mode calculator. %prep %setup -q %patch1 -p1 -b .rl22 %patch2 -p1 -b .s390 %patch3 -p1 -b .info_exp_bessel %patch4 -p1 -b .flexparameter %build aclocal automake -f --add-missing autoconf %configure --with-readline make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_infodir}/dir %clean 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 %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/dc.info.gz %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator." fi exit 0 %files %defattr(-,root,root,-) %doc COPYING COPYING.LIB FAQ AUTHORS NEWS README /usr/bin/dc /usr/bin/bc %{_mandir}/*/* %{_infodir}/* %changelog * Mon Feb 26 2007 Karsten Hopp 1.06-25 - fex supports -8 now (pmachata) * 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 - use 'flex -I' instead 'flex -I8' (not supported anymore) - run autofoo stuff to update files for current automake * Tue Jan 23 2007 Florian La Roche - scripts should never fail: rhbz#223677 * Mon Jan 22 2007 Thomas Woerner 1.06-22 - rebuild for ncurses * Wed Jul 12 2006 Jesse Keating - 1.06-21 - rebuild - add missing br automake * Tue Jun 6 2006 Thomas Woerner 1.06-20 - added missing flex build require * Fri Feb 10 2006 Jesse Keating - 1.06-19.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.06-19.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Mon Nov 21 2005 Thomas Woerner 1.06-19 - fixed rpm macro usage in chengelog (#137800) * Wed Jan 12 2005 Tim Waugh 1.06-18 - Rebuilt for new readline. * Fri Oct 8 2004 Thomas Woerner 1.06-17.1 - added BuildRequires for readline-devel (#134699) * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Aug 14 2003 Thomas Woerner 1.06-15 - fixed incorrect capitalization in bc info page (#89851) * Tue Jun 17 2003 Thomas Woerner 1.06-14 - rebuild * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Dec 11 2002 Tim Powers 1.06-11 - rebuild on all arches * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Tue Feb 26 2002 Trond Eivind Glomsrød 1.06-8 - Rebuild * Mon Feb 4 2002 Trond Eivind Glomsrød 1.06-7 - s/Copyright/License/ - The %%doc file AUTHOR should be AUTHORS * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Sep 9 2001 Phil Knirsch 1.06-5 - Fixed a variable initialization problem in load.c which broke badly on S390. * Fri May 11 2001 Preston Brown 1.06-4 - use mktemp, not the pid shell variable, in rpm scriptlets * Fri May 11 2001 Bernhard Rosenkraenzer 1.06-3 - rebuild with new readline - Add patch to fix compilation with recent readline versions * 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 - rebuild * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jun 06 2000 Trond Eivind Glomsrød - use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir} and %%{_tmppath} * 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 - fixed bug 7145 (long commands -> coredump) - removed explicit stripping, it does this by itself anyway - gzipped man-pages * Thu Mar 30 2000 Bernhard Rosenkraenzer - Rebuild with new readline (4.1) * Fri Mar 24 2000 Bernhard Rosenkraenzer - Rebuild with new readline (4.0) - fix Source URL - some spec file cleanups * Mon Feb 7 2000 Bill Nottingham - handle compressed manpages * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Thu Jan 21 1999 Jeff Johnson - use %%configure * Fri Sep 11 1998 Jeff Johnson - update to 1.05a. * Sun Jun 07 1998 Prospector System - translations modified for de * Thu Jun 04 1998 Jeff Johnson - updated to 1.05 with build root. * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Tue Apr 21 1998 Erik Troan - got upgrades of info entry working (I hope) * Sun Apr 05 1998 Erik Troan - fixed incorrect info entry * Wed Oct 15 1997 Donnie Barnes - added install-info support * Thu Sep 11 1997 Donald Barnes - upgraded from 1.03 to 1.04 * Mon Jun 02 1997 Erik Troan - built against glibc