73 lines
1.9 KiB
RPMSpec
73 lines
1.9 KiB
RPMSpec
Name: libnetfilter_queue
|
|
Version: 1.0.2
|
|
Release: 13
|
|
Summary: A userspace library to the queued packets
|
|
License: GPLv2
|
|
URL: http://netfilter.org
|
|
Source0: https://netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-%{version}.tar.bz2
|
|
BuildRequires: autoconf automake libtool pkgconfig kernel-headers
|
|
BuildRequires: libnfnetlink-devel >= 1.0.1 libmnl-devel >= 1.0.3
|
|
|
|
Patch6001: fix-valgrind-errors-of-uninitialised-byte-during-cal.patch
|
|
Patch6002: build-avoid-symbol-namespace-pollution.patch
|
|
Patch6003: extra-use-inet_ntop-instead-of-inet_ntoa.patch
|
|
Patch6004: extra-fix-wrong-implementation-in-nfq_udp_get_payloa.patch
|
|
Patch6005: extra-tcp-insufficient-sanitization-in-nfq_tcp_get_p.patch
|
|
Patch6006: src-make-nfq_open_nfnl-thread-safe.patch
|
|
Patch6007: src-check-result-of-malloc-when-creating-queue.patch
|
|
|
|
%description
|
|
libnetfilter_queue is a userspace library providing an API to packets that
|
|
have been queued by the kernel packet filter. It is is part of a system that
|
|
deprecates the old ip_queue / libipq mechanism.
|
|
|
|
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
|
|
|
%package devel
|
|
Summary: Development headers and librarys for libnetfilter_queue
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: libnfnetlink-devel >= 1.0.1 kernel-headers pkgconfig
|
|
|
|
%description devel
|
|
Includes development headers and librarys for libnetfilter_queue.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%check
|
|
make check
|
|
|
|
%pre
|
|
|
|
%preun
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_includedir}/libnetfilter_queue/*.h
|
|
%exclude %{_includedir}/internal.h
|
|
%exclude %{_libdir}/libnetfilter_queue.la
|
|
|
|
%changelog
|
|
* Tue Sep 17 2019 Huiming Xie <xiehuiming@huawei.com> - 1.0.2.13
|
|
- Package init
|
|
|