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