2007-04-23 13:04:48 +00:00
|
|
|
Summary: Displays where a particular program in your path is located
|
2004-09-09 14:19:12 +00:00
|
|
|
Name: which
|
2007-11-13 14:22:00 +00:00
|
|
|
Version: 2.18
|
2007-11-27 14:03:49 +00:00
|
|
|
Release: 4%{?dist}
|
2007-11-20 13:43:02 +00:00
|
|
|
License: GPLv2
|
2004-09-09 14:19:12 +00:00
|
|
|
Group: Applications/System
|
2004-09-09 14:21:22 +00:00
|
|
|
Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz
|
2004-09-09 14:19:12 +00:00
|
|
|
Source1: which-2.sh
|
2007-04-23 13:04:48 +00:00
|
|
|
Source2: which-2.csh
|
2004-09-09 14:21:22 +00:00
|
|
|
Url: http://www.xs4all.nl/~carlo17/which/
|
2004-09-09 14:19:12 +00:00
|
|
|
Patch: which-2.13-afs.patch
|
|
|
|
Patch1: which-2.14-broken.patch
|
2007-11-26 14:42:46 +00:00
|
|
|
Patch2: which-2.18-direntry.patch
|
2007-04-23 13:04:48 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
Requires(post): /sbin/install-info
|
2004-09-09 14:19:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The which command shows the full pathname of a specified program, if
|
|
|
|
the specified program is in your PATH.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-04-23 13:04:48 +00:00
|
|
|
|
2004-09-09 14:19:12 +00:00
|
|
|
%patch -p1 -b .afs
|
|
|
|
%patch1 -p1 -b .broken
|
2007-11-26 14:42:46 +00:00
|
|
|
%patch2 -p1 -b .direntry
|
2004-09-09 14:19:12 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2004-09-09 14:21:22 +00:00
|
|
|
|
2007-04-23 13:04:48 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-09-09 14:19:12 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-04-23 13:04:48 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2007-11-20 13:43:02 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
|
install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
2007-11-26 14:42:46 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
2004-09-09 14:19:12 +00:00
|
|
|
|
|
|
|
%post
|
2007-11-13 13:15:41 +00:00
|
|
|
/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz
|
2004-09-09 14:19:12 +00:00
|
|
|
|
2004-09-09 14:20:27 +00:00
|
|
|
%preun
|
2004-09-09 14:19:12 +00:00
|
|
|
if [ $1 = 0 ]; then
|
2007-11-13 13:15:41 +00:00
|
|
|
/sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz
|
2004-09-09 14:19:12 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-11-13 14:33:15 +00:00
|
|
|
%doc COPYING EXAMPLES README AUTHORS NEWS
|
2007-11-27 14:03:49 +00:00
|
|
|
%attr(0644,root,root) %{_sysconfdir}/profile.d/which-2.*
|
2007-04-23 13:04:48 +00:00
|
|
|
%{_bindir}/*
|
2004-09-09 14:19:12 +00:00
|
|
|
%{_infodir}/which.info.gz
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
%changelog
|
2007-11-27 14:03:49 +00:00
|
|
|
* Tue Nov 27 2007 Than Ngo <than@redhat.com> 2.18-4
|
|
|
|
- fix permission which-2 scripts
|
|
|
|
|
2007-11-26 14:42:46 +00:00
|
|
|
* Mon Nov 26 2007 Karsten Hopp <karsten@redhat.com> 2.18-3
|
|
|
|
- add dir entry for info page
|
|
|
|
|
2007-11-20 13:43:02 +00:00
|
|
|
* Tue Nov 20 2007 Than Ngo <than@redhat.com> 2.18-2
|
|
|
|
- cleanup specfile
|
|
|
|
|
2007-11-13 14:22:00 +00:00
|
|
|
* Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.18-1
|
|
|
|
- 2.18
|
|
|
|
|
2007-11-13 13:15:41 +00:00
|
|
|
* Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.16-10
|
|
|
|
- cleanup specfile
|
|
|
|
- get rid of dev dependency
|
|
|
|
|
|
|
|
* Mon Apr 23 2007 Than Ngo <than@redhat.com> - 2.16-9
|
2007-04-23 13:04:48 +00:00
|
|
|
- add missing which-2 script for csh
|
|
|
|
- cleanup specfile #226539
|
|
|
|
|
2007-01-22 10:45:31 +00:00
|
|
|
* Mon Jan 22 2007 Than Ngo <than@redhat.com> - 2.16-8
|
|
|
|
- install-info scriptlet failures
|
|
|
|
|
2006-07-15 02:57:22 +00:00
|
|
|
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 2.16-7
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-11 06:05:09 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.16-6.2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 14:14:46 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.16-6.2
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-09 22:43:50 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-03-07 17:33:55 +00:00
|
|
|
* Mon Mar 07 2005 Than Ngo <than@redhat.com> 2.16-6
|
|
|
|
- rebuilt
|
|
|
|
|
2005-02-09 13:23:50 +00:00
|
|
|
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 2.16-5
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 14:21:22 +00:00
|
|
|
* Sat Aug 07 2004 Than Ngo <than@redhat.com> 2.16-4
|
|
|
|
- add missing URL (thanks to Robert Scheck)
|
|
|
|
|
2004-09-09 14:21:07 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 14:21:05 +00:00
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 14:20:27 +00:00
|
|
|
* Wed Sep 24 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- update to 2.16
|
|
|
|
- fix %%preun
|
|
|
|
|
|
|
|
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 2.14-8
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 2.14-7
|
|
|
|
- added Prereq: dev (bug #99275)
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 14:19:12 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Dec 10 2002 Than Ngo <than@redhat.com> 2.14-4
|
|
|
|
- cleanup code (bug #78478)
|
|
|
|
|
|
|
|
* Thu Nov 14 2002 Tim Powers <timp@redhat.com> 2.14-3
|
|
|
|
- redirect info dir warnings to /dev/null
|
|
|
|
|
|
|
|
* Thu Nov 7 2002 Than Ngo <than@redhat.com> 2.14-1
|
|
|
|
- add missing info file
|
|
|
|
|
|
|
|
* Mon Jul 29 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- update to 2.14 wih better support for current bash
|
|
|
|
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Wed Feb 27 2002 Than Ngo <than@redhat.com> 2.13-3
|
|
|
|
- use access instead stat in AFS environment (bug #60353)
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Wed Dec 05 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- update to 2.13
|
|
|
|
|
|
|
|
* Sat Aug 4 2001 Than Ngo <than@redhat.com>
|
|
|
|
- fix bug 50844
|
|
|
|
|
|
|
|
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- Bump release + rebuild.
|
|
|
|
|
|
|
|
* Sun Sep 10 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- 2.12 (only man-page fix)
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
|
|
|
|
- FHS packaging.
|
|
|
|
|
|
|
|
* Sun May 21 2000 Ngo Than <than@redhat.de>
|
|
|
|
- put man pages in /usr/share/man/*
|
|
|
|
|
|
|
|
* Thu Apr 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- update to 2.11
|
|
|
|
- change from root:bin -> root:root
|
|
|
|
|
|
|
|
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
- rebuild to gzip man page
|
|
|
|
|
|
|
|
* Sun Jan 16 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
- newer stuff rom Carlo (2.10). Author's email: carlo@gnu.org
|
|
|
|
|
|
|
|
* Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
- adopted Carlo's specfile.
|
|
|
|
|
|
|
|
* Fri Sep 24 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- There should not be a reason anymore to include README.alias in the rpm docs.
|
|
|
|
- Don't install as root.root in RPM_BUILD_ROOT, in order to allow to build
|
|
|
|
rpm as non-root.
|
|
|
|
- Bug fix
|
|
|
|
- Added /etc/profile.d for automatic alias inclusion.
|
|
|
|
|
|
|
|
* Wed Aug 25 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Added README.alias.
|
|
|
|
|
|
|
|
* Wed Aug 11 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Typo in comment.
|
|
|
|
|
|
|
|
* Thu May 27 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Typo fix
|
|
|
|
- Moved maintainer targets from makefile to Makefile.am.
|
|
|
|
|
|
|
|
* Tue May 18 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Typo in appended changelog.
|
|
|
|
- Appended the old change log of `which-2.0.spec' to (this) changelog,
|
|
|
|
which is generated from the CVS log of `which-2.0.spec.in'.
|
|
|
|
- Generate which-2.spec from which-2.spec.in with automatic VERSION
|
|
|
|
and CHANGELOG substitution.
|
|
|
|
|
|
|
|
* Tue May 14 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Moved assignment of CFLAGS to the configure line, using RPM_OPT_FLAGS now.
|
|
|
|
- Corrected Source: line to point to ftp.gnu.org.
|
|
|
|
|
|
|
|
* Sat Apr 17 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Started to use automake and autoconf
|
|
|
|
|
|
|
|
* Fri Apr 09 1999 Carlo Wood <carlo@gnu.org>
|
|
|
|
- Renamed which-2.0.spec to which-2.spec
|
|
|
|
|