Blame SPECS/make-latest.spec

5605af
# -*- coding: utf-8 -*-
5605af
# This decides the SRPM name.  Set to "make" for a rolling release
5605af
# (like Fedora) or "make-latest" for a long term release that needs
5605af
# optional versioned updates.
5605af
Name: make-latest
5605af
Epoch: 1
5605af
Version: 4.3
5605af
Release: 1%{?dist}
5605af
License: GPLv3+
5605af
URL: http://www.gnu.org/software/make/
5605af
Source: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.gz
5605af
5605af
%if "%{name}" != "make"
5605af
# Set this to the sub-package base name, for "make-latest"
5605af
%global make make43
5605af
%if 0%{?rhel} > 0
5605af
%global _prefix /opt/rh/%{make}
5605af
%else
5605af
# We intentionally do not define a case for Fedora, as it should not
5605af
# need this functionality, and letting it error avoids accidents.
5605af
%{error:"Each downstream must specify its own /opt namespace"}
5605af
%endif
5605af
Summary: Meta package to include latest version of make
5605af
%else
5605af
%global make %{name}
5605af
Summary: A GNU tool which simplifies the build process for users
5605af
%endif
5605af
5605af
%if 0%{?rhel} > 0
5605af
# This gives the user the option of saying --with guile, but defaults to WITHOUT
5605af
%bcond_with guile
5605af
%else
5605af
# This gives the user the option of saying --without guile, but defaults to WITH
5605af
%bcond_without guile
5605af
%endif
5605af
5605af
Patch0: make-4.3-getcwd.patch
5605af
5605af
# Assume we don't have clock_gettime in configure, so that
5605af
# make is not linked against -lpthread (and thus does not
5605af
# limit stack to 2MB).
5605af
Patch1: make-4.0-noclock_gettime.patch
5605af
5605af
# BZs #142691, #17374
5605af
Patch2: make-4.3-j8k.patch
5605af
5605af
# https://bugzilla.redhat.com/show_bug.cgi?id=1827850
5605af
# https://savannah.gnu.org/bugs/?58232
5605af
# Remove on next make rebase
5605af
Patch3: make-4.3-cloexec.patch
5605af
5605af
# https://bugzilla.redhat.com/show_bug.cgi?id=2010506
5605af
# https://savannah.gnu.org/bugs/?59093
5605af
# Remove on next make rebase
5605af
Patch4: make-4.3-filter-out.patch
5605af
5605af
# autoreconf
5605af
BuildRequires: make
5605af
BuildRequires: autoconf, automake, gettext-devel
5605af
BuildRequires: procps
5605af
BuildRequires: perl
5605af
%if %{with guile}
5605af
BuildRequires: pkgconfig(guile-2.2)
5605af
%endif
5605af
BuildRequires: gcc
5605af
5605af
%if "%{name}" != "make"
5605af
# We're still on the make-latest package
5605af
Requires: %{make}
5605af
%description -n make-latest
5605af
The latest GNU Make, with a version-specific install
5605af
%files -n make-latest
5605af
5605af
%package -n %{make}
5605af
Summary: A GNU tool which simplifies the build process for users
5605af
%endif
5605af
5605af
%description -n %{make}
5605af
A GNU tool for controlling the generation of executables and other
5605af
non-source files of a program from the program's source files. Make
5605af
allows users to build and install packages without any significant
5605af
knowledge about the details of the build process. The details about
5605af
how the program should be built are provided for make in the program's
5605af
makefile.
5605af
5605af
%package -n %{make}-devel
5605af
Summary: Header file for externally visible definitions
5605af
5605af
%description -n %{make}-devel
5605af
The %{make}-devel package contains gnumake.h.
5605af
5605af
%prep
5605af
%autosetup -n make-%{version} -p1
5605af
5605af
rm -f tests/scripts/features/parallelism.orig
5605af
5605af
%build
5605af
autoreconf -vfi
5605af
5605af
%configure \
5605af
%if %{with guile}
5605af
    --with-guile
5605af
%else
5605af
    --without-guile
5605af
%endif
5605af
5605af
%make_build
5605af
5605af
%install
5605af
%make_install
5605af
ln -sf make ${RPM_BUILD_ROOT}/%{_bindir}/gmake
5605af
ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1
5605af
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
5605af
5605af
%if "%{name}" != "make"
5605af
install -d -m 755 ${RPM_BUILD_ROOT}/etc/scl/prefixes
5605af
dirname %{_prefix} > %{make}.prefix
5605af
install -p -m 644 %{make}.prefix ${RPM_BUILD_ROOT}/etc/scl/prefixes/%{make}
5605af
5605af
echo "export PATH=%{_prefix}/bin:\$PATH" > enable.scl
5605af
install -p -m 755 enable.scl ${RPM_BUILD_ROOT}/%{_prefix}/enable
5605af
%endif
5605af
5605af
%find_lang make
5605af
5605af
%check
5605af
echo ============TESTING===============
5605af
/usr/bin/env LANG=C make check && true
5605af
echo ============END TESTING===========
5605af
5605af
%files -n %{make} -f make.lang
5605af
%license COPYING
5605af
%doc NEWS README AUTHORS
5605af
%{_bindir}/*
5605af
%{_mandir}/man*/*
5605af
%{_infodir}/*.info*
5605af
%{_includedir}/gnumake.h
5605af
%if "%{name}" != "make"
5605af
/etc/scl/prefixes/%{make}
5605af
%{_prefix}/enable
5605af
%endif
5605af
5605af
%files -n %{make}-devel
5605af
%{_includedir}/gnumake.h
5605af
5605af
%changelog
5605af
* Thu Jul 14 2022 DJ Delorie <dj@redhat.com> - 1:4.3-1
5605af
Initial commit.