bc-vl.spec 7.3 KB

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