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