Blame SPECS/make.spec

f55833
# -*- coding: utf-8 -*-
f55833
%global __python /usr/bin/python3
f55833
%{?scl:%{?scl_package:%scl_package ltrace}}
f55833
f55833
Summary: A GNU tool which simplifies the build process for users
f55833
Name: %{?scl_prefix}make
f55833
Epoch: 1
f55833
Version: 4.2.1
f55833
Release: 1%{?dist}
f55833
License: GPLv3+
f55833
URL: http://www.gnu.org/software/make/
f55833
Source: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.bz2
f55833
f55833
Patch0: make-4.2-getcwd.patch
f55833
Patch1: make-4.0-newlines.patch
f55833
f55833
# Assume we don't have clock_gettime in configure, so that
f55833
# make is not linked against -lpthread (and thus does not
f55833
# limit stack to 2MB).
f55833
Patch2: make-4.0-noclock_gettime.patch
f55833
f55833
# BZs #142691, #17374
f55833
Patch3: make-4.2-j8k.patch
f55833
f55833
# Upstream: https://savannah.gnu.org/bugs/?30748
f55833
# The default value of .SHELL_FLAGS is -c.
f55833
Patch4: make-4.0-weird-shell.patch
f55833
f55833
# Upstream patch: https://git.savannah.gnu.org/cgit/make.git/patch/?id=193f1e81edd6b1b56b0eb0ff8aa4b41c7b4257b4
f55833
# Fixes wrong assumptions of glibc's glob internals.
f55833
Patch5: make-4.2.1-glob-fix-2.patch
f55833
# Upstream patch: https://git.savannah.gnu.org/cgit/make.git/patch/?id=48c8a116a914a325a0497721f5d8b58d5bba34d4
f55833
# Fixes incorrect use of glibc 2.27 glob internals.
f55833
Patch6: make-4.2.1-glob-fix.patch
f55833
Patch7: make-4.2.1-glob-fix-3.patch
f55833
f55833
# Perl 5.26 removed the implicit CWD in @INC.
f55833
Patch8: make-4.2.1-test-driver.patch
f55833
f55833
# Upstream patch: https://git.savannah.gnu.org/cgit/make.git/commit/?id=fbf71ec25a5986d9003ac16ee9e23675feac9053
f55833
# Adds support of guile 2.2
f55833
Patch9: 0001-configure.ac-SV-50648-Detect-Guile-2.2-packages.patch
f55833
f55833
# Upstream patch: https://git.savannah.gnu.org/cgit/make.git/commit/?id=b552b05251980f693c729e251f93f5225b400714
f55833
# Avoids hangs in parallel builds
f55833
Patch10: make-4.2.1-nonblocking-reads.patch
f55833
f55833
Patch11: make-4.2.1-autoconf.patch
f55833
f55833
# autoreconf
f55833
# BuildRequires: autoconf, automake, gettext-devel
f55833
# BuildRequires: procps
f55833
# BuildRequires: perl-interpreter
f55833
BuildRequires: gcc
f55833
f55833
%description
f55833
A GNU tool for controlling the generation of executables and other
f55833
non-source files of a program from the program's source files. Make
f55833
allows users to build and install packages without any significant
f55833
knowledge about the details of the build process. The details about
f55833
how the program should be built are provided for make in the program's
f55833
makefile.
f55833
f55833
%package devel
f55833
Summary: Header file for externally visible definitions
f55833
f55833
%description devel
f55833
The make-devel package contains gnumake.h.
f55833
f55833
%prep
f55833
%autosetup -p1 -n make-%{version}
f55833
f55833
rm -f tests/scripts/features/parallelism.orig
f55833
f55833
%build
f55833
# autoreconf -vfi
f55833
f55833
%configure
f55833
touch config.h.in
f55833
make %{?_smp_mflags}
f55833
f55833
%install
f55833
%make_install
f55833
ln -sf make ${RPM_BUILD_ROOT}/%{_bindir}/gmake
f55833
ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1
f55833
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
f55833
f55833
%find_lang make
f55833
f55833
%check
f55833
echo ============TESTING===============
f55833
/usr/bin/env LANG=C make -k check && true
f55833
echo ============END TESTING===========
f55833
f55833
%files  -f make.lang
f55833
%doc NEWS README AUTHORS
f55833
%{_bindir}/*
f55833
%{_mandir}/man*/*
f55833
%{_infodir}/*.info*
f55833
%{_includedir}/gnumake.h
f55833
f55833
%files devel
f55833
%{_includedir}/gnumake.h
f55833
f55833
%changelog
f55833
* Tue Jul 28 2020 DJ Delorie <dj@redhat.com> - 1:4.2.1-1
f55833
- Initial sources (#1851545)
f55833