bc-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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
  5. Release: 20%{?_dist_release}
  6. License: GPL
  7. URL: http://www.gnu.org/software/bc/
  8. Group: Applications/Edutainment
  9. Source: ftp://ftp.gnu.org/gnu/bc/bc-%{version}.tar.bz2
  10. Patch1: bc-1.06-readline42.patch
  11. Patch2: bc-1.06-s390.patch
  12. Patch3: bc-1.06-info_exp_bessel.patch
  13. Patch5: bc-1.06-string.patch
  14. Patch6: bc-1.06-dc_ibase.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
  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 .rl22
  35. %patch2 -p1 -b .s390
  36. %patch3 -p1 -b .info_exp_bessel
  37. %patch5 -p1 -b .string
  38. %patch6 -p1 -b .dc_ibase
  39. %build
  40. %configure --with-readline
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install DESTDIR=$RPM_BUILD_ROOT
  45. rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %post
  49. /sbin/install-info %{_infodir}/bc.info %{_infodir}/dir --entry="* bc: (bc). The GNU calculator language." || :
  50. /sbin/install-info %{_infodir}/dc.info %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator."|| :
  51. %preun
  52. if [ $1 = 0 ]; then
  53. /sbin/install-info --delete %{_infodir}/bc.info %{_infodir}/dir --entry="* bc: (bc). The GNU calculator language." || :
  54. /sbin/install-info --delete %{_infodir}/dc.info %{_infodir}/dir --entry="* dc: (dc). The GNU RPN calculator." || :
  55. fi
  56. %files
  57. %defattr(-,root,root)
  58. %doc COPYING COPYING.LIB FAQ AUTHORS NEWS README
  59. %{_bindir}/bc
  60. %{_bindir}/dc
  61. %{_mandir}/*/*
  62. %{_infodir}/*
  63. %changelog
  64. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.06-20
  65. - spec in utf-8
  66. * Sun Sep 10 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.06-19
  67. - added Patch5 and 6 from Fedora
  68. * Wed Aug 22 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-28
  69. - fixed incorrect processing of decimal separator
  70. * Thu Jul 26 2007 Zdenek Prikryl <zprikryl@redhat.com> 1.06-27
  71. - Added library string.h to remove warnings.
  72. - applied new versioning policy
  73. * Sun Sep 10 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.06-18vl3
  74. - change Group to Applications/Edutainment. <BTS:VineLinux:163>
  75. * Sun Mar 19 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.06-18vl2
  76. - rebuild with readline-5.1
  77. * Sat Sep 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.06-18vl1
  78. - added Patch3 from Fedora
  79. * Thu Aug 14 2003 Thomas Woerner <twoerner@redhat.com> 1.06-15
  80. - fixed incorrect capitalization in bc info page (#89851)
  81. * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.06-10vl2
  82. - rebuild with readline-4.3
  83. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.06-10vl1
  84. - based on 1.06-10vl1 from Rawhide and built for Vine Linux
  85. - added Japanese summary and description
  86. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  87. - automated rebuild
  88. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  89. - automated rebuild
  90. * Tue Feb 26 2002 Trond Eivind Glomsr <teg@redhat.com> 1.06-8
  91. - Rebuild
  92. * Mon Feb 4 2002 Trond Eivind Glomsr <teg@redhat.com> 1.06-7
  93. - s/Copyright/License/
  94. - The %%doc file AUTHOR should be AUTHORS
  95. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  96. - automated rebuild
  97. * Wed Sep 9 2001 Phil Knirsch <phil@redhat.de> 1.06-5
  98. - Fixed a variable initialization problem in load.c which broke badly on S390.
  99. * Fri May 11 2001 Preston Brown <pbrown@redhat.com> 1.06-4
  100. - use mktemp, not the pid shell variable, in rpm scriptlets
  101. * Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-3
  102. - rebuild with new readline
  103. - Add patch to fix compilation with recent readline versions
  104. * Fri Dec 01 2000 Trond Eivind Glomsr <teg@redhat.com>
  105. - Add COPYING, COPYING.LIB, FAQ, AUTHORS, NEWS, README
  106. * Sun Nov 19 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  107. - update to bc 1.06
  108. * Fri Jul 21 2000 Trond Eivind Glomsr <teg@redhat.com>
  109. - rebuild
  110. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  111. - automatic rebuild
  112. * Tue Jun 06 2000 Trond Eivind Glomsr <teg@redhat.com>
  113. - use %%makeinstall, %%configure, %%{_mandir}, %%{_infodir}
  114. and %%{_tmppath}
  115. * Wed May 10 2000 Trond Eivind Glomsr <teg@redhat.com>
  116. - added URL
  117. - let build system handle man page gzipping
  118. * Thu Apr 06 2000 Trond Eivind Glomsr <teg@redhat.com>
  119. - fixed bug 7145 (long commands -> coredump)
  120. - removed explicit stripping, it does this by itself anyway
  121. - gzipped man-pages
  122. * Thu Mar 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  123. - Rebuild with new readline (4.1)
  124. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  125. - Rebuild with new readline (4.0)
  126. - fix Source URL
  127. - some spec file cleanups
  128. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  129. - handle compressed manpages
  130. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  131. - auto rebuild in the new build environment (release 4)
  132. * Thu Jan 21 1999 Jeff Johnson <jbj@redhat.com>
  133. - use %configure
  134. * Fri Sep 11 1998 Jeff Johnson <jbj@redhat.com>
  135. - update to 1.05a.
  136. * Sun Jun 07 1998 Prospector System <bugs@redhat.com>
  137. - translations modified for de
  138. * Thu Jun 04 1998 Jeff Johnson <jbj@redhat.com>
  139. - updated to 1.05 with build root.
  140. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  141. - translations modified for de, fr, tr
  142. * Tue Apr 21 1998 Erik Troan <ewt@redhat.com>
  143. - got upgrades of info entry working (I hope)
  144. * Sun Apr 05 1998 Erik Troan <ewt@redhat.com>
  145. - fixed incorrect info entry
  146. * Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
  147. - added install-info support
  148. * Thu Sep 11 1997 Donald Barnes <djb@redhat.com>
  149. - upgraded from 1.03 to 1.04
  150. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  151. - built against glibc