2007-02-23 11:02:21 +00:00
|
|
|
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
|
2004-09-09 03:26:44 +00:00
|
|
|
Name: bc
|
2004-09-09 03:26:50 +00:00
|
|
|
Version: 1.06
|
2009-08-20 07:37:28 +00:00
|
|
|
Release: 36%{?dist}
|
2007-12-14 10:46:39 +00:00
|
|
|
License: GPLv2+
|
2004-09-09 03:26:44 +00:00
|
|
|
URL: http://www.gnu.org/software/bc/
|
|
|
|
Group: Applications/Engineering
|
2007-09-18 08:11:50 +00:00
|
|
|
Source: ftp://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
|
2004-09-09 03:27:38 +00:00
|
|
|
Patch1: bc-1.06-readline42.patch
|
|
|
|
Patch2: bc-1.06-s390.patch
|
2004-09-09 03:28:33 +00:00
|
|
|
Patch3: bc-1.06-info_exp_bessel.patch
|
2007-07-26 14:02:50 +00:00
|
|
|
Patch5: bc-1.06-string.patch
|
|
|
|
Patch6: bc-1.06-dc_ibase.patch
|
2007-02-26 14:18:11 +00:00
|
|
|
Requires(post): /sbin/install-info
|
2007-02-23 11:02:21 +00:00
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-12-14 10:21:31 +00:00
|
|
|
BuildRequires: readline-devel, flex
|
2004-09-09 03:26:44 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 03:27:38 +00:00
|
|
|
The bc package includes bc and dc. Bc is an arbitrary precision
|
|
|
|
numeric processing arithmetic language. Dc is an interactive
|
2004-09-09 03:26:44 +00:00
|
|
|
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
|
2004-09-09 03:26:50 +00:00
|
|
|
%setup -q
|
2004-09-09 03:27:38 +00:00
|
|
|
%patch1 -p1 -b .rl22
|
|
|
|
%patch2 -p1 -b .s390
|
2004-09-09 03:28:33 +00:00
|
|
|
%patch3 -p1 -b .info_exp_bessel
|
2007-07-26 14:02:50 +00:00
|
|
|
%patch5 -p1 -b .string
|
|
|
|
%patch6 -p1 -b .dc_ibase
|
2004-09-09 03:26:44 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --with-readline
|
2007-02-23 11:02:21 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-09-09 03:26:44 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2004-09-09 03:26:44 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
2009-08-20 07:37:28 +00:00
|
|
|
if [ -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
|
|
|
|
/sbin/install-info %{_infodir}/bc.info.gz %{_infodir}/dir \
|
|
|
|
--entry="* bc: (bc). The GNU calculator language." || :
|
|
|
|
/sbin/install-info %{_infodir}/dc.info.gz %{_infodir}/dir \
|
|
|
|
--entry="* dc: (dc). The GNU RPN calculator." || :
|
|
|
|
fi
|
2004-09-09 03:26:44 +00:00
|
|
|
|
|
|
|
%preun
|
2009-08-20 07:37:28 +00:00
|
|
|
if [ $1 = 0 -a -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/bc.info.gz %{_infodir}/dir \
|
|
|
|
--entry="* bc: (bc). The GNU calculator language." || :
|
|
|
|
/sbin/install-info --delete %{_infodir}/dc.info.gz %{_infodir}/dir \
|
|
|
|
--entry="* dc: (dc). The GNU RPN calculator." || :
|
2004-09-09 03:26:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
2007-02-23 11:02:21 +00:00
|
|
|
%defattr(-,root,root,-)
|
2007-12-14 12:53:18 +00:00
|
|
|
%doc COPYING COPYING.LIB FAQ AUTHORS NEWS README Examples/
|
2007-12-07 08:46:25 +00:00
|
|
|
%{_bindir}/dc
|
|
|
|
%{_bindir}/bc
|
2004-09-09 03:26:44 +00:00
|
|
|
%{_mandir}/*/*
|
|
|
|
%{_infodir}/*
|
|
|
|
|
|
|
|
%changelog
|
2009-08-20 07:37:28 +00:00
|
|
|
<<<<<<< bc.spec
|
|
|
|
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> 1.06-36
|
|
|
|
- Don't complain if installing with --excludedocs (#515934)
|
|
|
|
|
2009-07-24 17:54:08 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-35
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-24 04:14:44 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-34
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-02-20 08:48:53 +00:00
|
|
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.06-33
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-04 10:07:55 +00:00
|
|
|
* Fri Jan 04 2008 Zdenek Prikryl <zprikryl@redhat.com> 1.06-32
|
|
|
|
- Added Examples directory into doc
|
|
|
|
- Added bc info file
|
|
|
|
|
2007-12-14 10:21:31 +00:00
|
|
|
* Fri Dec 14 2007 Stepan Kasal <skasal@redhat.com> 1.06-31
|
|
|
|
- Remove bc-1.06-flex.patch
|
2007-12-14 10:46:39 +00:00
|
|
|
- do not run autofoo
|
|
|
|
- fix the Licence tag
|
2007-12-14 10:21:31 +00:00
|
|
|
|
2008-01-04 10:07:55 +00:00
|
|
|
* Fri Dec 07 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-30
|
2007-12-07 08:46:25 +00:00
|
|
|
- Package review (#225611)
|
|
|
|
|
2007-09-18 08:11:50 +00:00
|
|
|
* Tue Sep 18 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-29
|
|
|
|
- update of source URI
|
|
|
|
|
2007-08-22 06:50:27 +00:00
|
|
|
* Wed Aug 22 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-28
|
2007-08-22 06:49:20 +00:00
|
|
|
- fixed incorrect processing of decimal separator
|
|
|
|
- Resolves: #253729
|
|
|
|
|
2007-07-26 14:02:50 +00:00
|
|
|
* Thu Jul 26 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-27
|
|
|
|
- dc accepts the input which contains wrong symbols of radix in same way like bc
|
|
|
|
- Resolves: #151844
|
|
|
|
- Added library string.h to remove warnings.
|
|
|
|
|
2007-02-26 14:18:11 +00:00
|
|
|
* Mon Feb 26 2007 Thomas Woerner <twoerner@redhat.com> 1.06-26
|
|
|
|
- removed grep and mktemp usage from post script, also the requires
|
|
|
|
|
2007-02-26 09:04:45 +00:00
|
|
|
* Mon Feb 26 2007 Karsten Hopp <karsten@redhat.com> 1.06-25
|
2007-12-14 10:21:31 +00:00
|
|
|
- flex supports -8 now (pmachata)
|
2007-02-26 09:04:45 +00:00
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 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
|
2007-02-23 11:31:44 +00:00
|
|
|
- use 'flex -I' instead 'flex -I8' (not supported anymore)
|
|
|
|
- run autofoo stuff to update files for current automake
|
2007-02-23 11:02:21 +00:00
|
|
|
|
2007-01-23 09:57:48 +00:00
|
|
|
* Tue Jan 23 2007 Florian La Roche <laroche@redhat.com>
|
|
|
|
- scripts should never fail: rhbz#223677
|
|
|
|
|
2007-01-22 13:37:39 +00:00
|
|
|
* Mon Jan 22 2007 Thomas Woerner <twoerner@redhat.com> 1.06-22
|
2007-01-22 13:40:38 +00:00
|
|
|
- rebuild for ncurses
|
2007-01-22 13:37:39 +00:00
|
|
|
|
2006-07-12 20:35:13 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.06-21
|
2006-07-12 05:26:08 +00:00
|
|
|
- rebuild
|
2006-07-12 20:35:13 +00:00
|
|
|
- add missing br automake
|
2006-07-12 05:26:08 +00:00
|
|
|
|
2006-06-06 10:02:35 +00:00
|
|
|
* Tue Jun 6 2006 Thomas Woerner <twoerner@redhat.com> 1.06-20
|
|
|
|
- added missing flex build require
|
|
|
|
|
2006-02-11 02:05:44 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.06-19.2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 11:07:32 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.06-19.2
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-09 22:39:45 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-11-21 13:21:11 +00:00
|
|
|
* Mon Nov 21 2005 Thomas Woerner <twoerner@redhat.com> 1.06-19
|
|
|
|
- fixed rpm macro usage in chengelog (#137800)
|
|
|
|
|
2005-01-12 14:19:39 +00:00
|
|
|
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 1.06-18
|
|
|
|
- Rebuilt for new readline.
|
|
|
|
|
2004-10-08 13:05:15 +00:00
|
|
|
* Fri Oct 8 2004 Thomas Woerner <twoerner@redhat.com> 1.06-17.1
|
|
|
|
- added BuildRequires for readline-devel (#134699)
|
|
|
|
|
2004-09-09 03:29:01 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 03:28:54 +00:00
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 03:28:33 +00:00
|
|
|
* Thu Aug 14 2003 Thomas Woerner <twoerner@redhat.com> 1.06-15
|
|
|
|
- fixed incorrect capitalization in bc info page (#89851)
|
|
|
|
|
|
|
|
* Tue Jun 17 2003 Thomas Woerner <twoerner@redhat.com> 1.06-14
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 03:28:09 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 1.06-11
|
|
|
|
- rebuild on all arches
|
|
|
|
|
2004-09-09 03:28:02 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 03:27:59 +00:00
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-8
|
2004-09-09 03:27:52 +00:00
|
|
|
- Rebuild
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.06-7
|
2004-09-09 03:27:52 +00:00
|
|
|
- s/Copyright/License/
|
|
|
|
- The %%doc file AUTHOR should be AUTHORS
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 03:27:38 +00:00
|
|
|
* Wed Sep 9 2001 Phil Knirsch <phil@redhat.de> 1.06-5
|
|
|
|
- Fixed a variable initialization problem in load.c which broke badly on S390.
|
|
|
|
|
2004-09-09 03:26:56 +00:00
|
|
|
* Fri May 11 2001 Preston Brown <pbrown@redhat.com> 1.06-4
|
|
|
|
- use mktemp, not the pid shell variable, in rpm scriptlets
|
|
|
|
|
|
|
|
* Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-3
|
|
|
|
- rebuild with new readline
|
|
|
|
- Add patch to fix compilation with recent readline versions
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 03:26:50 +00:00
|
|
|
- Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README
|
|
|
|
|
|
|
|
* Sun Nov 19 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- update to bc 1.06
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 03:26:44 +00:00
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 03:26:44 +00:00
|
|
|
- use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir}
|
|
|
|
and %%{_tmppath}
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Wed May 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 03:26:44 +00:00
|
|
|
- added URL
|
|
|
|
- let build system handle man page gzipping
|
|
|
|
|
2007-02-23 11:02:21 +00:00
|
|
|
* Thu Apr 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
2004-09-09 03:26:44 +00:00
|
|
|
- fixed bug 7145 (long commands -> coredump)
|
|
|
|
- removed explicit stripping, it does this by itself anyway
|
|
|
|
- gzipped man-pages
|
|
|
|
|
|
|
|
* Thu Mar 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Rebuild with new readline (4.1)
|
|
|
|
|
|
|
|
* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Rebuild with new readline (4.0)
|
|
|
|
- fix Source URL
|
|
|
|
- some spec file cleanups
|
|
|
|
|
|
|
|
* Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- handle compressed manpages
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- auto rebuild in the new build environment (release 4)
|
|
|
|
|
|
|
|
* Thu Jan 21 1999 Jeff Johnson <jbj@redhat.com>
|
2005-11-21 13:21:11 +00:00
|
|
|
- use %%configure
|
2004-09-09 03:26:44 +00:00
|
|
|
|
|
|
|
* Fri Sep 11 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- update to 1.05a.
|
|
|
|
|
|
|
|
* Sun Jun 07 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de
|
|
|
|
|
|
|
|
* Thu Jun 04 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- updated to 1.05 with build root.
|
|
|
|
|
|
|
|
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
* Tue Apr 21 1998 Erik Troan <ewt@redhat.com>
|
|
|
|
- got upgrades of info entry working (I hope)
|
|
|
|
|
|
|
|
* Sun Apr 05 1998 Erik Troan <ewt@redhat.com>
|
|
|
|
- fixed incorrect info entry
|
|
|
|
|
|
|
|
* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
- added install-info support
|
|
|
|
|
|
|
|
* Thu Sep 11 1997 Donald Barnes <djb@redhat.com>
|
|
|
|
- upgraded from 1.03 to 1.04
|
|
|
|
|
|
|
|
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- built against glibc
|