which-vl.spec 4.7 KB

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