diff --git a/make.spec b/make.spec index af68892e1cb4bc60e4f119ec71b1c0dc7b216609..08bd0f2f9d8cc26e1009be64107cf291cc88a135 100644 --- a/make.spec +++ b/make.spec @@ -1,16 +1,19 @@ +%bcond_with guile Name: make Epoch: 1 Version: 4.4.1 -Release: 1 +Release: 2 Summary: A tool which controls the generation of executables and non-source files of a program -License: GPLv3+ -URL: http://www.gnu.org/software/make/ -Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz +License: GPL-3.0-or-later AND LGPL-2.1-or-later AND GFDL-1.3-or-later AND FSFULLR +URL: https://www.gnu.org/software/make/ +Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz -BuildRequires: gcc git autoconf automake procps -BuildRequires: guile-devel perl-interpreter make -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info +BuildRequires: gcc procps perl-interpreter make +%if %{with guile} +BuildRequires: guile-devel +%endif +Provides: make-devel = %{epoch}:%{version}-%{release} +Obsoletes: make-devel < %{epoch}:%{version}-%{release} %description GNU Make is a tool which controls the generation of executables and other @@ -21,23 +24,20 @@ 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. -%package devel -Summary: Development files for %{name} -Requires: %{name} = %{epoch}:%{version}-%{release} - -%description devel -The %{name}-devel package contains libraries and header files for -developing applications that use %{name}. - %package_help %prep %autosetup -n %{name}-%{version} -p1 %build -touch configure aclocal.m4 Makefile.in +%configure \ +%if %{with guile} + --with-guile \ +%else + --without-guile \ +%endif +%{nil} -%configure --with-guile %make_build %install @@ -49,47 +49,25 @@ rm -f %{buildroot}/%{_infodir}/dir %find_lang %{name} %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 - -%post -if [ -f %{_infodir}/make.info.gz ]; then - /sbin/install-info %{_infodir}/make.info.gz %{_infodir}/dir --entry="* Make: (make). The GNU make utility." || : -fi - -%preun -if [ $1 = 0 ]; then - if [ -f %{_infodir}/make.info.gz ]; then - /sbin/install-info --delete %{_infodir}/make.info.gz %{_infodir}/dir --entry="* Make: (make). The GNU make utility." || : - fi -fi +/usr/bin/env LANG=C %make_build check %files -f %{name}.lang -%license COPYING AUTHORS -%doc README +%license COPYING +%doc README AUTHORS %{_bindir}/* %{_includedir}/* -%files devel -%{_includedir}/* - %files help %doc NEWS %{_mandir}/*/* %{_infodir}/* %changelog +* Tue Aug 06 2024 Funda Wang - 1:4.4.1-2 +- Obsolete useless devel package +- make guile depedencies conditioned +- bootstrap build without guile + * Mon Jul 17 2023 fuanan - 1:4.4.1-1 - update version to 4.4.1