summaryrefslogtreecommitdiff
path: root/packaging/make.spec
blob: 84a4fc329983f3d8a98da39f0db4e3e04ba17398 (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
36
37
38
39
40
41
42
43
44
45
46
47
Name:           make
Url:            http://www.gnu.org/software/make/make.html
Provides:       gmake
Version:        4.0
Release:        0
Summary:        GNU make
License:        GPL-2.0+
Group:          Platform Development/Build
Source:         make-%{version}.tar.bz2
Source1001:     make.manifest
BuildRequires:  makeinfo

%description
The GNU make command with extensive documentation.

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

%build
export AUTOPOINT=true
%reconfigure --disable-nls
%__make %{?_smp_mflags}

%check
%__make check

%install
%make_install
ln -sf make %{buildroot}%{_bindir}/gmake

%files 
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%{_bindir}/make
%{_bindir}/gmake
%{_includedir}/gnumake.h
%doc %{_infodir}/make.info-*.gz
%doc %{_infodir}/make.info.gz
%doc %{_mandir}/man1/make.1.gz

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz