File fdpp.spec of Package fdpp

#
# spec file for package fdpp
#
# 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:           fdpp
Version:        1.10+git20251204
Release:        0
Summary:        64-bit DOS core
License:        GPL-3.0-or-later
Group:          Development/Languages/Other
URL:            https://github.com/dosemu2/fdpp/
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  meson
BuildRequires:  nasm-segelf
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libelf)
BuildRequires:  pkgconfig(thunk_gen)
%ifnarch %{ix86}
BuildRequires:  cross-i386-binutils
%endif
###

%description
fdpp is a 64-bit DOS core.
It is based on a FreeDOS kernel ported to modern C++.

%package devel
Summary:        fdpp development headers
Requires:       fdpp = %{version}

%description devel
This package contains headers for fdpp usage.

%prep
%autosetup

%build
#export RPM_BUILD_NCPUS=1
# FIXME: usage of %%meson-macros is broken
#%%meson
#%%meson_build
./configure.meson -- --prefix %{_prefix} --libdir %{_libdir}
# FIXME: you should use the %%meson macros
meson compile --verbose -C build %{?_smp_mflags}

%install
#%%meson_install
meson install -C build --destdir %{buildroot}

%files
%license LICENSE
%doc NEWS.md README.md
%dir %{_libdir}/fdpp
%{_libdir}/fdpp/libfdldr.so.*
%{_libdir}/fdpp/libfdpp.so.*
%{_datadir}/fdpp

%files devel
%{_includedir}/fdpp
%{_libdir}/fdpp/*.so
%{_libdir}/pkgconfig/fdpp.pc

%changelog
openSUSE Build Service is sponsored by