disable which2 alias and function by default as it caused more problems than benefits
This commit is contained in:
parent
c109904502
commit
b5fc0eb6b1
15
which.spec
15
which.spec
@ -1,7 +1,9 @@
|
||||
%globale has_which2_alias 0
|
||||
|
||||
Summary: Displays where a particular program in your path is located
|
||||
Name: which
|
||||
Version: 2.21
|
||||
Release: 34%{?dist}
|
||||
Release: 35%{?dist}
|
||||
License: GPLv3
|
||||
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
|
||||
Source1: which2.sh
|
||||
@ -29,18 +31,25 @@ the specified program is in your PATH.
|
||||
%make_install
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||
install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%if %{has_which2_alias}
|
||||
install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc EXAMPLES README AUTHORS NEWS
|
||||
%if %{has_which2_alias}
|
||||
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
|
||||
%endif
|
||||
%{_bindir}/which
|
||||
%{_infodir}/which.info*
|
||||
%{_mandir}/man1/which.1*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 05 2022 Than Ngo <than@redhat.com> - 2.21-35
|
||||
- disable which2 alias and function by default as it caused more problems than benefits
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-34
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user