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