%bcond_with guile Name: make Epoch: 1 Version: 4.4.1 Release: 3 Summary: A tool which controls the generation of executables and non-source files of a program License: GPL-3.0-or-later URL: https://www.gnu.org/software/make/ Source0: https://ftpmirror.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz BuildSystem: autotools %if %{with guile} BuildOption(conf): --with-guile %else BuildOption(conf): --without-guile %endif BuildRequires: gcc autoconf automake procps BuildRequires: make %if %{with guile} BuildRequires: guile-devel %endif Provides: %{name}-devel = %{epoch}:%{version}-%{release} Obsoletes: %{name}-devel < %{epoch}:%{version}-%{release} %description GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program. %build -p touch configure aclocal.m4 Makefile.in %install -a ln -sf make %{buildroot}/%{_bindir}/gmake ln -sf make.1 %{buildroot}/%{_mandir}/man1/gmake.1 rm -f %{buildroot}/%{_infodir}/dir %check # check will fail if running the test with -j2 # http://savannah.gnu.org/bugs/?func=detailitem&item_id=53152 if [ "%{_smp_mflags}" = "-j2" ]; then echo "test will fail with make -j2 check" else /usr/bin/env LANG=C make check || { for f in tests/work/*/*.diff; do test -f "$f" || continue printf "++++++++++++++ %s ++++++++++++++\n" "${f##*/}" cat "$f" done } fi %files %license COPYING %doc README AUTHORS %{_bindir}/* %{_includedir}/* %doc NEWS %{_mandir}/*/* %{_infodir}/* %changelog