Blame SPECS/libnftnl.spec

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