Blame SPECS/libnftnl.spec

4ab0eb
%define rpmversion 1.0.8
4ab0eb
%define specrelease 1%{?dist}
4ab0eb
4ab0eb
Name:           libnftnl
4ab0eb
Version:        %{rpmversion}
4ab0eb
Release:        %{specrelease}%{?buildid}
4ab0eb
Summary:        Library for low-level interaction with nftables Netlink's API over libmnl
4ab0eb
License:        GPLv2+
4ab0eb
URL:            http://netfilter.org/projects/libnftnl/
4ab0eb
Source0:        http://ftp.netfilter.org/pub/libnftnl/libnftnl-%{version}.tar.bz2
4ab0eb
BuildRequires:  autoconf
4ab0eb
BuildRequires:  automake
4ab0eb
BuildRequires:  libtool
4ab0eb
BuildRequires:  libmnl-devel
4ab0eb
#BuildRequires:  mxml-devel
4ab0eb
BuildRequires:  jansson-devel
4ab0eb
4ab0eb
%description
4ab0eb
A library for low-level interaction with nftables Netlink's API over libmnl.
4ab0eb
4ab0eb
%package        devel
4ab0eb
Summary:        Development files for %{name}
4ab0eb
Requires:       %{name}%{_isa} = %{version}-%{release}
4ab0eb
%description    devel
4ab0eb
The %{name}-devel package contains libraries and header files for
4ab0eb
developing applications that use %{name}.
4ab0eb
4ab0eb
%prep
4ab0eb
%autosetup -p1
4ab0eb
4ab0eb
%build
4ab0eb
# This is what autogen.sh (only in git repo) does - without it, patches changing
4ab0eb
# Makefile.am cause the build system to regenerate Makefile.in and trying to use
4ab0eb
# automake-1.14 for that which is not available in RHEL.
4ab0eb
autoreconf -fi
4ab0eb
rm -rf autom4te*.cache
4ab0eb
4ab0eb
%configure --disable-static --disable-silent-rules \
4ab0eb
           --with-json-parsing --without-xml-parsing
4ab0eb
make %{?_smp_mflags}
4ab0eb
4ab0eb
%check
4ab0eb
make %{?_smp_mflags} check
4ab0eb
4ab0eb
%install
4ab0eb
%make_install
4ab0eb
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4ab0eb
4ab0eb
%post -p /sbin/ldconfig
4ab0eb
4ab0eb
%postun -p /sbin/ldconfig
4ab0eb
4ab0eb
%files
4ab0eb
%doc COPYING
4ab0eb
%{_libdir}/*.so.*
4ab0eb
4ab0eb
%files devel
4ab0eb
%{_libdir}/libnft*.so
4ab0eb
%{_libdir}/pkgconfig/libnftnl.pc
4ab0eb
%{_includedir}/libnftnl
4ab0eb
4ab0eb
%changelog
4ab0eb
* Fri Oct 13 2017 Phil Sutter <psutter@redhat.com> [1.0.8-1.el7]
4ab0eb
- Rebase onto upstream version 1.0.8 (Phil Sutter) [1472260]
4ab0eb
4ab0eb
* Tue May 16 2017 Phil Sutter <psutter@redhat.com> [1.0.6-6.el7]
4ab0eb
- chain: dynamically allocate name (Phil Sutter) [1353320]
4ab0eb
- src: Avoid returning uninitialized data (Phil Sutter) [1353319]
4ab0eb
- expr/limit: Drop unreachable code in limit_to_type() (Phil Sutter) [1353312]
4ab0eb
- ruleset: Initialize ctx.flags before calling nftnl_ruleset_ctx_set() (Phil Sutter) [1353322]
4ab0eb
- src: Fix nftnl_*_get_data() to return the real attribute length (Phil Sutter) [1353322]
4ab0eb
- expr/ct: prevent array index overrun in ctkey2str() (Phil Sutter) [1353309]
4ab0eb
- utils: Don't return directly from SNPRINTF_BUFFER_SIZE (Phil Sutter) [1353311]
4ab0eb
- set: prevent memleak in nftnl_jansson_parse_set_info() (Phil Sutter) [1353311]
4ab0eb
4ab0eb
* Fri May 12 2017 Phil Sutter <psutter@redhat.com> [1.0.6-5.el7]
4ab0eb
- expr: lookup: give support for inverted matching (Phil Sutter) [1441084]
4ab0eb
- tests: stricter string attribute validation (Phil Sutter) [1441084]
4ab0eb
4ab0eb
* Thu Feb 23 2017 Phil Sutter <psutter@redhat.com> [1.0.6-4.el7]
4ab0eb
- Add automake and libtool as additional build requirements (Phil Sutter) [1418967]
4ab0eb
4ab0eb
* Thu Feb 23 2017 Phil Sutter <psutter@redhat.com> [1.0.6-3.el7]
4ab0eb
- Fix libnftnl.spec for patches changing Makefile.am (Phil Sutter) [1418967]
4ab0eb
4ab0eb
* Thu Feb 23 2017 Phil Sutter <psutter@redhat.com> [1.0.6-2.el7]
4ab0eb
- src: add range expression (Phil Sutter) [1418967]
4ab0eb
4ab0eb
* Wed Jun 29 2016 Phil Sutter <psutter@redhat.com> 1.0.6-1
4ab0eb
- Rebased from Fedora Rawhide and adjusted for RHEL review.