!1 add libslirp source package and spec file
Merge pull request !1 from 付善庆/master
This commit is contained in:
commit
6cda9d0c20
BIN
libslirp-4.4.0.tar.xz
Normal file
BIN
libslirp-4.4.0.tar.xz
Normal file
Binary file not shown.
50
libslirp.spec
Normal file
50
libslirp.spec
Normal file
@ -0,0 +1,50 @@
|
||||
Name: libslirp
|
||||
Version: 4.4.0
|
||||
Release: 1
|
||||
Summary: A general purpose TCP-IP emulator
|
||||
|
||||
License: BSD and MIT
|
||||
URL: https://gitlab.freedesktop.org/slirp/libslirp
|
||||
Source0: %{url}/-/archive/v%{version}/%{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: git-core
|
||||
BuildRequires: meson
|
||||
BuildRequires: gcc
|
||||
BuildRequires: glib2-devel
|
||||
|
||||
%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 libslirp-devel package contains libraries and header files for
|
||||
developing applications that use libslirp.
|
||||
|
||||
%prep
|
||||
%autosetup -S git_am
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%files
|
||||
%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
|
||||
* Wed Jan 26 2022 fushanqing <fushanqing@kylinos.cn> - 4.4.0-1
|
||||
- Initial package
|
||||
Loading…
x
Reference in New Issue
Block a user