bc-vl.spec 6.5 KB

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