From 66b8795a31db74b9c0b2a7a832981b94e4aa5922 Mon Sep 17 00:00:00 2001 From: zyppe <210hcl@gmail.com> Date: Wed, 28 Feb 2024 21:46:45 +0800 Subject: [PATCH] Initialize for libnftnl --- .gitignore | 1 + .libnftnl.metadata | 1 + libnftnl-1.2.0.tar.bz2.sig | Bin 0 -> 566 bytes libnftnl.changes | 122 +++++++++++++++++++++++++++++++++++++ libnftnl.keyring | 64 +++++++++++++++++++ libnftnl.spec | 72 ++++++++++++++++++++++ 6 files changed, 260 insertions(+) create mode 100644 .gitignore create mode 100644 .libnftnl.metadata create mode 100644 libnftnl-1.2.0.tar.bz2.sig create mode 100644 libnftnl.changes create mode 100644 libnftnl.keyring create mode 100644 libnftnl.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89979e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +libnftnl-1.2.0.tar.bz2 diff --git a/.libnftnl.metadata b/.libnftnl.metadata new file mode 100644 index 0000000..9ef318c --- /dev/null +++ b/.libnftnl.metadata @@ -0,0 +1 @@ +f7e161072b854f0ddbb427f087be9beabf7f579c65b1814e38ddde29544d138d libnftnl-1.2.0.tar.bz2 diff --git a/libnftnl-1.2.0.tar.bz2.sig b/libnftnl-1.2.0.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000..eb0d6664f16d3fbbaf6a5f0546c67f7214ef7bcd GIT binary patch literal 566 zcmV-60?GY}0y6{v0SW*e79j*T*<`H1NrA^z0Q;NOU6+cA6d>dU0${A(F8~S&5Y=6m zii#8<yiu9RCdFwS44?yp2Zf_d;y8X$4_h!-$Yfc#KS` zy@28phff0!-M1@?ipM$v!HzJMyw%HY)Ik|_6ZELXaqst!+G z0Q1RW8v0-<9=x80?|yasS5~hP-Z6=SRrJ2d1%b$R(Gl!fkUEO4NW)DR*yP`T`&;l6EG)tG%z%_-*=M zjDo%A$0-3plyNsmOjmkoB_0^dIvI68^Z&70`@^QD#ozz)hb%{;d+&_ew1<@R|Jqj5 zo*ati|99)h1&vQD185#+Z}}E3frU~!UEQV}*boIV3f37Mi3EkW0FspBK4sRD(zojH zh$r1_pU+U05Y9J~{i0`yrF;;MF{Qyj3Qj47Pj`tmF)PuqmyXsdL?gmtynT(Ohtyyz zcS(|=9gNJN%xj0cNPzW5q~R;qBYf#f4prln{= 1.0.4 + +%description +libnftnl is a userspace library providing a low-level netlink +programming interface (API) to the in-kernel nf_tables subsystem. + +%package -n %lname +Summary: Userspace library to access the nftables Netlink interface +Group: System/Libraries + +%description -n %lname +libnftnl is a userspace library providing a low-level netlink +programming interface (API) to the in-kernel nf_tables subsystem. + +%package devel +Summary: Development files for libnftnl +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libnftnl is a userspace library providing a low-level netlink +programming interface (API) to the in-kernel nf_tables subsystem. + +This subpackage contains libraries and header files for developing +applications that want to make use of libnftnl. + +%prep +%autosetup -p1 + +%build +# includedir intentional, cf. bugzilla.opensuse.org/795968 +%configure --with-xml-parsing --includedir="%_includedir/%name" +%make_build + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%_libdir/libnftnl.so.11* + +%files devel +%_includedir/%name/ +%_libdir/libnftnl.so +%_libdir/pkgconfig/libnftnl.pc +%license COPYING + +%changelog