From 0760f8909bd4ea2e6b7a2f277e1f5b77ebdaf96e Mon Sep 17 00:00:00 2001 From: Yafen Fang Date: Fri, 15 May 2026 11:25:06 +0800 Subject: [PATCH] SPECS: Add libslirp --- SPECS/libslirp/libslirp.spec | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 SPECS/libslirp/libslirp.spec diff --git a/SPECS/libslirp/libslirp.spec b/SPECS/libslirp/libslirp.spec new file mode 100644 index 0000000000..4200705737 --- /dev/null +++ b/SPECS/libslirp/libslirp.spec @@ -0,0 +1,45 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: Yafen Fang +# +# SPDX-License-Identifier: MulanPSL-2.0 + +Name: libslirp +Version: 4.9.1 +Release: %autorelease +Summary: A general purpose TCP-IP emulator +License: BSD-3-Clause AND MIT +URL: https://gitlab.freedesktop.org/slirp/libslirp +#!RemoteAsset: sha256:3970542143b7c11e6a09a4d2b50f30a133473c41f15ed0bdcc3b7a1c450d9a5c +Source: https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v%{version}/libslirp-v%{version}.tar.gz +BuildSystem: meson + +BuildRequires: git-core +BuildRequires: meson +BuildRequires: pkgconfig(glib-2.0) + +%description +A general purpose TCP-IP emulator used by virtual machine hypervisors +to provide virtual networking services. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%files +%doc README.md CHANGELOG.md +%license COPYRIGHT +%{_libdir}/libslirp.so.0* + +%files devel +%dir %{_includedir}/slirp/ +%{_includedir}/slirp/* +%{_libdir}/libslirp.so +%{_libdir}/pkgconfig/slirp.pc + +%changelog +%autochangelog