From 5aad51a47a5c42ca686e64444d5a97815d9b7eefba78836e56801698b45e9a6c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 20 Jan 2014 22:17:08 +0000 Subject: [PATCH] Rename from libnftables OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnftnl?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + libnftnl-1.0.0+git1.tar.xz | 3 ++ libnftnl.changes | 4 ++ libnftnl.spec | 86 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libnftnl-1.0.0+git1.tar.xz create mode 100644 libnftnl.changes create mode 100644 libnftnl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libnftnl-1.0.0+git1.tar.xz b/libnftnl-1.0.0+git1.tar.xz new file mode 100644 index 0000000..95a898c --- /dev/null +++ b/libnftnl-1.0.0+git1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b886a2a4feafb7d15e46d9ce9ece146207cc6388aac302c715f447e341473471 +size 283576 diff --git a/libnftnl.changes b/libnftnl.changes new file mode 100644 index 0000000..16b95b8 --- /dev/null +++ b/libnftnl.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Dec 17 00:03:37 UTC 2012 - jengelh@inai.de + +- Initial package (1.0.0+git1) for build.opensuse.org diff --git a/libnftnl.spec b/libnftnl.spec new file mode 100644 index 0000000..c2e3045 --- /dev/null +++ b/libnftnl.spec @@ -0,0 +1,86 @@ +# +# spec file for package libnftables +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: libnftnl +%define lname libnftnl0 +Version: 0~git315 +Release: 0 +Summary: Userspace library to access the nftables Netlink interface +License: GPL-2.0+ +Group: Productivity/Networking/Security +URL: http://netfilter.org/projects/libnftnl/ + +#Git-Snapshot: libnftnl-1.0.0-1-g91264d8 +#Git-Clone: git://git.netfilter.org/libnftnl +Source: %name-%version.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig >= 0.21 +BuildRequires: pkgconfig(jansson) >= 2.3 +BuildRequires: pkgconfig(libmnl) >= 1.0.3 +BuildRequires: pkgconfig(mxml) >= 2.6 + +%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 +Requires: %lname = %version +Summary: Development files to libnftnl +Group: Development/Libraries/C and C++ + +%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 +%setup -qn %name + +%build +%configure --includedir="%_includedir/pkg" --with-xml-parsing \ + --with-json-parsing +make %{?_smp_mflags} + +%install +make install DESTDIR="%buildroot"; +rm -f "%buildroot/%_libdir"/*.la; + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%defattr(-,root,root) +%_libdir/libnftnl.so.0* + +%files devel +%defattr(-,root,root) +%_includedir/pkg/ +%_libdir/libnftnl.so +%_libdir/pkgconfig/libnftnl.pc + +%changelog