forked from pool/which
Marcus Meissner
c27ab4eba6
GNU which 2.21 OBS-URL: https://build.opensuse.org/request/show/292342 OBS-URL: https://build.opensuse.org/package/show/Base:System/which?expand=0&rev=3
60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package which
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: which
|
|
Version: 2.21
|
|
Release: 0
|
|
Summary: Displays where a particular program in your path is located
|
|
License: GPL-3.0+
|
|
Group: System/Base
|
|
Url: https://savannah.gnu.org/projects/which/
|
|
Source: http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
|
PreReq: %{install_info_prereq}
|
|
Provides: util-linux:%{_bindir}/which
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The which command shows the full pathname of a specified program, if
|
|
the specified program is in your PATH.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%post
|
|
%install_info --info-dir="%{_infodir}" "%{_infodir}/which.info.gz"
|
|
|
|
%postun
|
|
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/which.info.gz"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/which
|
|
%doc EXAMPLES COPYING README README.alias AUTHORS NEWS
|
|
%{_infodir}/which.info*
|
|
%{_mandir}/man1/which.1*
|
|
|
|
%changelog
|