Blame SPECS/make.spec

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