[521] | 1 | Summary: GNU's bc (a numeric processing language) and dc (a calculator). |
---|
| 2 | Summary(ja): GNU bc (計算言語) と dc (計算機) |
---|
| 3 | Name: bc |
---|
[3295] | 4 | Version: 1.06.95 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[521] | 6 | License: GPL |
---|
| 7 | URL: http://www.gnu.org/software/bc/ |
---|
| 8 | Group: Applications/Edutainment |
---|
[3295] | 9 | Source: ftp://alpha.gnu.org/gnu/bc/bc-%{version}.tar.bz2 |
---|
| 10 | Patch1: bc-1.06-dc_ibase.patch |
---|
| 11 | Patch2: bc-1.06.95-memleak.patch |
---|
| 12 | Patch3: bc-1.06.95-matlib.patch |
---|
[521] | 13 | |
---|
| 14 | Requires(post): /sbin/install-info |
---|
| 15 | Requires(preun): /sbin/install-info |
---|
| 16 | Buildroot: %{_tmppath}/%{name}-%{version}-%{version}-root |
---|
[3295] | 17 | BuildRequires: readline-devel, flex, bison, texinfo |
---|
[521] | 18 | |
---|
| 19 | %description |
---|
| 20 | The bc package includes bc and dc. Bc is an arbitrary precision |
---|
| 21 | numeric processing arithmetic language. Dc is an interactive |
---|
| 22 | arbitrary precision stack based calculator, which can be used as a |
---|
| 23 | text mode calculator. |
---|
| 24 | |
---|
| 25 | Install the bc package if you need its number handling capabilities or |
---|
| 26 | if you would like to use its text mode calculator. |
---|
| 27 | |
---|
| 28 | %description -l ja |
---|
| 29 | bc パッケージには bc と dc が含まれています. |
---|
| 30 | bc は任意精度の計算言語です.dc はスタックを用いた対話型計算機で, |
---|
| 31 | テキストモードの計算機として使うことが出来ます. |
---|
| 32 | |
---|
| 33 | 数を使った処理を行いたい場合,テキストモードの計算機を使いたい場合は |
---|
| 34 | この bc パッケージをインストールして下さい. |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q |
---|
[3295] | 39 | %patch1 -p1 -b .dc_ibase |
---|
| 40 | %patch2 -p1 -b .memleak |
---|
| 41 | %patch3 -p1 -b .matlib |
---|
[521] | 42 | |
---|
| 43 | %build |
---|
| 44 | %configure --with-readline |
---|
| 45 | make %{?_smp_mflags} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | |
---|
| 50 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 51 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | |
---|
| 56 | %post |
---|
| 57 | /sbin/install-info %{_infodir}/bc.info %{_infodir}/dir --entry="* bc: (bc). The GNU calculator language." || : |
---|
| 58 | /sbin/install-info %{_infodir}/dc.info %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator."|| : |
---|
| 59 | |
---|
| 60 | %preun |
---|
| 61 | if [ $1 = 0 ]; then |
---|
| 62 | /sbin/install-info --delete %{_infodir}/bc.info %{_infodir}/dir --entry="* bc: (bc). The GNU calculator language." || : |
---|
| 63 | /sbin/install-info --delete %{_infodir}/dc.info %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator." || : |
---|
| 64 | fi |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %files |
---|
| 68 | %defattr(-,root,root) |
---|
| 69 | %doc COPYING COPYING.LIB FAQ AUTHORS NEWS README |
---|
| 70 | %{_bindir}/bc |
---|
| 71 | %{_bindir}/dc |
---|
| 72 | %{_mandir}/*/* |
---|
| 73 | %{_infodir}/* |
---|
| 74 | |
---|
| 75 | %changelog |
---|
[3295] | 76 | * Tue Apr 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.06.95-1 |
---|
| 77 | - update to upstream alpha. |
---|
| 78 | - update fedora patches |
---|
| 79 | - add BR: bison, texinfo |
---|
| 80 | |
---|
[521] | 81 | * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.06-20 |
---|
| 82 | - spec in utf-8 |
---|
| 83 | |
---|
| 84 | * Sun Sep 10 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.06-19 |
---|
| 85 | - added Patch5 and 6 from Fedora |
---|
| 86 | * Wed Aug 22 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-28 |
---|
| 87 | - fixed incorrect processing of decimal separator |
---|
| 88 | * Thu Jul 26 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-27 |
---|
| 89 | - Added library string.h to remove warnings. |
---|
| 90 | - applied new versioning policy |
---|
| 91 | |
---|
| 92 | * Sun Sep 10 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.06-18vl3 |
---|
| 93 | - change Group to Applications/Edutainment. <BTS:VineLinux:163> |
---|
| 94 | |
---|
| 95 | * Sun Mar 19 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.06-18vl2 |
---|
| 96 | - rebuild with readline-5.1 |
---|
| 97 | |
---|
| 98 | * Sat Sep 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.06-18vl1 |
---|
| 99 | - added Patch3 from Fedora |
---|
| 100 | * Thu Aug 14 2003 Thomas Woerner <twoerner@redhat.com> 1.06-15 |
---|
| 101 | - fixed incorrect capitalization in bc info page (#89851) |
---|
| 102 | |
---|
| 103 | * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.06-10vl2 |
---|
| 104 | - rebuild with readline-4.3 |
---|
| 105 | |
---|
| 106 | * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.06-10vl1 |
---|
| 107 | - based on 1.06-10vl1 from Rawhide and built for Vine Linux |
---|
| 108 | - added Japanese summary and description |
---|
| 109 | |
---|
| 110 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 111 | - automated rebuild |
---|
| 112 | |
---|
| 113 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
| 114 | - automated rebuild |
---|
| 115 | |
---|
| 116 | * Tue Feb 26 2002 Trond Eivind Glomsr <teg@redhat.com> 1.06-8 |
---|
| 117 | - Rebuild |
---|
| 118 | |
---|
| 119 | * Mon Feb 4 2002 Trond Eivind Glomsr <teg@redhat.com> 1.06-7 |
---|
| 120 | - s/Copyright/License/ |
---|
| 121 | - The %%doc file AUTHOR should be AUTHORS |
---|
| 122 | |
---|
| 123 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 124 | - automated rebuild |
---|
| 125 | |
---|
| 126 | * Wed Sep 9 2001 Phil Knirsch <phil@redhat.de> 1.06-5 |
---|
| 127 | - Fixed a variable initialization problem in load.c which broke badly on S390. |
---|
| 128 | |
---|
| 129 | * Fri May 11 2001 Preston Brown <pbrown@redhat.com> 1.06-4 |
---|
| 130 | - use mktemp, not the pid shell variable, in rpm scriptlets |
---|
| 131 | |
---|
| 132 | * Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-3 |
---|
| 133 | - rebuild with new readline |
---|
| 134 | - Add patch to fix compilation with recent readline versions |
---|
| 135 | |
---|
| 136 | * Fri Dec 01 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 137 | - Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README |
---|
| 138 | |
---|
| 139 | * Sun Nov 19 2000 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
| 140 | - update to bc 1.06 |
---|
| 141 | |
---|
| 142 | * Fri Jul 21 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 143 | - rebuild |
---|
| 144 | |
---|
| 145 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
| 146 | - automatic rebuild |
---|
| 147 | |
---|
| 148 | * Tue Jun 06 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 149 | - use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir} |
---|
| 150 | and %%{_tmppath} |
---|
| 151 | |
---|
| 152 | * Wed May 10 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 153 | - added URL |
---|
| 154 | - let build system handle man page gzipping |
---|
| 155 | |
---|
| 156 | * Thu Apr 06 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
| 157 | - fixed bug 7145 (long commands -> coredump) |
---|
| 158 | - removed explicit stripping, it does this by itself anyway |
---|
| 159 | - gzipped man-pages |
---|
| 160 | |
---|
| 161 | * Thu Mar 30 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
| 162 | - Rebuild with new readline (4.1) |
---|
| 163 | |
---|
| 164 | * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
| 165 | - Rebuild with new readline (4.0) |
---|
| 166 | - fix Source URL |
---|
| 167 | - some spec file cleanups |
---|
| 168 | |
---|
| 169 | * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com> |
---|
| 170 | - handle compressed manpages |
---|
| 171 | |
---|
| 172 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 173 | - auto rebuild in the new build environment (release 4) |
---|
| 174 | |
---|
| 175 | * Thu Jan 21 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 176 | - use %configure |
---|
| 177 | |
---|
| 178 | * Fri Sep 11 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 179 | - update to 1.05a. |
---|
| 180 | |
---|
| 181 | * Sun Jun 07 1998 Prospector System <bugs@redhat.com> |
---|
| 182 | - translations modified for de |
---|
| 183 | |
---|
| 184 | * Thu Jun 04 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 185 | - updated to 1.05 with build root. |
---|
| 186 | |
---|
| 187 | * Fri Apr 24 1998 Prospector System <bugs@redhat.com> |
---|
| 188 | - translations modified for de, fr, tr |
---|
| 189 | |
---|
| 190 | * Tue Apr 21 1998 Erik Troan <ewt@redhat.com> |
---|
| 191 | - got upgrades of info entry working (I hope) |
---|
| 192 | |
---|
| 193 | * Sun Apr 05 1998 Erik Troan <ewt@redhat.com> |
---|
| 194 | - fixed incorrect info entry |
---|
| 195 | |
---|
| 196 | * Wed Oct 15 1997 Donnie Barnes <djb@redhat.com> |
---|
| 197 | - added install-info support |
---|
| 198 | |
---|
| 199 | * Thu Sep 11 1997 Donald Barnes <djb@redhat.com> |
---|
| 200 | - upgraded from 1.03 to 1.04 |
---|
| 201 | |
---|
| 202 | * Mon Jun 02 1997 Erik Troan <ewt@redhat.com> |
---|
| 203 | - built against glibc |
---|