4ed832
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
4ed832
Name: bc
4ed832
Version: 1.06.95
e73d1f
Release: 13%{?dist}
4ed832
License: GPLv2+
4ed832
URL: http://www.gnu.org/software/bc/
4ed832
Group: Applications/Engineering
4ed832
Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2
4ed832
Patch1: bc-1.06-dc_ibase.patch
4ed832
Patch2: bc-1.06.95-memleak.patch
4ed832
Patch3: bc-1.06.95-matlib.patch
4ed832
Patch4: bc-1.06.95-sigintmasking.patch
4ed832
Patch5: bc-1.06.95-doc.patch
4ed832
Requires(post): /sbin/install-info
4ed832
Requires(preun): /sbin/install-info
4ed832
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4ed832
BuildRequires: readline-devel, flex, bison, texinfo
4ed832
4ed832
%description
4ed832
The bc package includes bc and dc. Bc is an arbitrary precision
4ed832
numeric processing arithmetic language. Dc is an interactive
4ed832
arbitrary precision stack based calculator, which can be used as a
4ed832
text mode calculator.
4ed832
4ed832
Install the bc package if you need its number handling capabilities or
4ed832
if you would like to use its text mode calculator.
4ed832
4ed832
%prep
4ed832
%setup -q
4ed832
%patch1 -p1 -b .dc_ibase
4ed832
%patch2 -p1 -b .memleak
4ed832
%patch3 -p1 -b .matlib
4ed832
%patch4 -p1 -b .sigintmask
4ed832
%patch5 -p1 -b .doc
4ed832
4ed832
%build
4ed832
%configure --with-readline
4ed832
make %{?_smp_mflags}
4ed832
4ed832
%install
4ed832
make install DESTDIR=$RPM_BUILD_ROOT
4ed832
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
4ed832
4ed832
%post
4ed832
if [ -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
4ed832
  /sbin/install-info %{_infodir}/bc.info.gz %{_infodir}/dir \
4ed832
  --entry="* bc: (bc).                      The GNU calculator language." || :
4ed832
  /sbin/install-info %{_infodir}/dc.info.gz %{_infodir}/dir \
4ed832
  --entry="* dc: (dc).                      The GNU RPN calculator." || :
4ed832
fi
4ed832
4ed832
%preun
4ed832
if [ $1 = 0 -a -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
4ed832
  /sbin/install-info --delete %{_infodir}/bc.info.gz %{_infodir}/dir \
4ed832
  --entry="* bc: (bc).                      The GNU calculator language." || :
4ed832
  /sbin/install-info --delete %{_infodir}/dc.info.gz %{_infodir}/dir \
4ed832
  --entry="* dc: (dc).                      The GNU RPN calculator." || :
4ed832
fi
4ed832
4ed832
%files
4ed832
%defattr(-,root,root,-)
4ed832
%doc COPYING COPYING.LIB FAQ AUTHORS NEWS README Examples/
4ed832
%{_bindir}/dc
4ed832
%{_bindir}/bc
4ed832
%{_mandir}/*/*
4ed832
%{_infodir}/*
4ed832
4ed832
%changelog
e73d1f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.06.95-13
e73d1f
- Mass rebuild 2014-01-24
e73d1f
e73d1f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.06.95-12
e73d1f
- Mass rebuild 2013-12-27
e73d1f
4ed832
* Wed Oct 02 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.06.95-11
4ed832
- man and info patched - clarified scale after multiplication
4ed832
4ed832
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-10
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4ed832
4ed832
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-9
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4ed832
4ed832
* Tue Oct 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-8
4ed832
- Minor spec cleanup
4ed832
4ed832
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-7
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4ed832
4ed832
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-6
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4ed832
4ed832
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-5
4ed832
- Rebuilt for glibc bug#747377
4ed832
4ed832
* Thu Sep 08 2011 Ondrej Vasik <ovasik@redhat.com> 1.06.95-4
4ed832
- do not mask SIGINT in dc when reading from stdin (#697340)
4ed832
4ed832
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.95-3
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4ed832
4ed832
* Wed Dec 22 2010 Ondrej Vasik <ovasik@redhat.com> 1.06.95-2
4ed832
- fix possible segfault in arrays handling(debbug #586969)
4ed832
- initialize f_void to work with math lib again(#664080)
4ed832
4ed832
* Thu Sep 24 2009 Ondrej Vasik <ovasik@redhat.com> 1.06.95-1
4ed832
- update to upstream alpha 1.06.95 (in use in Gentoo, Slackware
4ed832
  for quite a long time, marked stable there)
4ed832
- removed already applied patches, fix small memory leak
4ed832
  (gentoo patch)
4ed832
- add missing BR for bison and texinfo
4ed832
4ed832
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> 1.06-36
4ed832
- Don't complain if installing with --excludedocs (#515934)
4ed832
4ed832
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-35
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4ed832
4ed832
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-34
4ed832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4ed832
4ed832
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.06-33
4ed832
- Autorebuild for GCC 4.3
4ed832
4ed832
* Fri Jan 04 2008 Zdenek Prikryl <zprikryl@redhat.com> 1.06-32
4ed832
- Added Examples directory into doc
4ed832
- Added bc info file
4ed832
4ed832
* Fri Dec 14 2007 Stepan Kasal <skasal@redhat.com> 1.06-31
4ed832
- Remove bc-1.06-flex.patch
4ed832
- do not run autofoo
4ed832
- fix the Licence tag
4ed832
4ed832
* Fri Dec 07 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-30
4ed832
- Package review (#225611)
4ed832
4ed832
* Tue Sep 18 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-29
4ed832
- update of source URI
4ed832
4ed832
* Wed Aug 22 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-28
4ed832
- fixed incorrect processing of decimal separator
4ed832
- Resolves: #253729
4ed832
4ed832
* Thu Jul 26 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-27
4ed832
- dc accepts the input which contains wrong symbols of radix in same way like bc
4ed832
- Resolves: #151844
4ed832
- Added library string.h to remove warnings.
4ed832
4ed832
* Mon Feb 26 2007 Thomas Woerner <twoerner@redhat.com> 1.06-26
4ed832
- removed grep and mktemp usage from post script, also the requires
4ed832
4ed832
* Mon Feb 26 2007 Karsten Hopp <karsten@redhat.com> 1.06-25
4ed832
- flex supports -8 now (pmachata)
4ed832
4ed832
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 1.06-24
4ed832
- fix buildroot
4ed832
- remove trailing dot from summary
4ed832
- fix post/preun requirements
4ed832
- use make install DESTDIR=...
4ed832
- convert changelog to utf-8
4ed832
- use smp flags
4ed832
- use 'flex -I' instead 'flex -I8' (not supported anymore)
4ed832
- run autofoo stuff to update files for current automake
4ed832
4ed832
* Tue Jan 23 2007 Florian La Roche <laroche@redhat.com>
4ed832
- scripts should never fail: rhbz#223677
4ed832
4ed832
* Mon Jan 22 2007 Thomas Woerner <twoerner@redhat.com> 1.06-22
4ed832
- rebuild for ncurses
4ed832
4ed832
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.06-21
4ed832
- rebuild
4ed832
- add missing br automake
4ed832
4ed832
* Tue Jun  6 2006 Thomas Woerner <twoerner@redhat.com> 1.06-20
4ed832
- added missing flex build require
4ed832
4ed832
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.06-19.2.1
4ed832
- bump again for double-long bug on ppc(64)
4ed832
4ed832
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.06-19.2
4ed832
- rebuilt for new gcc4.1 snapshot and glibc changes
4ed832
4ed832
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
4ed832
- rebuilt
4ed832
4ed832
* Mon Nov 21 2005 Thomas Woerner <twoerner@redhat.com> 1.06-19
4ed832
- fixed rpm macro usage in chengelog (#137800)
4ed832
4ed832
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 1.06-18
4ed832
- Rebuilt for new readline.
4ed832
4ed832
* Fri Oct  8 2004 Thomas Woerner <twoerner@redhat.com> 1.06-17.1
4ed832
- added BuildRequires for readline-devel (#134699)
4ed832
4ed832
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
4ed832
- rebuilt
4ed832
4ed832
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
4ed832
- rebuilt
4ed832
4ed832
* Thu Aug 14 2003 Thomas Woerner <twoerner@redhat.com> 1.06-15
4ed832
- fixed incorrect capitalization in bc info page (#89851)
4ed832
4ed832
* Tue Jun 17 2003 Thomas Woerner <twoerner@redhat.com> 1.06-14
4ed832
- rebuild
4ed832
4ed832
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
4ed832
- rebuilt
4ed832
4ed832
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
4ed832
- rebuilt
4ed832
4ed832
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 1.06-11
4ed832
- rebuild on all arches
4ed832
4ed832
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
4ed832
- automated rebuild
4ed832
4ed832
* Thu May 23 2002 Tim Powers <timp@redhat.com>
4ed832
- automated rebuild
4ed832
4ed832
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-8
4ed832
- Rebuild
4ed832
4ed832
* Mon Feb  4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-7
4ed832
- s/Copyright/License/
4ed832
- The %%doc file AUTHOR should be AUTHORS
4ed832
4ed832
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
4ed832
- automated rebuild
4ed832
4ed832
* Wed Sep  9 2001 Phil Knirsch <phil@redhat.de> 1.06-5
4ed832
- Fixed a variable initialization problem in load.c which broke badly on S390.
4ed832
4ed832
* Fri May 11 2001 Preston Brown <pbrown@redhat.com> 1.06-4
4ed832
- use mktemp, not the pid shell variable, in rpm scriptlets
4ed832
4ed832
* Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-3
4ed832
- rebuild with new readline
4ed832
- Add patch to fix compilation with recent readline versions
4ed832
4ed832
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
4ed832
- Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README
4ed832
4ed832
* Sun Nov 19 2000 Florian La Roche <Florian.LaRoche@redhat.de>
4ed832
- update to bc 1.06
4ed832
4ed832
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
4ed832
- rebuild
4ed832
4ed832
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
4ed832
- automatic rebuild
4ed832
4ed832
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
4ed832
- use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir}
4ed832
  and %%{_tmppath}  
4ed832
4ed832
* Wed May 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
4ed832
- added URL
4ed832
- let build system handle man page gzipping
4ed832
4ed832
* Thu Apr 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
4ed832
- fixed bug 7145 (long commands -> coredump) 
4ed832
- removed explicit stripping, it does this by itself anyway
4ed832
- gzipped man-pages
4ed832
4ed832
* Thu Mar 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
4ed832
- Rebuild with new readline (4.1)
4ed832
4ed832
* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
4ed832
- Rebuild with new readline (4.0)
4ed832
- fix Source URL
4ed832
- some spec file cleanups
4ed832
4ed832
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
4ed832
- handle compressed manpages
4ed832
4ed832
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
4ed832
- auto rebuild in the new build environment (release 4)
4ed832
4ed832
* Thu Jan 21 1999 Jeff Johnson <jbj@redhat.com>
4ed832
- use %%configure
4ed832
4ed832
* Fri Sep 11 1998 Jeff Johnson <jbj@redhat.com>
4ed832
- update to 1.05a.
4ed832
4ed832
* Sun Jun 07 1998 Prospector System <bugs@redhat.com>
4ed832
- translations modified for de
4ed832
4ed832
* Thu Jun 04 1998 Jeff Johnson <jbj@redhat.com>
4ed832
- updated to 1.05 with build root.
4ed832
4ed832
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
4ed832
- translations modified for de, fr, tr
4ed832
4ed832
* Tue Apr 21 1998 Erik Troan <ewt@redhat.com>
4ed832
- got upgrades of info entry working (I hope)
4ed832
4ed832
* Sun Apr 05 1998 Erik Troan <ewt@redhat.com>
4ed832
- fixed incorrect info entry
4ed832
4ed832
* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
4ed832
- added install-info support
4ed832
4ed832
* Thu Sep 11 1997 Donald Barnes <djb@redhat.com>
4ed832
- upgraded from 1.03 to 1.04
4ed832
4ed832
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
4ed832
- built against glibc