diff options
Diffstat (limited to 'packaging/make.spec')
-rw-r--r-- | packaging/make.spec | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/packaging/make.spec b/packaging/make.spec new file mode 100644 index 0000000..e6b858a --- /dev/null +++ b/packaging/make.spec @@ -0,0 +1,52 @@ +%define __spec_check_pre exit 0 + +Name: make +Url: http://www.gnu.org/software/make/make.html +Provides: gmake +Version: 4.4 +Release: 0 +Summary: GNU make +License: GPL-3.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 %{?asan:LIBS+=" -ldl "} +export CFLAGS+=" -fPIC " +export CXXFLAGS+=" -fPIC " +export LDFLAGS+=" -pie " +%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 |