Initialize for libnfnetlin

This commit is contained in:
zyppe 2024-02-28 21:45:13 +08:00
commit 5813ae7c60
7 changed files with 202 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
libnfnetlink-1.0.1.tar.bz2

1
.libnfnetlin.metadata Normal file
View file

@ -0,0 +1 @@
c13404e48ef31781a5d8b6ef0b2b11e75a7ed024b75b213bc2cdf84b2ccfcadd libnfnetlink-1.0.1.tar.bz2

1
baselibs.conf Normal file
View file

@ -0,0 +1 @@
libnfnetlink0

Binary file not shown.

42
libnfnetlink.changes Normal file
View file

@ -0,0 +1,42 @@
* Tue Mar 27 2018 kukuk@suse.de
- Use %%license instead of %%doc [bsc#1082318]
* Mon Sep 29 2014 jengelh@inai.de
- Drop %%version from subincludedir, it tends to break recompiles of
already-built trees on library updates.
* Thu Apr 24 2014 dmueller@suse.com
- remove dependency on gpg-offline (blocks rebuilds and
tarball integrity is checked by source-validator anyway)
* Wed Nov 28 2012 sbrabec@suse.cz
- Verify GPG signature
* Mon Oct 8 2012 jengelh@inai.de
- Update to new upstream release 1.0.1
(no changes over 1.0.0+git35, this is just the official release)
* Fri Aug 31 2012 jengelh@inai.de
- Update to new git snapshot 1.0.0+git35
* Fix incomplete retrieval of the interface list,
which causes conntrackd to not operate as desired
(http://marc.info/?l=netfilter&m=134458290414850&w=2 )
* Fri Feb 10 2012 cfarrell@suse.com
- license update: GPL-2.0
Look at e.g. src/iftable.c - please check if GPL-3.0 applications require
this library
* Sat Dec 31 2011 jengelh@medozas.de
- Update to new git snapshot 1.0.0+git28
* build updates, license update
* Thu Dec 29 2011 jengelh@medozas.de
- Use separate include dir to detect compile errors
* Tue Nov 22 2011 jengelh@medozas.de
- Make License field SPDX compliant (bnc#731935)
* Sat Nov 19 2011 coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
* Sat Apr 24 2010 coolo@novell.com
- buildrequire pkg-config to fix provides
* Fri Feb 26 2010 jengelh@medozas.de
- update to 1.0.0+git1 to have license file available
* Wed Feb 24 2010 jengelh@medozas.de
- add baselibs.conf
- use %%_smp_mflags
- secure *.la delete call
- wrap description at col 70
* Tue Jun 30 2009 bitshuffler #suse@irc.freenode.org
- Updated to 1.0.0

56
libnfnetlink.keyring Normal file
View file

@ -0,0 +1,56 @@
pub 4096R/BB5F58CC 2010-10-21 [expires: 2015-10-20]
uid Netfilter Core Team <coreteam@netfilter.org>
sub 4096R/04B92F5C 2010-10-21 [expires: 2015-10-20]
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQINBEzAS5EBEADVlGm+KwODJcVmP33HTCbn/eP8obZbgu+3Z1CYRklF8V43vC6D
8Jfk7fjD4/gWbAKZxriOESXVAN7mp0Fho4+Ga+pxWeLIET9tVM5xbNFK1p9R3XCK
p5SrugG+tGhizTR9b/1YCMVRz/yX3aDtC7lwObas4hkr5BqhphjvlkjFE7us32by
43LPpFj2yUpp1VdOf6gxl03kAgJg08h9J7a+n9KHQeAhIpXSRFq3tXiTdXQlovsv
ckwBjO0m8P2d1Z8/UYwXQgXzuO8W8EqaUSR95nDwl7UnilnKJm2fGvNg3A6PfCSk
3KdeEBZ45SRfMTPsuC5C4T0Az75h3HFR6YSae46ymg7d4ZA/Bd5K4hvp4PdYrfCi
GXen7iK9q5XDpopWb0yCrEVJzKjBjDurvpLtAD0IFWcpB6zwM38AnxVH05J8QOx/
VCZ4vZJxTKWbpHbdcISSMmVt00VfKorF9DsjiAcBRMBcIvDpJTP4yjvr32W09wLc
d5CIYGrLKhLNysUIJ44AQoTL9yV5aQvCb2EFnoPqCEKQm8onTAGX19PpTDjDPJFt
WyMMUDtiMp2yODuFo1qHjxvqzSVX+Ti2sGpiT1hEz97GAIlbAvmXs/bTb+U+rBnd
6027ooes3cWmBSV5kpz/sMp+nFynrLZ5NDnehPScz3W31oGgSdrGsnnhaQARAQAB
tCxOZXRmaWx0ZXIgQ29yZSBUZWFtIDxjb3JldGVhbUBuZXRmaWx0ZXIub3Jn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/+xQ49VzcFxNO
9DqTyk4N7cz7OZrAi+ouVrdFuiwnZyn5YSQoof6Pos58b3bkFn14m9gofwTqGzPh
R4Vot9rRu5zrWdoCM4cRThpJyrjqBMs=
=mRxL
-----END PGP PUBLIC KEY BLOCK-----

101
libnfnetlink.spec Normal file
View file

@ -0,0 +1,101 @@
#
# spec file for package libnfnetlin
#
# Copyright (c) 2022-2023 ZhuningOS
#
Name: libnfnetlink
%define libsoname %{name}0
Version: 1.0.1
Release: 2.11
Summary: Low-level library for Netfilter-related kernel/userspace communication
License: GPL-2.0-only
Group: Productivity/Networking/Security
Url: http://netfilter.org/projects/libnfnetlink/
#Git-Clone: git://git.netfilter.org/libnfnetlink
#DL-URL: ftp://ftp.netfilter.org/pub/libnfnetlink/
Source: http://netfilter.org/projects/libnfnetlink/files/%name-%version.tar.bz2
Source2: http://netfilter.org/projects/libnfnetlink/files/%name-%version.tar.bz2.sig
Source3: baselibs.conf
Source4: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildRequires: autoconf
#BuildRequires: automake >= 1.6
#BuildRequires: libtool
BuildRequires: pkgconfig >= 0.21
%description
libnfnetlink is the low-level library for netfilter related
kernel/userspace communication. It provides a generic messaging
infrastructure for in-kernel netfilter subsystems (such as
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
respective users and/or management tools in userspace.
This library is not meant as a public API for application developers.
It is only used by other netfilter.org projects, such as
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
%package -n %libsoname
Summary: Low-level library for Netfilter-related kernel/userspace communication
Group: System/Libraries
%description -n %libsoname
libnfnetlink is the low-level library for netfilter related
kernel/userspace communication. It provides a generic messaging
infrastructure for in-kernel netfilter subsystems (such as
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
respective users and/or management tools in userspace.
This library is not meant as a public API for application developers.
It is only used by other netfilter.org projects, such as
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
%package devel
Requires: %libsoname = %version
Summary: Low-level library for Netfilter-related kernel/userspace communication
Group: Development/Libraries/C and C++
%description devel
libnfnetlink is the low-level library for netfilter related
kernel/userspace communication. It provides a generic messaging
infrastructure for in-kernel netfilter subsystems (such as
nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their
respective users and/or management tools in userspace.
This library is not meant as a public API for application developers.
It is only used by other netfilter.org projects, such as
libnetfilter_log, libnetfilter_queue or libnetfilter_conntrack.
%prep
%setup -q
%build
if [ ! -e configure ]; then
autoreconf -fi;
fi
%configure --disable-static --includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la;
%post -n %libsoname -p /sbin/ldconfig
%postun -n %libsoname -p /sbin/ldconfig
%files -n %libsoname
%defattr(-,root,root)
%license COPYING
%doc README
%_libdir/libnfnetlink.so.0*
%files devel
%defattr(-,root,root)
%_includedir/%name/
%_libdir/libnfnetlink.so
%_libdir/pkgconfig/libnfnetlink.pc
%changelog