File mingw64-libslirp.spec of Package mingw64-libslirp

#
# spec file for package mingw64-libslirp
#
# 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 http://bugs.opensuse.org/
#


%define realname libslirp
%define lname mingw64-libslirp0
Name:           mingw64-%{realname}
Version:        4.9.0
Release:        0
Summary:        A general purpose TCP-IP emulator
License:        MIT
Group:          System/Libraries
URL:            https://gitlab.freedesktop.org/slirp/libslirp
Source0:        %{realname}-%{version}.tar.xz
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-meson
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-win_iconv-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
A general purpose TCP-IP emulator used by virtual machine hypervisors
to provide virtual networking services.

%package -n %{lname}
Summary:        Summary:        A networking Library
Group:          System/Libraries

%description -n %{lname}
A user-mode networking library used by virtual machines, containers
or various tools.

%package -n mingw64-%{realname}-devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}

%description -n mingw64-%{realname}-devel
The mingw64-%{realname}-devel package contains libraries and header files
for developing applications that use %{name}.

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{_mingw64_meson}
%{_mingw64_meson_build}

%install
%{_mingw64_meson_install}

%files -n %{lname}
%license COPYRIGHT
%doc README.md CHANGELOG.md
%{_mingw64_bindir}/libslirp-0.dll

%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/slirp
%{_mingw64_libdir}/libslirp.dll.a
%{_mingw64_libdir}/pkgconfig/slirp.pc

%changelog
openSUSE Build Service is sponsored by