# # 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