libslirp/libslirp.spec

81 lines
2.1 KiB
RPMSpec

#
# spec file for package libslirp
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define libname libslirp0
Name: libslirp
Version: 4.8.0+2
Release: 0
Summary: A general purpose TCP-IP emulator
License: MIT
Group: System/Libraries
URL: https://gitlab.freedesktop.org/slirp/%{name}
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: git-core
BuildRequires: glib2-devel
BuildRequires: meson
%description
A general purpose TCP-IP emulator used by virtual machine hypervisors
to provide virtual networking services.
%package -n %{libname}
Summary: A networking Library
Group: System/Libraries
%description -n %{libname}
A user-mode networking library used by virtual machines, containers
or various tools.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%meson
%meson_build
%install
%meson_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYRIGHT
%doc README.md CHANGELOG.md
%{_libdir}/%{name}.so.0*
%files devel
%dir %{_includedir}/slirp/
%{_includedir}/slirp/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/slirp.pc
%changelog