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