summaryrefslogtreecommitdiff
path: root/packaging/which.spec
blob: 163813ac162f64c37b86d644a49242434658fdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Name:           which
Version:        2.17
Release:        0
License:        GPL-2.0
Summary:        Displays where a particular program in your path is located
Url:            http://savannah.gnu.org/projects/which
Group:          Applications/System
Source0:        http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
Source1001: 	which.manifest
BuildRequires:  readline-devel

%description
The which command shows the full pathname of a specified program, if
the specified program is in your PATH.

%prep
%setup -q
cp %{SOURCE1001} .

%build
export CFLAGS+=" -Wno-error=implicit-function-declaration "
%configure

make %{?_smp_mflags}

%install
%make_install

%docs_package

%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%{_bindir}/*