Blame SPECS/make.spec

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