7948d3a
Summary: Displays where a particular program in your path is located
cvsdist 6b63f8b
Name: which
5c082f8
Version: 2.21
996c9e5
Release: 27%{?dist}
edbfee2
License: GPLv3
Scott Shambarger 037d453
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
b24b69c
Source1: which2.sh
b24b69c
Source2: which2.csh
d60c7c5
Patch0: which-2.21-coverity-fixes.patch
ec7e696
Url: https://savannah.gnu.org/projects/which/
98662a9
Requires: coreutils
8f25db9
BuildRequires: make
Igor Gnatenko a723e62
BuildRequires:  gcc
6d88f2f
BuildRequires: readline-devel
cvsdist 6b63f8b
cvsdist 6b63f8b
%description
cvsdist 6b63f8b
The which command shows the full pathname of a specified program, if
cvsdist 6b63f8b
the specified program is in your PATH.
cvsdist 6b63f8b
cvsdist 6b63f8b
%prep
cvsdist 6b63f8b
%setup -q
d60c7c5
%patch0 -p1 -b .coverity
7948d3a
cvsdist 6b63f8b
%build
cvsdist 6b63f8b
%configure
2098279
%make_build
cvsdist 6b63f8b
cvsdist 6b63f8b
%install
2098279
%make_install
7948d3a
b49882f
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
b49882f
install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
3b6607d
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
cvsdist 6b63f8b
cvsdist 6b63f8b
%files
3aa802c
%license COPYING
3aa802c
%doc EXAMPLES README AUTHORS NEWS
b24b69c
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
2098279
%{_bindir}/which
2098279
%{_infodir}/which.info*
2098279
%{_mandir}/man1/which.1*
cvsdist 6b63f8b
cvsdist 6b63f8b
%changelog
996c9e5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-27
996c9e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
996c9e5
8fcb51a
* Tue May 04 2021 Than Ngo <than@redhat.com> - 2.21-26
8fcb51a
- Resolves: #1942153, fixed unbound variable
8fcb51a
98662a9
* Mon Apr 26 2021 Than Ngo <than@redhat.com> - 2.21-25
98662a9
- improved which2.sh
98662a9
9542d05
* Tue Mar 23 2021 Than Ngo <than@redhat.com> - 2.21-24
9542d05
- fixed regression if SHELL=zsh
9542d05
88199b8
* Sun Mar 21 2021 Than Ngo <than@redhat.com> - 2.21-23
88199b8
- fixed coverity issues
88199b8
- improved which2.sh
88199b8
e3c52e8
* Thu Mar 18 2021 Than Ngo <than@redhat.com> - 2.21-22
e3c52e8
- fixed syntax error testcase: a=b which ls
e3c52e8
7590945
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-21
7590945
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7590945
bec7808
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-20
bec7808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bec7808
f988253
* Wed Mar 25 2020 Than Ngo <than@redhat.com> - 2.21-19
f988253
- fixed #1817138 - Invalid syntax in /etc/profile.d/which2
f988253
d07598b
* Tue Mar 24 2020 Than Ngo <than@redhat.com> - 2.21-18
d07598b
- set correct alias for mksh
d07598b
608ab1c
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-17
608ab1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
608ab1c
82a0a59
* Tue Nov 05 2019 Than Ngo <than@redhat.com> - 2.21-16
82a0a59
- set correct alias for ksh
82a0a59
6a8b4dd
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-15
6a8b4dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6a8b4dd
fecec0b
* Mon Feb 04 2019 Than Ngo <than@redhat.com> - 2.21-14
fecec0b
- bump release 
fecec0b
bf88776
* Mon Feb 04 2019 Than Ngo <than@redhat.com> - 2.21-13
bf88776
- bump release
bf88776
3993713
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-12
3993713
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3993713
3413261
* Thu Jul 26 2018 Than Ngo <than@redhat.com> - 2.21-11
3413261
- fixed more coverity issue
3413261
d60c7c5
* Mon Jul 23 2018 Than Ngo <than@redhat.com> - 2.21-10
d60c7c5
- Fix coverity issues
d60c7c5
ec53838
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-9
ec53838
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ec53838
5f17e95
* Fri Feb 16 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.21-8
5f17e95
- Fix invalid [ ... ] syntax which results in complaints by zsh.
5f17e95
  https://bugzilla.redhat.com/show_bug.cgi?id=1546221
