Blame SPECS/make.spec

a2bd06
# -*- coding: utf-8 -*-
a2bd06
%global __python /usr/bin/python3
a2bd06
%{?scl:%{?scl_package:%scl_package make}}
a2bd06
Summary: A GNU tool which simplifies the build process for users
a2bd06
Name: %{?scl_prefix}make
a2bd06
Epoch: 1
a2bd06
Version: 4.3
a2bd06
Release: 1%{?dist}
a2bd06
License: GPLv3+
a2bd06
URL: http://www.gnu.org/software/make/
a2bd06
Source: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.gz
a2bd06
a2bd06
%if 0%{?rhel} > 0
a2bd06
# This gives the user the option of saying --with guile, but defaults to WITHOUT
a2bd06
%bcond_with guile
a2bd06
%else
a2bd06
# This gives the user the option of saying --without guile, but defaults to WITH
a2bd06
%bcond_without guile
a2bd06
%endif
a2bd06
a2bd06
Patch0: make-4.3-getcwd.patch
a2bd06
a2bd06
# Assume we don't have clock_gettime in configure, so that
a2bd06
# make is not linked against -lpthread (and thus does not
a2bd06
# limit stack to 2MB).
a2bd06
Patch1: make-4.0-noclock_gettime.patch
a2bd06
a2bd06
# BZs #142691, #17374
a2bd06
Patch2: make-4.3-j8k.patch
a2bd06
a2bd06
# https://bugzilla.redhat.com/show_bug.cgi?id=1827850
a2bd06
# https://savannah.gnu.org/bugs/?58232
a2bd06
# Remove on next make rebase
a2bd06
Patch3: make-4.3-cloexec.patch
a2bd06
a2bd06
# autoreconf
a2bd06
BuildRequires: make
a2bd06
BuildRequires: autoconf, automake, gettext-devel
a2bd06
BuildRequires: procps
a2bd06
BuildRequires: perl-interpreter
a2bd06
%if %{with guile}
a2bd06
BuildRequires: pkgconfig(guile-2.2)
a2bd06
%endif
a2bd06
BuildRequires: gcc
a2bd06
a2bd06
%description
a2bd06
A GNU tool for controlling the generation of executables and other
a2bd06
non-source files of a program from the program's source files. Make
a2bd06
allows users to build and install packages without any significant
a2bd06
knowledge about the details of the build process. The details about
a2bd06
how the program should be built are provided for make in the program's
a2bd06
makefile.
a2bd06
a2bd06
%package devel
a2bd06
Summary: Header file for externally visible definitions
a2bd06
a2bd06
%description devel
a2bd06
The make-devel package contains gnumake.h.
a2bd06
a2bd06
%prep
a2bd06
%autosetup -p1 -n make-%{version}
a2bd06
a2bd06
rm -f tests/scripts/features/parallelism.orig
a2bd06
a2bd06
%build
a2bd06
a2bd06
%configure \
a2bd06
%if %{with guile}
a2bd06
    --with-guile
a2bd06
%else
a2bd06
    --without-guile
a2bd06
%endif
a2bd06
a2bd06
%make_build
a2bd06
a2bd06
%install
a2bd06
%make_install
a2bd06
ln -sf make ${RPM_BUILD_ROOT}/%{_bindir}/gmake
a2bd06
ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1
a2bd06
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
a2bd06
a2bd06
%find_lang make
a2bd06
a2bd06
%check
a2bd06
echo ============TESTING===============
a2bd06
/usr/bin/env LANG=C make check && true
a2bd06
echo ============END TESTING===========
a2bd06
a2bd06
%files  -f make.lang
a2bd06
%license COPYING
a2bd06
%doc NEWS README AUTHORS
a2bd06
%{_bindir}/*
a2bd06
%{_mandir}/man*/*
a2bd06
%{_infodir}/*.info*
a2bd06
%{_includedir}/gnumake.h
a2bd06
a2bd06
%files devel
a2bd06
%{_includedir}/gnumake.h
a2bd06
a2bd06
%changelog
a2bd06
* Thu Jun 10 2021 DJ Delorie <dj@redhat.com> - 1:4.3-1
a2bd06
- Initial sources for DTS 11 (#1958351)