File djstub.spec of Package djstub
#
# spec file for package djstub
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: djstub
Version: 0.7+git20251013
Release: 0%{?dist}
Summary: Advanced djgpp-compatible stub
License: GPL-3.0-or-later
Group: Development/Languages/Other
URL: https://github.com/stsp/djstub
Source: %{name}-%{version}.tar.xz
BuildRequires: binutils
BuildRequires: smallerc
Requires: binutils
%description
A go32-compatible stub, with support of COFF, PE and ELF formats.
Can be used with djgpp and dj64 tool-chains.
%prep
%autosetup
sed 's|%{_bindir}/env bash|%{_bindir}/bash|g' -i djelfextract djlink djstrip
%build
%make_build
%check
%install
%make_install DESTDIR=%{buildroot} prefix=%{_prefix}
%files
%license LICENSE
%doc README.md
%{_bindir}/djelfextract
%{_bindir}/djlink
%{_bindir}/djstrip
%{_bindir}/djstubify
%changelog