gawk-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Summary(ja): GNU バージョンの awk テキスト処理ユーティリティー
  2. Summary: The GNU version of the awk text processing utility.
  3. Name: gawk
  4. Version: 3.1.3
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: Applications/Text
  8. Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2
  9. Source1: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}-ps.tar.gz
  10. Patch3: gawk-3.1.3-fix1.patch
  11. Patch4: gawk-3.1.3-fix2.patch
  12. Patch5: gawk-3.1.3-fix3.patch
  13. Patch6: gawk-3.1.3-fix4.patch
  14. Patch7: gawk-3.1.3-fix5.patch
  15. Patch8: gawk-3.1.3-getpgrp_void.patch
  16. Patch9: gawk-3.1.0-shutup.patch
  17. Source10: gawk-3.1.3-ja.po
  18. Patch10: gawk-3.1.3-ja.patch
  19. Prereq: /sbin/install-info
  20. Requires: mktemp
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. The gawk packages contains the GNU version of awk, a text processing
  26. utility. Awk interprets a special-purpose programming language to do
  27. quick and easy text pattern matching and reformatting jobs.
  28. Install the gawk package if you need a text processing utility. Gawk is
  29. considered to be a standard Linux tool for processing text.
  30. %description -l ja
  31. gawk パッケージは GNU バージョンの、テキスト処理ユーティリティー awk
  32. を含んでいます。awk は素早く、簡単にパターンマッチングと整形処理を行う
  33. ためのプログラミング
  34. テキスト処理ユーティティーが必要なら、gawk パッケージをインストールし
  35. てください。gawk はLinux 上でテキスト処理を行う標準的なツールです。
  36. %prep
  37. %setup -q -b 1 -n gawk-%{version}
  38. %patch3 -p1 -b .fix1
  39. %patch4 -p0 -b .fix2
  40. %patch5 -p1 -b .fix3
  41. %patch6 -p1 -b .fix4
  42. %patch7 -p1 -b .fix5
  43. %patch8 -p1 -b .getpgrp_void
  44. %patch9 -p1 -b .shutup
  45. %patch10 -p0 -b .ja
  46. cp -f %{SOURCE10} po/ja.po
  47. %build
  48. %configure --bindir=/bin
  49. make
  50. (cd po; make update-po; make)
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. %makeinstall bindir=${RPM_BUILD_ROOT}/bin \
  54. libexecdir=${RPM_BUILD_ROOT}%{_libexecdir}/awk \
  55. datadir=${RPM_BUILD_ROOT}%{_datadir}/awk
  56. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  57. ln -sf gawk.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/awk.1.gz
  58. ln -sf ../../bin/gawk $RPM_BUILD_ROOT%{_bindir}/awk
  59. ln -sf ../../bin/gawk $RPM_BUILD_ROOT%{_bindir}/gawk
  60. rm -f $RPM_BUILD_ROOT/bin/{,p}gawk-%{version}
  61. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  62. mv -f $RPM_BUILD_ROOT%{_datadir}/awk/locale $RPM_BUILD_ROOT%{_datadir}/locale
  63. %find_lang %name
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %post
  67. /sbin/install-info %{_infodir}/gawk.info.gz %{_infodir}/dir
  68. %preun
  69. if [ $1 = 0 ]; then
  70. /sbin/install-info --delete %{_infodir}/gawk.info.gz %{_infodir}/dir
  71. fi
  72. %files -f %{name}.lang
  73. %defattr(-,root,root,-)
  74. %doc COPYING FUTURES INSTALL LIMITATIONS NEWS README
  75. %doc POSIX.STD README_d doc/gawk.ps doc/awkcard.ps
  76. /bin/*
  77. %{_bindir}/*
  78. %{_mandir}/man1/*
  79. %{_infodir}/gawk.info*
  80. %{_infodir}/gawkinet.info*
  81. %{_libexecdir}/awk
  82. %{_datadir}/awk
  83. %changelog
  84. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.1.3-1vl5
  85. - applied new versioning policy, spec in utf-8
  86. * Thu Mar 09 2006 Shu KONNO <owa@bg.wakwak.com> 3.1.3-0vl3
  87. - fixed missing list in %%doc
  88. - rebuilt for x86_64 architecture support
  89. * Tue May 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.3-0vl2
  90. - readd patch9 to disable warning
  91. * Wed May 5 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.3-0vl1
  92. - new upstream release
  93. - import patches from fedora package.
  94. - add patch10 to add ja in LINGUAS
  95. - add ja.po
  96. * Tue May 13 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.1.2-3vl1
  97. - synced with Rawhide 3.1.2-3
  98. * Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.6-2vl2
  99. - fixed typo
  100. * Thu May 31 2001 <sagami@vinelinux.org>
  101. - 3.0.6-2vl1: follow up with RH 3.0.6-2
  102. - gawk-3.0.6 + mb1.15
  103. * Mon Aug 7 2000 Jun Nishii <jun@vinelinux.org>
  104. - 3.0.4-2vl1
  105. - follow up with RHL62
  106. - use brp
  107. * Sun Jan 9 2000 Jun Nishii <jun@vinelinux.org>
  108. - 3.0.4-1vl1
  109. - change version-release for Vine Linux 2.0
  110. - bzip2 sources
  111. * Wed Sep 29 1999 Norihito Ohmori <nono@kondara.org>
  112. - add Multibyte Patch.
  113. * Wed Jun 30 1999 Jeff Johnson <jbj@redhat.com>
  114. - update to 3.0.4.
  115. * Tue Apr 06 1999 Preston Brown <pbrown@redhat.com>
  116. - make sure all binaries are stripped
  117. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  118. - auto rebuild in the new build environment (release 6)
  119. * Fri Feb 19 1999 Jeff Johnson <jbj@redhat.com>
  120. - Install info pages (#1242).
  121. * Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
  122. - build for glibc 2.1
  123. - don't package /usr/info/dir
  124. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  125. - translations modified for de, fr, tr
  126. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  127. - upgraded to 3.0.3
  128. - added documentation and buildroot
  129. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  130. - built against glibc