which-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. Summary: Displays where a particular program in your path is located.
  2. Summary(ja): プログラムがパスのどこにあるかを表示する
  3. Name: which
  4. Version: 2.20
  5. Release: 2%{?_dist_release}
  6. License: GPLv3
  7. Group: Applications/System
  8. Source0: ftp://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
  9. Source1: which-2.sh
  10. Source2: which-2.csh
  11. Patch0: which-2.19-afs.patch
  12. Patch1: which-2.19-broken.patch
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. Requires(post): /sbin/install-info
  15. Requires(preun): /sbin/install-info
  16. Requires: dev
  17. %description
  18. The which command shows the full pathname of a specified program, if
  19. the specified program is in your PATH.
  20. %description -l ja
  21. which コマンドを使うと,プログラムのフルパスを表示出来ます
  22. (ただしプログラムが PATH に存在する場合).
  23. %prep
  24. %setup -q
  25. %patch0 -p1 -b .afs
  26. %patch1 -p1 -b .broken
  27. %build
  28. %configure
  29. make
  30. %install
  31. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  32. %makeinstall
  33. mkdir -p $RPM_BUILD_ROOT/etc/profile.d
  34. install -m 755 %{SOURCE1} %{SOURCE2} \
  35. $RPM_BUILD_ROOT/etc/profile.d
  36. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  37. %post
  38. /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz > /dev/null 2>&1
  39. %preun
  40. if [ $1 = 0 ]; then
  41. /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz > /dev/null 2>&1
  42. fi
  43. %clean
  44. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  45. %files
  46. %defattr(-,root,root)
  47. %doc COPYING EXAMPLES NEWS README README.alias
  48. %{_bindir}/*
  49. %config /etc/profile.d/which-2.*
  50. %{_infodir}/which.info.gz
  51. %{_mandir}/*/*
  52. %changelog
  53. * Tue Mar 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20-2
  54. - rebuilt with new toolchains
  55. * Sat Oct 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20-1
  56. - new upstream release
  57. - spec in UTF-8
  58. * Fri Mar 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.19-1vl5
  59. - new upstream release
  60. - updated Patch0 and 1
  61. * Tue Oct 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.17-0vl1
  62. - new upstream release
  63. * Mon Jul 10 2006 Shu KONNO <owa@bg.wakwak.com> 2.16-0vl5
  64. - rebuild
  65. * Tue Jun 22 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 2.16-0vl4
  66. - /etc/profile.d/which-2.sh: define "which" as function instead of alias
  67. * Thu Dec 25 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16-0vl3
  68. - rebuild with new toolchains
  69. * Sat Nov 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16-0vl2
  70. - added patches from Fedora
  71. * Mon Oct 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16-0vl1
  72. - updated to 2.16
  73. * Sun Dec 1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14-0vl2
  74. - source updated to 2.14
  75. - rebuild with newer toolchains
  76. * Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  77. - 2.12-1vl1
  78. - based on 2.12-1 from Rawhide
  79. - added Japanese summary and description
  80. * Sun Sep 10 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  81. - 2.12 (only man-page fix)
  82. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  83. - automatic rebuild
  84. * Sun Jun 18 2000 Than Ngo <than@redhat.de>
  85. - FHS packaging.
  86. * Sun May 21 2000 Ngo Than <than@redhat.de>
  87. - put man pages in /usr/share/man/*
  88. * Thu Apr 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  89. - update to 2.11
  90. - change from root:bin -> root:root
  91. * Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
  92. - rebuild to gzip man page
  93. * Sun Jan 16 2000 Preston Brown <pbrown@redhat.com>
  94. - newer stuff rom Carlo (2.10). Author's email: carlo@gnu.org
  95. * Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
  96. - adopted Carlo's specfile.
  97. * Fri Sep 24 1999 Carlo Wood <carlo@gnu.org>
  98. - There should not be a reason anymore to include README.alias in the rpm docs.
  99. - Don't install as root.root in RPM_BUILD_ROOT, in order to allow to build
  100. rpm as non-root.
  101. - Bug fix
  102. - Added /etc/profile.d for automatic alias inclusion.
  103. * Wed Aug 25 1999 Carlo Wood <carlo@gnu.org>
  104. - Added README.alias.
  105. * Wed Aug 11 1999 Carlo Wood <carlo@gnu.org>
  106. - Typo in comment.
  107. * Thu May 27 1999 Carlo Wood <carlo@gnu.org>
  108. - Typo fix
  109. - Moved maintainer targets from makefile to Makefile.am.
  110. * Tue May 18 1999 Carlo Wood <carlo@gnu.org>
  111. - Typo in appended changelog.
  112. - Appended the old change log of `which-2.0.spec' to (this) %changelog,
  113. which is generated from the CVS log of `which-2.0.spec.in'.
  114. - Generate which-2.spec from which-2.spec.in with automatic VERSION
  115. and CHANGELOG substitution.
  116. * Tue May 14 1999 Carlo Wood <carlo@gnu.org>
  117. - Moved assignment of CFLAGS to the configure line, using RPM_OPT_FLAGS now.
  118. - Corrected Source: line to point to ftp.gnu.org.
  119. * Sat Apr 17 1999 Carlo Wood <carlo@gnu.org>
  120. - Started to use automake and autoconf
  121. * Fri Apr 09 1999 Carlo Wood <carlo@gnu.org>
  122. - Renamed which-2.0.spec to which-2.spec