763a55
%define rpmversion 1.1.5
b95e04
%define specrelease 5
ef9e95
ef9e95
Name:           libnftnl
ef9e95
Version:        %{rpmversion}
b95e04
Release:        %{specrelease}%{?dist}
ef9e95
Summary:        Library for low-level interaction with nftables Netlink's API over libmnl
ef9e95
License:        GPLv2+
ef9e95
URL:            http://netfilter.org/projects/libnftnl/
ef9e95
Source0:        http://ftp.netfilter.org/pub/libnftnl/libnftnl-%{version}.tar.bz2
ef9e95
BuildRequires:  autoconf
ef9e95
BuildRequires:  automake
ef9e95
BuildRequires:  libtool
ef9e95
BuildRequires:  libmnl-devel
763a55
Patch0:             0001-tests-flowtable-Don-t-check-NFTNL_FLOWTABLE_SIZE.patch
763a55
Patch1:             0002-flowtable-Fix-memleak-in-error-path-of-nftnl_flowtab.patch
763a55
Patch2:             0003-chain-Fix-memleak-in-error-path-of-nftnl_chain_parse.patch
763a55
Patch3:             0004-flowtable-Correctly-check-realloc-call.patch
763a55
Patch4:             0005-chain-Correctly-check-realloc-call.patch
763a55
Patch5:             0006-include-resync-nf_tables.h-cache-copy.patch
763a55
Patch6:             0007-set-Add-support-for-NFTA_SET_DESC_CONCAT-attributes.patch
763a55
Patch7:             0008-set_elem-Introduce-support-for-NFTNL_SET_ELEM_KEY_EN.patch
763a55
Patch8:             0009-src-Fix-for-reading-garbage-in-nftnl_chain-getters.patch
b95e04
Patch9:             0010-set_elem-missing-set-and-build-for-NFTNL_SET_ELEM_EX.patch
b95e04
Patch10:            0011-expr-dynset-release-stateful-expression-from-.free-p.patch
b95e04
Patch11:            0012-set-expose-nftnl_set_elem_nlmsg_build.patch
ef9e95
ef9e95
%description
ef9e95
A library for low-level interaction with nftables Netlink's API over libmnl.
ef9e95
ef9e95
%package        devel
ef9e95
Summary:        Development files for %{name}
ef9e95
Requires:       %{name}%{_isa} = %{version}-%{release}
ef9e95
ef9e95
%description    devel
ef9e95
The %{name}-devel package contains libraries and header files for
ef9e95
developing applications that use %{name}.
ef9e95
ef9e95
%prep
ef9e95
%autosetup -p1
ef9e95
ef9e95
%build
ef9e95
# This is what autogen.sh (only in git repo) does - without it, patches changing
ef9e95
# Makefile.am cause the build system to regenerate Makefile.in and trying to use
ef9e95
# automake-1.14 for that which is not available in RHEL.
ef9e95
autoreconf -fi
ef9e95
rm -rf autom4te*.cache
ef9e95
ef9e95
%configure --disable-static --disable-silent-rules
ef9e95
make %{?_smp_mflags}
ef9e95
ef9e95
%check
ef9e95
make %{?_smp_mflags} check
ef9e95
ef9e95
%install
ef9e95
%make_install
ef9e95
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
ef9e95
ef9e95
%post -p /sbin/ldconfig
ef9e95
ef9e95
%postun -p /sbin/ldconfig
ef9e95
ef9e95
%files
ef9e95
%doc COPYING
ef9e95
%{_libdir}/*.so.*
ef9e95
ef9e95
%files devel
ef9e95
%{_libdir}/libnft*.so
ef9e95
%{_libdir}/pkgconfig/libnftnl.pc
ef9e95
%{_includedir}/libnftnl
ef9e95
ef9e95
%changelog
b95e04
* Fri Jan 21 2022 Phil Sutter <psutter@redhat.com> [1.1.5-5.el8]
b95e04
- set: expose nftnl_set_elem_nlmsg_build() (Phil Sutter) [2040754]
b95e04
- expr: dynset: release stateful expression from .free path (Phil Sutter) [2040478]
b95e04
- set_elem: missing set and build for NFTNL_SET_ELEM_EXPR (Phil Sutter) [2040478]
b95e04
763a55
* Wed Feb 19 2020 Phil Sutter <psutter@redhat.com> [1.1.5-4.el8]
763a55
- src: Fix for reading garbage in nftnl_chain getters (Phil Sutter) [1758673]
763a55
763a55
* Fri Feb 14 2020 Phil Sutter <psutter@redhat.com> [1.1.5-3.el8]
763a55
- set_elem: Introduce support for NFTNL_SET_ELEM_KEY_END (Phil Sutter) [1795223]
763a55
- set: Add support for NFTA_SET_DESC_CONCAT attributes (Phil Sutter) [1795223]
763a55
- include: resync nf_tables.h cache copy (Phil Sutter) [1795223]
763a55
763a55
* Fri Dec 06 2019 Phil Sutter <psutter@redhat.com> [1.1.5-2.el8]
763a55
- chain: Correctly check realloc() call (Phil Sutter) [1778952]
763a55
- flowtable: Correctly check realloc() call (Phil Sutter) [1778952]
763a55
- chain: Fix memleak in error path of nftnl_chain_parse_devs() (Phil Sutter) [1778952]
763a55
- flowtable: Fix memleak in error path of nftnl_flowtable_parse_devs() (Phil Sutter) [1778952]
763a55
763a55
* Mon Dec 02 2019 Phil Sutter <psutter@redhat.com> [1.1.5-1.el8]
763a55
- Rebase onto upstream version 1.1.5 (Phil Sutter) [1717129]
763a55
763a55
* Thu Oct 24 2019 Phil Sutter <psutter@redhat.com> [1.1.4-3.el8]
763a55
- set: Export nftnl_set_list_lookup_byname() (Phil Sutter) [1762563]
763a55
763a55
* Thu Oct 17 2019 Phil Sutter <psutter@redhat.com> [1.1.4-2.el8]
763a55
- obj/ct_timeout: Fix NFTA_CT_TIMEOUT_DATA parser (Phil Sutter) [1758673]
763a55
- set_elem: Validate nftnl_set_elem_set() parameters (Phil Sutter) [1758673]
763a55
- obj/ct_timeout: Avoid array overrun in timeout_parse_attr_data() (Phil Sutter) [1758673]
763a55
- set: Don't bypass checks in nftnl_set_set_u{32,64}() (Phil Sutter) [1758673]
763a55
- obj/tunnel: Fix for undefined behaviour (Phil Sutter) [1758673]
763a55
- set_elem: Fix return code of nftnl_set_elem_set() (Phil Sutter) [1758673]
763a55
- obj: ct_timeout: Check return code of mnl_attr_parse_nested() (Phil Sutter) [1758673]
763a55
763a55
* Fri Oct 04 2019 Phil Sutter <psutter@redhat.com> [1.1.4-1.el8]
763a55
- Rebase to upstream version 1.1.4 (Phil Sutter) [1717129]
763a55
ef9e95
* Thu Jan 31 2019 Phil Sutter <psutter@redhat.com> [1.1.1-4.el8]
ef9e95
- src: rule: Support NFTA_RULE_POSITION_ID attribute (Phil Sutter) [1670565]
ef9e95
ef9e95
* Tue Jan 29 2019 Phil Sutter <psutter@redhat.com> [1.1.1-3.el8]
ef9e95
- src: chain: Fix nftnl_chain_rule_insert_at() (Phil Sutter) [1666495]
ef9e95
- src: chain: Add missing nftnl_chain_rule_del() (Phil Sutter) [1666495]
ef9e95
- flowtable: Fix for reading garbage (Phil Sutter) [1661327]
ef9e95
- flowtable: Fix memleak in nftnl_flowtable_parse_devs() (Phil Sutter) [1661327]
ef9e95
- flowtable: Fix use after free in two spots (Phil Sutter) [1661327]
ef9e95
- flowtable: Add missing break (Phil Sutter) [1661327]
ef9e95
- object: Avoid obj_ops array overrun (Phil Sutter) [1661327]
ef9e95
ef9e95
* Mon Dec 17 2018 Phil Sutter <psutter@redhat.com> [1.1.1-2.el8]
ef9e95
- chain: Hash chain list by name (Phil Sutter) [1658533]
ef9e95
- chain: Add lookup functions for chain list and rules in chain (Phil Sutter) [1658533]
ef9e95
- chain: Support per chain rules list (Phil Sutter) [1658533]
ef9e95
- src: remove nftnl_rule_cmp() and nftnl_expr_cmp() (Phil Sutter) [1658533]
ef9e95
ef9e95
* Thu Jul 12 2018 Phil Sutter <psutter@redhat.com> [1.1.1-1.el8]
ef9e95
- Rebase onto upstream version 1.1.1
ef9e95
- Sync spec file with RHEL7
ef9e95
- Disable JSON parsing, deprecated by upstream
ef9e95
- Make use of builtin testsuite
ef9e95
ef9e95
* Sat Jun 23 2018 Phil Sutter - 1.0.9-3
ef9e95
- Drop leftover mxml dependency [1594917]
ef9e95
ef9e95
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-2
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ef9e95
ef9e95
* Mon Jan 08 2018 Kevin Fenzi <kevin@scrye.com> - 1.0.9-1
ef9e95
- Update to 1.0.9. Fixes bug #1531004
ef9e95
ef9e95
* Sat Oct 21 2017 Kevin Fenzi <kevin@scrye.com> - 1.0.8-4
ef9e95
- Update to 1.0.8. Fixes bug #1504350
ef9e95
ef9e95
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-4
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ef9e95
ef9e95
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-3
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ef9e95
ef9e95
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-2
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ef9e95
ef9e95
* Thu Dec 22 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.7-1
ef9e95
- Update to 1.0.7. Fixes bug #1406201
ef9e95
ef9e95
* Wed Jun 01 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.6-1
ef9e95
- Update to 1.0.6. Fixes bug #1341384
ef9e95
ef9e95
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ef9e95
ef9e95
* Thu Sep 17 2015 Kevin Fenzi <kevin@scrye.com> 1.0.5-1
ef9e95
- Update to 1.0.5. Fixes bug #1263684
ef9e95
ef9e95
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ef9e95
ef9e95
* Fri Dec 26 2014 Kevin Fenzi <kevin@scrye.com> 1.0.3-1
ef9e95
- Update to final 1.0.3
ef9e95
ef9e95
* Wed Sep 03 2014 Kevin Fenzi <kevin@scrye.com> 1.0.3-0.1.20140903git
ef9e95
- Update to 20140903 git snapshot
ef9e95
ef9e95
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ef9e95
ef9e95
* Wed Jun 25 2014 Kevin Fenzi <kevin@scrye.com> 1.0.2-1
ef9e95
- Update to 1.0.2
ef9e95
ef9e95
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
ef9e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ef9e95
ef9e95
* Thu Apr 24 2014 Kevin Fenzi <kevin@scrye.com> 1.0.1-1.
ef9e95
- Update to 1.0.1
ef9e95
ef9e95
* Sun Mar 30 2014 Kevin Fenzi <kevin@scrye.com> 1.0.0-1.20140330git
ef9e95
- Update to 20140330 snapshot
ef9e95
- Sync version to be a post 1.0.0 snapshot
ef9e95
ef9e95
* Wed Mar 26 2014 Kevin Fenzi <kevin@scrye.com> 0-0.10.20140326git
ef9e95
- Update to 20140326 snapshot
ef9e95
ef9e95
* Fri Mar 07 2014 Kevin Fenzi <kevin@scrye.com> 0-0.9.20140307git
ef9e95
- Update to 20140307 snapshot
ef9e95
ef9e95
* Sat Jan 25 2014 Kevin Fenzi <kevin@scrye.com> 0-0.8.20140125git
ef9e95
- Update to 20140125
ef9e95
ef9e95
* Thu Jan 23 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140122git
ef9e95
- Add obsoletes/provides to devel subpackage as well. 
ef9e95
ef9e95
* Wed Jan 22 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140122git
ef9e95
- Renamed libnftnl
ef9e95
- Update to 20140122 snapshot.
ef9e95
ef9e95
* Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140118git
ef9e95
- Update to 20140118 snapshot.
ef9e95
ef9e95
* Sat Jan 11 2014 Kevin Fenzi <kevin@scrye.com> 0-0.4.20140111git
ef9e95
- Update to 20140111 snapshot. 
ef9e95
- Enable xml (some tests stll fail, but it otherwise builds ok)
ef9e95
ef9e95
* Mon Dec 02 2013 Kevin Fenzi <kevin@scrye.com> 0-0.3.20131202git
ef9e95
- Update to 20131202 snapshot, switch to upstream snapshot repo instead of git checkouts. 
ef9e95
ef9e95
* Mon Dec 02 2013 Kevin Fenzi <kevin@scrye.com> 0-0.2
ef9e95
- Fixes from review. 
ef9e95
ef9e95
* Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1
ef9e95
- initial version for Fedora review