Blame SPECS/make-latest.spec

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