Name: which Version: 2.21 Release: 12 Summary: Show the full path of commands License: GPLv3 URL: https://savannah.gnu.org/projects/which/ Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh Source2: which2.csh Patch0: which-2.21-coverity-fixes.patch BuildRequires: gcc git %description Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. %package help Summary: Help files for which %description help Contains documents and manuals files for which %prep %autosetup -n %{name}-%{version} -p1 -S git %build %configure %make_build %install %make_install mkdir -p %{buildroot}/%{_sysconfdir}/profile.d install -p -m 0644 %{SOURCE1} %{SOURCE2} %{buildroot}/%{_sysconfdir}/profile.d rm -f %{buildroot}/%{_datadir}/info/dir %files %doc AUTHORS %license COPYING %{_sysconfdir}/profile.d/%{name}* %{_bindir}/%{name} %files help %doc EXAMPLES NEWS README %{_mandir}/man1/%{name}.1.gz %{_datadir}/info/%{name}.info.gz %changelog * Wed Aug 28 2019 luhuaxin - 2.21-12 - Package init