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