source: projects/specs/tags/6_0_REL/w/which/which-vl.spec @ 3070

Revision 3070, 4.6 KB checked in by inagaki, 13 years ago (diff)

update: which

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