5f17e95
- Remove pointless Group tag, buildroot cleaning and %%defattr.
5f17e95
62b6be0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-7
62b6be0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
62b6be0
28b3e4f
* Mon Feb 05 2018 Than Ngo <than@redhat.com> - 2.21-6
28b3e4f
- added CI tests using the standard test interface
28b3e4f
7128ddb
* Wed Jan 31 2018 Than Ngo <than@redhat.com> - 2.21-5
7128ddb
- fixed bz#1526500 - 'declare' not found under ksh
7128ddb
f06f790
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-4
f06f790
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f06f790
a689e94
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-3
a689e94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a689e94
dc514d1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-2
dc514d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dc514d1
5c082f8
* Mon Jun 27 2016 Than Ngo <than@redhat.com> - 2.21-1
5c082f8
- update to 2.21
5c082f8
9764fde
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.20-13
9764fde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9764fde
843aa2f
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-12
843aa2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
843aa2f
2393219
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.20-11
2393219
- Rebuilt for Fedora 23 Change
2393219
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
2393219
0b0356f
* Thu Feb 19 2015 Till Maas <opensource@till.name> - 2.20-10
0b0356f
- Use alias instead of exported function for which to avoid bashism,
0b0356f
http://unix.stackexchange.com/questions/59360/#59431
0b0356f
3aa802c
* Wed Feb 18 2015 Till Maas <opensource@till.name> - 2.20-9
3aa802c
- Check functions (#1194044)
3aa802c
- Use %%license
3aa802c
7debb1f
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-8
7debb1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7debb1f
0acafb8
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-7
0acafb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0acafb8
506f653
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-6
506f653
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
506f653
0683921
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-5
0683921
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0683921
5c40a50
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-4
5c40a50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5c40a50
1979c07
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-3
1979c07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1979c07
e73c518
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-2
e73c518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e73c518
19081d7
* Wed Jan 19 2011 Than Ngo <than@redhat.com> - 2.20-1
19081d7
- 2.2.0
19081d7
- disable alias which for cshell
19081d7
bb3fb62
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19-5
bb3fb62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bb3fb62
e0b1770
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19-4
e0b1770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e0b1770
4308229
* Thu Mar 06 2008 Warren Togami <wtogami@redhat.com> 2.19-3
4308229
- install-info should exit gracefully when --nodocs
4308229
92062b0
* Fri Feb 15 2008 Than Ngo <than@redhat.com> 2.19-2
92062b0
- rebuilt
92062b0
edbfee2
* Fri Jan 25 2008 Than Ngo <than@redhat.com> 2.19-1
edbfee2
- 2.19, fix #399551, #430159
edbfee2
874e6c0
* Tue Nov 27 2007 Than Ngo <than@redhat.com> - 2.18-5
874e6c0
- fix permission which-2 scripts
874e6c0
ad7c0a5
* Tue Nov 27 2007 Than Ngo <than@redhat.com> 2.18-4
ad7c0a5
- fix permission which-2 scripts
ad7c0a5
3b6607d
* Mon Nov 26 2007 Karsten Hopp <karsten@redhat.com> 2.18-3
3b6607d
- add dir entry for info page
3b6607d
b49882f
* Tue Nov 20 2007 Than Ngo <than@redhat.com> 2.18-2
b49882f
- cleanup specfile
b49882f
2d6bf71
* Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.18-1
2d6bf71
- 2.18
2d6bf71
95a5422
* Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.16-10
95a5422
- cleanup specfile
95a5422
- get rid of dev dependency
95a5422
95a5422
* Mon Apr 23 2007 Than Ngo <than@redhat.com> - 2.16-9
7948d3a
- add missing which-2 script for csh
7948d3a
- cleanup specfile #226539
7948d3a
5fcb03b
* Mon Jan 22 2007 Than Ngo <than@redhat.com> - 2.16-8
5fcb03b
- install-info scriptlet failures
5fcb03b
7ad5fc7
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 2.16-7
7ad5fc7
- rebuild
7ad5fc7
d47ce30
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.16-6.2.1
d47ce30
- bump again for double-long bug on ppc(64)
d47ce30
c9f0854
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.16-6.2
c9f0854
- rebuilt for new gcc4.1 snapshot and glibc changes
c9f0854
13dd04f
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
13dd04f
- rebuilt
13dd04f
ec8fe1e
* Mon Mar 07 2005 Than Ngo <than@redhat.com> 2.16-6
ec8fe1e
- rebuilt
ec8fe1e
59107cd
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 2.16-5
59107cd
- rebuilt
59107cd
cvsdist 4217f20
* Sat Aug 07 2004 Than Ngo <than@redhat.com> 2.16-4
cvsdist 4217f20
- add missing URL (thanks to  Robert Scheck)
cvsdist 4217f20
cvsdist 6b57351
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6b57351
- rebuilt
cvsdist 6b57351
cvsdist c82bec7
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist c82bec7
- rebuilt
cvsdist c82bec7
cvsdist d943064
* Wed Sep 24 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist d943064
- update to 2.16
cvsdist d943064
- fix %%preun
cvsdist d943064
cvsdist d943064
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 2.14-8
cvsdist d943064
- rebuild
cvsdist d943064
cvsdist d943064
* Thu Jul 17 2003 Than Ngo <than@redhat.com> 2.14-7
cvsdist d943064
- added Prereq: dev (bug #99275)
cvsdist d943064
cvsdist d943064
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist d943064
- rebuilt
cvsdist d943064
cvsdist 6b63f8b
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 6b63f8b
- rebuilt
cvsdist 6b63f8b
cvsdist 6b63f8b
* Tue Dec 10 2002 Than Ngo <than@redhat.com> 2.14-4
cvsdist 6b63f8b
- cleanup code (bug #78478)
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu Nov 14 2002 Tim Powers <timp@redhat.com> 2.14-3
cvsdist 6b63f8b
- redirect info dir warnings to /dev/null
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu Nov  7 2002 Than Ngo <than@redhat.com> 2.14-1
cvsdist 6b63f8b
- add missing info file
cvsdist 6b63f8b
cvsdist 6b63f8b
* Mon Jul 29 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 6b63f8b
- update to 2.14 wih better support for current bash
cvsdist 6b63f8b
cvsdist 6b63f8b
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 6b63f8b
- automated rebuild
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 6b63f8b
- automated rebuild
cvsdist 6b63f8b
cvsdist 6b63f8b
* Wed Feb 27 2002 Than Ngo <than@redhat.com> 2.13-3
cvsdist 6b63f8b
- use access instead stat in AFS environment (bug #60353)
cvsdist 6b63f8b
cvsdist 6b63f8b
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 6b63f8b
- automated rebuild
cvsdist 6b63f8b
cvsdist 6b63f8b
* Wed Dec 05 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 6b63f8b
- update to 2.13
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sat Aug  4 2001 Than Ngo <than@redhat.com>
cvsdist 6b63f8b
- fix bug 50844
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist 6b63f8b
- Bump release + rebuild.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sun Sep 10 2000 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 6b63f8b
- 2.12 (only man-page fix)
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
cvsdist 6b63f8b
- automatic rebuild
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
cvsdist 6b63f8b
- FHS packaging.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sun May 21 2000 Ngo Than <than@redhat.de>
cvsdist 6b63f8b
- put man pages in /usr/share/man/*
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu Apr 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 6b63f8b
- update to 2.11
cvsdist 6b63f8b
- change from root:bin -> root:root
cvsdist 6b63f8b
cvsdist 6b63f8b
* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
cvsdist 6b63f8b
- rebuild to gzip man page
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sun Jan 16 2000 Preston Brown <pbrown@redhat.com>
cvsdist 6b63f8b
- newer stuff rom Carlo (2.10).  Author's email: carlo@gnu.org
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
cvsdist 6b63f8b
- adopted Carlo's specfile.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Fri Sep 24 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- There should not be a reason anymore to include README.alias in the rpm docs.
cvsdist 6b63f8b
- Don't install as root.root in RPM_BUILD_ROOT, in order to allow to build
cvsdist 6b63f8b
  rpm as non-root.
cvsdist 6b63f8b
- Bug fix
cvsdist 6b63f8b
- Added /etc/profile.d for automatic alias inclusion.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Wed Aug 25 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Added README.alias.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Wed Aug 11 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Typo in comment.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Thu May 27 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Typo fix
cvsdist 6b63f8b
- Moved maintainer targets from makefile to Makefile.am.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Tue May 18 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Typo in appended changelog.
cvsdist 6b63f8b
- Appended the old change log of `which-2.0.spec' to (this) changelog,
cvsdist 6b63f8b
  which is generated from the CVS log of `which-2.0.spec.in'.
cvsdist 6b63f8b
- Generate which-2.spec from which-2.spec.in with automatic VERSION
cvsdist 6b63f8b
  and CHANGELOG substitution.
cvsdist 6b63f8b
aa89ac8
* Fri May 14 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Moved assignment of CFLAGS to the configure line, using RPM_OPT_FLAGS now.
cvsdist 6b63f8b
- Corrected Source: line to point to ftp.gnu.org.
cvsdist 6b63f8b
cvsdist 6b63f8b
* Sat Apr 17 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Started to use automake and autoconf
cvsdist 6b63f8b
cvsdist 6b63f8b
* Fri Apr 09 1999 Carlo Wood <carlo@gnu.org>
cvsdist 6b63f8b
- Renamed which-2.0.spec to which-2.spec
cvsdist 6b63f8b