bc-vl.spec 7.2 KB

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