which-vl.spec 5.1 KB

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