|
|
|
|
@ -1,19 +1,21 @@
|
|
|
|
|
%define rpmversion 1.2.2
|
|
|
|
|
%define specrelease 3
|
|
|
|
|
%define libnftnl_rpmversion 1.2.6
|
|
|
|
|
%define libnftnl_specrelease 2
|
|
|
|
|
|
|
|
|
|
Name: libnftnl
|
|
|
|
|
Version: %{rpmversion}
|
|
|
|
|
Release: %{specrelease}%{?dist}
|
|
|
|
|
Version: %{libnftnl_rpmversion}
|
|
|
|
|
Release: %{libnftnl_specrelease}%{?dist}%{?buildid}
|
|
|
|
|
Summary: Library for low-level interaction with nftables Netlink's API over libmnl
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://netfilter.org/projects/libnftnl/
|
|
|
|
|
Source0: http://ftp.netfilter.org/pub/libnftnl/libnftnl-%{version}.tar.bz2
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: libmnl-devel
|
|
|
|
|
URL: https://netfilter.org/projects/libnftnl/
|
|
|
|
|
Source0: %{url}/files/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
Patch0001: 0001-libnftnl.map-Restore-custom-LIBNFTNL_RHEL_14-version.patch
|
|
|
|
|
Patch1: 0001-set-Do-not-leave-free-d-expr_list-elements-in-place.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: libmnl-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
#BuildRequires: autoconf
|
|
|
|
|
#BuildRequires: automake
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A library for low-level interaction with nftables Netlink's API over libmnl.
|
|
|
|
|
@ -33,23 +35,19 @@ developing applications that use %{name}.
|
|
|
|
|
# This is what autogen.sh (only in git repo) does - without it, patches changing
|
|
|
|
|
# Makefile.am cause the build system to regenerate Makefile.in and trying to use
|
|
|
|
|
# automake-1.14 for that which is not available in RHEL.
|
|
|
|
|
autoreconf -fi
|
|
|
|
|
rm -rf autom4te*.cache
|
|
|
|
|
#autoreconf -fi
|
|
|
|
|
#rm -rf autom4te*.cache
|
|
|
|
|
|
|
|
|
|
%configure --disable-static --disable-silent-rules
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
%make_build check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
@ -60,78 +58,82 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
%{_includedir}/libnftnl
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jun 28 2023 Phil Sutter <psutter@redhat.com> [1.2.2-3.el8]
|
|
|
|
|
- Export nftnl_set_elem_nlmsg_build symbol in the right version
|
|
|
|
|
* Fri Oct 27 2023 Phil Sutter <psutter@redhat.com> [1.2.6-2.el9]
|
|
|
|
|
- spec: Avoid variable name clash, add missing dist tag (Phil Sutter) [RHEL-14149]
|
|
|
|
|
|
|
|
|
|
* Wed Jun 28 2023 Phil Sutter <psutter@redhat.com> [1.2.2-2.el8]
|
|
|
|
|
- libnftnl.map: Restore custom LIBNFTNL_RHEL_14 version (Phil Sutter) [2211096]
|
|
|
|
|
* Thu Oct 26 2023 Phil Sutter <psutter@redhat.com> [1.2.6-1.el9]
|
|
|
|
|
- set: Do not leave free'd expr_list elements in place (Phil Sutter) [RHEL-14149]
|
|
|
|
|
- Rebase onto version 1.2.6 (Phil Sutter) [RHEL-14149]
|
|
|
|
|
|
|
|
|
|
* Tue May 30 2023 Phil Sutter <psutter@redhat.com> [1.2.2-1.el8]
|
|
|
|
|
- Rebase onto version 1.2.2 (Phil Sutter) [2211096]
|
|
|
|
|
* Tue Jun 07 2022 Phil Sutter <psutter@redhat.com> - 1.2.2-1
|
|
|
|
|
- New version 1.2.2
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Phil Sutter <psutter@redhat.com> [1.1.5-5.el8]
|
|
|
|
|
- set: expose nftnl_set_elem_nlmsg_build() (Phil Sutter) [2040754]
|
|
|
|
|
- expr: dynset: release stateful expression from .free path (Phil Sutter) [2040478]
|
|
|
|
|
- set_elem: missing set and build for NFTNL_SET_ELEM_EXPR (Phil Sutter) [2040478]
|
|
|
|
|
* Wed May 18 2022 Phil Sutter <psutter@redhat.com> - 1.2.1-1
|
|
|
|
|
- Fix debug printing for tcp option reset expression
|
|
|
|
|
- new version 1.2.1
|
|
|
|
|
|
|
|
|
|
* Wed Feb 19 2020 Phil Sutter <psutter@redhat.com> [1.1.5-4.el8]
|
|
|
|
|
- src: Fix for reading garbage in nftnl_chain getters (Phil Sutter) [1758673]
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.9-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Feb 14 2020 Phil Sutter <psutter@redhat.com> [1.1.5-3.el8]
|
|
|
|
|
- set_elem: Introduce support for NFTNL_SET_ELEM_KEY_END (Phil Sutter) [1795223]
|
|
|
|
|
- set: Add support for NFTA_SET_DESC_CONCAT attributes (Phil Sutter) [1795223]
|
|
|
|
|
- include: resync nf_tables.h cache copy (Phil Sutter) [1795223]
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.9-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Fri Dec 06 2019 Phil Sutter <psutter@redhat.com> [1.1.5-2.el8]
|
|
|
|
|
- chain: Correctly check realloc() call (Phil Sutter) [1778952]
|
|
|
|
|
- flowtable: Correctly check realloc() call (Phil Sutter) [1778952]
|
|
|
|
|
- chain: Fix memleak in error path of nftnl_chain_parse_devs() (Phil Sutter) [1778952]
|
|
|
|
|
- flowtable: Fix memleak in error path of nftnl_flowtable_parse_devs() (Phil Sutter) [1778952]
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 02 2019 Phil Sutter <psutter@redhat.com> [1.1.5-1.el8]
|
|
|
|
|
- Rebase onto upstream version 1.1.5 (Phil Sutter) [1717129]
|
|
|
|
|
* Sat Jan 16 2021 Kevin Fenzi <kevin@scrye.com> - 1.1.9-1
|
|
|
|
|
- Update to 1.1.9. Fixes rhbz#1916855
|
|
|
|
|
|
|
|
|
|
* Thu Oct 24 2019 Phil Sutter <psutter@redhat.com> [1.1.4-3.el8]
|
|
|
|
|
- set: Export nftnl_set_list_lookup_byname() (Phil Sutter) [1762563]
|
|
|
|
|
* Sat Oct 31 2020 Kevin Fenzi <kevin@scrye.com> - 1.1.8-1
|
|
|
|
|
- Update to 1.1.8. Fixes bug #1891597
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2019 Phil Sutter <psutter@redhat.com> [1.1.4-2.el8]
|
|
|
|
|
- obj/ct_timeout: Fix NFTA_CT_TIMEOUT_DATA parser (Phil Sutter) [1758673]
|
|
|
|
|
- set_elem: Validate nftnl_set_elem_set() parameters (Phil Sutter) [1758673]
|
|
|
|
|
- obj/ct_timeout: Avoid array overrun in timeout_parse_attr_data() (Phil Sutter) [1758673]
|
|
|
|
|
- set: Don't bypass checks in nftnl_set_set_u{32,64}() (Phil Sutter) [1758673]
|
|
|
|
|
- obj/tunnel: Fix for undefined behaviour (Phil Sutter) [1758673]
|
|
|
|
|
- set_elem: Fix return code of nftnl_set_elem_set() (Phil Sutter) [1758673]
|
|
|
|
|
- obj: ct_timeout: Check return code of mnl_attr_parse_nested() (Phil Sutter) [1758673]
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Oct 04 2019 Phil Sutter <psutter@redhat.com> [1.1.4-1.el8]
|
|
|
|
|
- Rebase to upstream version 1.1.4 (Phil Sutter) [1717129]
|
|
|
|
|
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 1.1.7-2
|
|
|
|
|
- Use make macros
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Phil Sutter <psutter@redhat.com> [1.1.1-4.el8]
|
|
|
|
|
- src: rule: Support NFTA_RULE_POSITION_ID attribute (Phil Sutter) [1670565]
|
|
|
|
|
* Fri Jun 05 2020 Phil Sutter <psutter@redhat.com> - 1.1.7-1
|
|
|
|
|
- Rebase onto upstream version 1.1.7
|
|
|
|
|
|
|
|
|
|
* Tue Jan 29 2019 Phil Sutter <psutter@redhat.com> [1.1.1-3.el8]
|
|
|
|
|
- src: chain: Fix nftnl_chain_rule_insert_at() (Phil Sutter) [1666495]
|
|
|
|
|
- src: chain: Add missing nftnl_chain_rule_del() (Phil Sutter) [1666495]
|
|
|
|
|
- flowtable: Fix for reading garbage (Phil Sutter) [1661327]
|
|
|
|
|
- flowtable: Fix memleak in nftnl_flowtable_parse_devs() (Phil Sutter) [1661327]
|
|
|
|
|
- flowtable: Fix use after free in two spots (Phil Sutter) [1661327]
|
|
|
|
|
- flowtable: Add missing break (Phil Sutter) [1661327]
|
|
|
|
|
- object: Avoid obj_ops array overrun (Phil Sutter) [1661327]
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 17 2018 Phil Sutter <psutter@redhat.com> [1.1.1-2.el8]
|
|
|
|
|
- chain: Hash chain list by name (Phil Sutter) [1658533]
|
|
|
|
|
- chain: Add lookup functions for chain list and rules in chain (Phil Sutter) [1658533]
|
|
|
|
|
- chain: Support per chain rules list (Phil Sutter) [1658533]
|
|
|
|
|
- src: remove nftnl_rule_cmp() and nftnl_expr_cmp() (Phil Sutter) [1658533]
|
|
|
|
|
* Wed Dec 04 2019 Phil Sutter <psutter@redhat.com> - 1.1.5-1
|
|
|
|
|
- Update to 1.1.5. Fixes bug #1778850
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Phil Sutter <psutter@redhat.com> [1.1.1-1.el8]
|
|
|
|
|
- Rebase onto upstream version 1.1.1
|
|
|
|
|
- Sync spec file with RHEL7
|
|
|
|
|
- Disable JSON parsing, deprecated by upstream
|
|
|
|
|
- Make use of builtin testsuite
|
|
|
|
|
* Fri Aug 23 2019 Kevin Fenzi <kevin@scrye.com> - 1.1.4-1
|
|
|
|
|
- Update to 1.1.4. Fixes bug #1743175
|
|
|
|
|
|
|
|
|
|
* Sat Jun 23 2018 Phil Sutter - 1.0.9-3
|
|
|
|
|
- Drop leftover mxml dependency [1594917]
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 16 2019 Kevin Fenzi <kevin@scrye.com> - 1.1.3-1
|
|
|
|
|
- Update to 1.1.3. Fixes bug #1714231
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 20 2018 Kevin Fenzi <kevin@scrye.com> - 1.1.1-5
|
|
|
|
|
- Fix FTBFS bug #1604620
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 25 2018 Phil Sutter <psutter@redhat.com> - 1.1.1-3
|
|
|
|
|
- Disable running tests/test-script.sh again, it breaks builds on big endian.
|
|
|
|
|
|
|
|
|
|
* Thu Jun 14 2018 Phil Sutter <psutter@redhat.com> - 1.1.1-2
|
|
|
|
|
- Drop leftover mxml dependency. Fixes bug #1594107
|
|
|
|
|
- Enable running tests/test-scrip.sh again when checking.
|
|
|
|
|
|
|
|
|
|
* Sat Jun 09 2018 Kevin Fenzi <kevin@scrye.com> - 1.1.1-1
|
|
|
|
|
- Update to 1.1.1. Fixes bug #1589403
|
|
|
|
|
|
|
|
|
|
* Fri May 04 2018 Kevin Fenzi <kevin@scrye.com> - 1.1.0-1
|
|
|
|
|
- Update to 1.1.0. Fixes bug #1574094
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|