Check functions (#1194044)

- Use %license
This commit is contained in:
Till Maas 2015-02-18 21:46:20 +01:00
parent 7debb1f1bc
commit 3aa802cfd1
2 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
Summary: Displays where a particular program in your path is located Summary: Displays where a particular program in your path is located
Name: which Name: which
Version: 2.20 Version: 2.20
Release: 8%{?dist} Release: 9%{?dist}
License: GPLv3 License: GPLv3
Group: Applications/System Group: Applications/System
Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz
@ -52,13 +52,18 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING EXAMPLES README AUTHORS NEWS %license COPYING
%doc EXAMPLES README AUTHORS NEWS
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.* %attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
%{_bindir}/* %{_bindir}/*
%{_infodir}/which.info.gz %{_infodir}/which.info.gz
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Wed Feb 18 2015 Till Maas <opensource@till.name> - 2.20-9
- Check functions (#1194044)
- Use %%license
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-8 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View File

@ -1,4 +1,8 @@
# Initialization script for bash and sh # Initialization script for bash and sh
# export AFS if you are in AFS environment # export AFS if you are in AFS environment
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' which ()
{
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}
export -f which