which-vl.spec 4.5 KB

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