which-vl.spec 4.9 KB

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