File remake.spec of Package remake
#
# spec file for package remake
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define base_version 4.3+dbg-1.6
%define pkg_version 4.3+dbg-1.6
Name: remake
Version: 4.3_1.6
Release: 0
Summary: A gnu make version including a debuger
License: GPL-3.0-or-later
Group: Development/Tools/Building
Summary(de): Eine gnu make Version inklusive Debugger
URL: http://bashdb.sourceforge.net/remake/
Source0: https://downloads.sourceforge.net/project/bashdb/remake/%{base_version}/remake-%{pkg_version}.tar.gz
# PATCH-FIX-UPSTREAM fix-gcc15.patch gh#Trepan-Debuggers/remake#169 gh#Trepan-Debuggers/remake#170
Patch0: fix-gcc15.patch
BuildRequires: readline-devel
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description
remake is a patched and modernized version of GNU make utility that
adds improved error reporting, the ability to trace execution in a
comprehensible way, and a debugger.
%description -l de
remake ist eine gepatchte und modernisierte Version des GNU make
Utilities. Es wurde die Fehlerbenachrichtigung erweitertert, die
Möglichkeit die Ausführung zu tracen ergänzt und ein Debugger
eingebaut.
%lang_package
%prep
%autosetup -n %{name}-%{pkg_version} -p1
%build
export CFLAGS="%{optflags} -fcommon"
%configure
%make_build
%install
%make_install
rm -f %{buildroot}/%{_infodir}/make* \
%{buildroot}/%{_includedir}/gnuremake.h
%find_lang remake
%check
# Random test failure in remake 4.3: output-sync deadlocks sometimes
# https://github.com/Trepan-Debuggers/remake/issues/168
rm -f tests/scripts/features/output-sync
%make_build check
%post
%install_info --info-dir="%{_infodir}" "%{_infodir}"/remake.info*
%preun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}"/remake.info*
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/remake
%{_mandir}/man1/remake.1%{?ext_man}
%{_infodir}/remake.info%{?ext_info}
%files lang -f %{name}.lang
%changelog