File thunk_gen.spec of Package thunk_gen
#
# spec file for package thunk_gen
#
# 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: thunk_gen
Version: 1.8
Release: 0
Summary: 64-bit thunk generator for 16- and 32-bit code
License: GPL-3.0-or-later
Group: Development/Languages/Other
URL: https://github.com/stsp/thunk_gen
Source: https://github.com/stsp/thunk_gen/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc
BuildRequires: meson
Requires: autoconf
Requires: pkgconfig
%description
thunk-gen is a thunk generator for C and assembler code, providing
wrappers so that code written for 16- or 32-bit environments can be
compiled for 64-bit environments.
It is intended for use with 64-bit DOS-style environments running
code intended for 16- or 32-bit DOS, typically dosemu2.
%prep
%autosetup
sed 's|%{_bindir}/env bash|%{_bindir}/bash|g' -i scripts/{parse_decls.sh,tg_m4}
%build
%meson
%meson_build
%install
%meson_install
%check
%files
%license LICENSE
%doc README.md
%dir %{_libexecdir}/thunk_gen
%{_libexecdir}/thunk_gen/mkasmdefs.sh
%{_libexecdir}/thunk_gen/parse_decls.sh
%{_libexecdir}/thunk_gen/tg_m4
%{_libexecdir}/thunk_gen/thunk_gen
%{_datadir}/thunk_gen
%{_datadir}/pkgconfig/thunk_gen.pc
%changelog