|
|
f96898 |
Summary: Displays where a particular program in your path is located
|
|
|
f96898 |
Name: which
|
|
|
f96898 |
Version: 2.21
|
|
|
18d3a4 |
Release: 18%{?dist}
|
|
|
f96898 |
License: GPLv3
|
|
|
f96898 |
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
|
|
|
f96898 |
Source1: which2.sh
|
|
|
f96898 |
Source2: which2.csh
|
|
|
f96898 |
Patch0: which-2.21-coverity-fixes.patch
|
|
|
974b11 |
Patch1: which-2.21-coverity.patch
|
|
|
f96898 |
Url: https://savannah.gnu.org/projects/which/
|
|
|
c8d03b |
Requires: coreutils
|
|
|
c8d03b |
BuildRequires: gcc
|
|
|
f96898 |
BuildRequires: readline-devel
|
|
|
f96898 |
|
|
|
f96898 |
%description
|
|
|
f96898 |
The which command shows the full pathname of a specified program, if
|
|
|
f96898 |
the specified program is in your PATH.
|
|
|
f96898 |
|
|
|
f96898 |
%prep
|
|
|
f96898 |
%setup -q
|
|
|
f96898 |
%patch0 -p1 -b .coverity
|
|
|
974b11 |
%patch1 -p1 -b .coverity2
|
|
|
f96898 |
|
|
|
f96898 |
%build
|
|
|
f96898 |
%configure
|
|
|
f96898 |
%make_build
|
|
|
f96898 |
|
|
|
f96898 |
%install
|
|
|
f96898 |
%make_install
|
|
|
f96898 |
|
|
|
f96898 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
f96898 |
install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
|
|
f96898 |
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
f96898 |
|
|
|
f96898 |
%files
|
|
|
f96898 |
%license COPYING
|
|
|
f96898 |
%doc EXAMPLES README AUTHORS NEWS
|
|
|
f96898 |
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
|
|
|
f96898 |
%{_bindir}/which
|
|
|
f96898 |
%{_infodir}/which.info*
|
|
|
f96898 |
%{_mandir}/man1/which.1*
|
|
|
f96898 |
|
|
|
f96898 |
%changelog
|
|
|
18d3a4 |
* Mon Apr 11 2022 Than Ngo <than@redhat.com> - 2.21-18
|
|
|
18d3a4 |
- Resolves: #2044450 - custom profile generates shell error
|
|
|
18d3a4 |
|
|
|
c8d03b |
* Thu Nov 25 2021 Than Ngo <than@redhat.com> - 2.21-17
|
|
|
c8d03b |
- Resolves: #2025709, check shell correctly
|
|
|
c8d03b |
- Resolves: #2009547, which treats function contents as aliases when parsing ksh
|
|
|
c8d03b |
|
|
|
974b11 |
* Wed May 05 2021 Than Ngo <than@redhat.com> - 2.21-16
|
|
|
974b11 |
- Related: #1940468, fixed unbound variable
|
|
|
974b11 |
|
|
|
974b11 |
|
|
|
974b11 |
* Fri Apr 30 2021 Than Ngo <than@redhat.com> - 2.21-15
|
|
|
974b11 |
- Related: #1940468, fix error when the user runs which in bash with strict bash environment
|
|
|
974b11 |
|
|
|
974b11 |
* Tue Mar 23 2021 Than Ngo <than@redhat.com> - 2.21-14
|
|
|
974b11 |
- Related: #1940468, fix regression if SHELL=zsh
|
|
|
974b11 |
|
|
|
974b11 |
* Fri Mar 19 2021 Than Ngo <than@redhat.com> - 2.21-13
|
|
|
974b11 |
- Resolves: #1940468, fixed syntax error caused by testcase: a=b which ls
|
|
|
974b11 |
Coverity issue
|
|
|
974b11 |
|
|
|
4350a3 |
* Tue Nov 19 2019 Than Ngo <than@redhat.com> - 2.21-12
|
|
|
4350a3 |
- Fixed coverity issue
|
|
|
4350a3 |
|
|
|
4350a3 |
* Tue Nov 19 2019 Than Ngo <than@redhat.com> - 2.21-11
|
|
|
4350a3 |
- Resolves: #1768506, fix wrong alias
|
|
|
4350a3 |
|
|
|
f96898 |
* Mon Jul 23 2018 Than Ngo <than@redhat.com> - 2.21-10
|
|
|
f96898 |
- Fix coverity issues
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-9
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 16 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.21-8
|
|
|
f96898 |
- Fix invalid [ ... ] syntax which results in complaints by zsh.
|
|
|
f96898 |
https://bugzilla.redhat.com/show_bug.cgi?id=1546221
|
|
|
f96898 |
- Remove pointless Group tag, buildroot cleaning and %%defattr.
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-7
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Feb 05 2018 Than Ngo <than@redhat.com> - 2.21-6
|
|
|
f96898 |
- added CI tests using the standard test interface
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Jan 31 2018 Than Ngo <than@redhat.com> - 2.21-5
|
|
|
f96898 |
- fixed bz#1526500 - 'declare' not found under ksh
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-4
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-3
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-2
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Jun 27 2016 Than Ngo <than@redhat.com> - 2.21-1
|
|
|
f96898 |
- update to 2.21
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-13
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-12
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.20-11
|
|
|
f96898 |
- Rebuilt for Fedora 23 Change
|
|
|
f96898 |
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Feb 19 2015 Till Maas <opensource@till.name> - 2.20-10
|
|
|
f96898 |
- Use alias instead of exported function for which to avoid bashism,
|
|
|
f96898 |
http://unix.stackexchange.com/questions/59360/#59431
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Feb 18 2015 Till Maas <opensource@till.name> - 2.20-9
|
|
|
f96898 |
- Check functions (#1194044)
|
|
|
f96898 |
- Use %%license
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-8
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-7
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-6
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-5
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-4
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-3
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-2
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Jan 19 2011 Than Ngo <than@redhat.com> - 2.20-1
|
|
|
f96898 |
- 2.2.0
|
|
|
f96898 |
- disable alias which for cshell
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19-5
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19-4
|
|
|
f96898 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Mar 06 2008 Warren Togami <wtogami@redhat.com> 2.19-3
|
|
|
f96898 |
- install-info should exit gracefully when --nodocs
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 15 2008 Than Ngo <than@redhat.com> 2.19-2
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Jan 25 2008 Than Ngo <than@redhat.com> 2.19-1
|
|
|
f96898 |
- 2.19, fix #399551, #430159
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Nov 27 2007 Than Ngo <than@redhat.com> - 2.18-5
|
|
|
f96898 |
- fix permission which-2 scripts
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Nov 27 2007 Than Ngo <than@redhat.com> 2.18-4
|
|
|
f96898 |
- fix permission which-2 scripts
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Nov 26 2007 Karsten Hopp <karsten@redhat.com> 2.18-3
|
|
|
f96898 |
- add dir entry for info page
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Nov 20 2007 Than Ngo <than@redhat.com> 2.18-2
|
|
|
f96898 |
- cleanup specfile
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.18-1
|
|
|
f96898 |
- 2.18
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.16-10
|
|
|
f96898 |
- cleanup specfile
|
|
|
f96898 |
- get rid of dev dependency
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Apr 23 2007 Than Ngo <than@redhat.com> - 2.16-9
|
|
|
f96898 |
- add missing which-2 script for csh
|
|
|
f96898 |
- cleanup specfile #226539
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Jan 22 2007 Than Ngo <than@redhat.com> - 2.16-8
|
|
|
f96898 |
- install-info scriptlet failures
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 2.16-7
|
|
|
f96898 |
- rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.16-6.2.1
|
|
|
f96898 |
- bump again for double-long bug on ppc(64)
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.16-6.2
|
|
|
f96898 |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Mar 07 2005 Than Ngo <than@redhat.com> 2.16-6
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 2.16-5
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Aug 07 2004 Than Ngo <than@redhat.com> 2.16-4
|
|
|
f96898 |
- add missing URL (thanks to Robert Scheck)
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Sep 24 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
f96898 |
- update to 2.16
|
|
|
f96898 |
- fix %%preun
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 2.14-8
|
|
|
f96898 |
- rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 2.14-7
|
|
|
f96898 |
- added Prereq: dev (bug #99275)
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
f96898 |
- rebuilt
|
|
|
f96898 |
|
|
|
f96898 |
* Tue Dec 10 2002 Than Ngo <than@redhat.com> 2.14-4
|
|
|
f96898 |
- cleanup code (bug #78478)
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Nov 14 2002 Tim Powers <timp@redhat.com> 2.14-3
|
|
|
f96898 |
- redirect info dir warnings to /dev/null
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Nov 7 2002 Than Ngo <than@redhat.com> 2.14-1
|
|
|
f96898 |
- add missing info file
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Jul 29 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
f96898 |
- update to 2.14 wih better support for current bash
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
f96898 |
- automated rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
f96898 |
- automated rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Feb 27 2002 Than Ngo <than@redhat.com> 2.13-3
|
|
|
f96898 |
- use access instead stat in AFS environment (bug #60353)
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
f96898 |
- automated rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Dec 05 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
f96898 |
- update to 2.13
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Aug 4 2001 Than Ngo <than@redhat.com>
|
|
|
f96898 |
- fix bug 50844
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
|
|
f96898 |
- Bump release + rebuild.
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Sep 10 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
f96898 |
- 2.12 (only man-page fix)
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
f96898 |
- automatic rebuild
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
|
|
|
f96898 |
- FHS packaging.
|
|
|
f96898 |
|
|
|
f96898 |
* Sun May 21 2000 Ngo Than <than@redhat.de>
|
|
|
f96898 |
- put man pages in /usr/share/man/*
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Apr 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
f96898 |
- update to 2.11
|
|
|
f96898 |
- change from root:bin -> root:root
|
|
|
f96898 |
|
|
|
f96898 |
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
|
|
|
f96898 |
- rebuild to gzip man page
|
|
|
f96898 |
|
|
|
f96898 |
* Sun Jan 16 2000 Preston Brown <pbrown@redhat.com>
|
|
|
f96898 |
- newer stuff rom Carlo (2.10). Author's email: carlo@gnu.org
|
|
|
f96898 |
|
|
|
f96898 |
* Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
|
|
|
f96898 |
- adopted Carlo's specfile.
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Sep 24 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- There should not be a reason anymore to include README.alias in the rpm docs.
|
|
|
f96898 |
- Don't install as root.root in RPM_BUILD_ROOT, in order to allow to build
|
|
|
f96898 |
rpm as non-root.
|
|
|
f96898 |
- Bug fix
|
|
|
f96898 |
- Added /etc/profile.d for automatic alias inclusion.
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Aug 25 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Added README.alias.
|
|
|
f96898 |
|
|
|
f96898 |
* Wed Aug 11 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Typo in comment.
|
|
|
f96898 |
|
|
|
f96898 |
* Thu May 27 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Typo fix
|
|
|
f96898 |
- Moved maintainer targets from makefile to Makefile.am.
|
|
|
f96898 |
|
|
|
f96898 |
* Tue May 18 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Typo in appended changelog.
|
|
|
f96898 |
- Appended the old change log of `which-2.0.spec' to (this) changelog,
|
|
|
f96898 |
which is generated from the CVS log of `which-2.0.spec.in'.
|
|
|
f96898 |
- Generate which-2.spec from which-2.spec.in with automatic VERSION
|
|
|
f96898 |
and CHANGELOG substitution.
|
|
|
f96898 |
|
|
|
f96898 |
* Fri May 14 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Moved assignment of CFLAGS to the configure line, using RPM_OPT_FLAGS now.
|
|
|
f96898 |
- Corrected Source: line to point to ftp.gnu.org.
|
|
|
f96898 |
|
|
|
f96898 |
* Sat Apr 17 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Started to use automake and autoconf
|
|
|
f96898 |
|
|
|
f96898 |
* Fri Apr 09 1999 Carlo Wood <carlo@gnu.org>
|
|
|
f96898 |
- Renamed which-2.0.spec to which-2.spec
|
|
|
f96898 |
|