diff --git a/README.md b/README.md index 877e230..31b0273 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libslirp +A general purpose TCP-IP emulator used by virtual machine hypervisors to provide virtual networking services. + diff --git a/libslirp.spec b/libslirp.spec new file mode 100644 index 0000000..46fa186 --- /dev/null +++ b/libslirp.spec @@ -0,0 +1,60 @@ +Name: libslirp +Version: 4.8.0 +Release: 1mamba +Summary: A general purpose TCP-IP emulator used by virtual machine hypervisors to provide virtual networking services +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.freedesktop.org/slirp/libslirp +Source: https://gitlab.freedesktop.org/slirp/libslirp.git/v%{version}/libslirp-%{version}.tar.bz2 +License: MIT, BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +## AUTOBUILDREQ-END +BuildRequires: meson + +%description +A general purpose TCP-IP emulator used by virtual machine hypervisors to provide virtual networking services. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/libslirp.so.* +%doc COPYRIGHT + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/slirp +%{_includedir}/slirp/libslirp*.h +%{_libdir}/libslirp.so +%{_libdir}/pkgconfig/slirp.pc +%doc README.md + +%changelog +* Thu Dec 26 2024 Silvan Calarco 4.8.0-1mamba +- package created using the webbuild interface