From b5fc0eb6b1ab10d5564859347e64b84313cc57e0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 5 Aug 2022 15:04:50 +0200 Subject: [PATCH] disable which2 alias and function by default as it caused more problems than benefits --- which.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/which.spec b/which.spec index 99dda85..2eb0ebd 100644 --- a/which.spec +++ b/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 - 2.21-35 +- disable which2 alias and function by default as it caused more problems than benefits + * Sat Jul 23 2022 Fedora Release Engineering - 2.21-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild