Blame SPECS/make.spec

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