From 09d413550569853955b2240462316a48f3212b4b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:10:36 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0.5-1mamba;Fri Jan 01 2016] --- README.md | 2 ++ libnftnl.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 libnftnl.spec diff --git a/README.md b/README.md index 24ce084..c4c4ba4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libnftnl +libnftnl is a userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem. The library libnftnl has been previously known as libnftables. This library is currently used by nftables. + diff --git a/libnftnl.spec b/libnftnl.spec new file mode 100644 index 0000000..04056a2 --- /dev/null +++ b/libnftnl.spec @@ -0,0 +1,64 @@ +Name: libnftnl +Version: 1.0.5 +Release: 1mamba +Summary: A userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: System/Libraries +Source: http://netfilter.org/projects/libnftnl/files/libnftnl-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libmnl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libnftnl is a userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem. The library libnftnl has been previously known as libnftables. This library is currently used by nftables. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libnftnl.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libnftnl +%{_includedir}/libnftnl/*.h +%{_libdir}/libnftnl.la +%{_libdir}/libnftnl.so +%{_libdir}/pkgconfig/libnftnl.pc + +%changelog +* Fri Jan 01 2016 Silvan Calarco 1.0.5-1mamba +- package created using the webbuild interface