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