|
|
d226fa |
Name: libnl3
|
|
|
d226fa |
Version: 3.2.28
|
|
|
26dba0 |
Release: 4%{?dist}
|
|
|
49dbe1 |
Summary: Convenience library for kernel netlink sockets
|
|
|
49dbe1 |
Group: Development/Libraries
|
|
|
49dbe1 |
License: LGPLv2
|
|
|
49dbe1 |
URL: http://www.infradead.org/~tgr/libnl/
|
|
|
d226fa |
|
|
|
d226fa |
%define fullversion %{version}
|
|
|
d226fa |
|
|
|
d226fa |
Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{fullversion}.tar.gz
|
|
|
d226fa |
Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{fullversion}.tar.gz
|
|
|
d226fa |
|
|
|
d226fa |
Patch1: 0001-compare-v4-addr-rh1370503.patch
|
|
|
2bd770 |
Patch2: 0002-msg-peek-by-default-rh1396882.patch
|
|
|
26dba0 |
Patch3: 0003-nl-reserve-integer-overflow-rh1442723.patch
|
|
|
d226fa |
|
|
|
49dbe1 |
BuildRequires: flex bison
|
|
|
49dbe1 |
BuildRequires: python
|
|
|
d226fa |
BuildRequires: libtool autoconf automake
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%description
|
|
|
49dbe1 |
This package contains a convenience library to simplify
|
|
|
49dbe1 |
using the Linux kernel's netlink sockets interface for
|
|
|
49dbe1 |
network manipulation
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%package devel
|
|
|
49dbe1 |
Summary: Libraries and headers for using libnl3
|
|
|
49dbe1 |
Group: Development/Libraries
|
|
|
49dbe1 |
Requires: %{name} = %{version}-%{release}
|
|
|
49dbe1 |
Requires: %{name}-cli = %{version}-%{release}
|
|
|
49dbe1 |
Requires: kernel-headers
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%description devel
|
|
|
49dbe1 |
This package contains various headers for using libnl3
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%package cli
|
|
|
49dbe1 |
Summary: Command line interface utils for libnl3
|
|
|
49dbe1 |
Group: Development/Libraries
|
|
|
49dbe1 |
Requires: %{name} = %{version}-%{release}
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%description cli
|
|
|
49dbe1 |
This package contains various libnl3 utils and additional
|
|
|
49dbe1 |
libraries on which they depend
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%package doc
|
|
|
49dbe1 |
Summary: API documentation for libnl3
|
|
|
49dbe1 |
Group: Documentation
|
|
|
49dbe1 |
Requires: %{name} = %{version}-%{release}
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%description doc
|
|
|
49dbe1 |
This package contains libnl3 API documentation
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%prep
|
|
|
d226fa |
%setup -q -n libnl-%{fullversion}
|
|
|
d226fa |
%patch1 -p1
|
|
|
2bd770 |
%patch2 -p1
|
|
|
26dba0 |
%patch3 -p1
|
|
|
49dbe1 |
|
|
|
49dbe1 |
tar -xzf %SOURCE1
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%build
|
|
|
d226fa |
autoreconf -vif
|
|
|
49dbe1 |
%configure --disable-static
|
|
|
49dbe1 |
make %{?_smp_mflags}
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%install
|
|
|
49dbe1 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
49dbe1 |
|
|
|
49dbe1 |
find $RPM_BUILD_ROOT -name \*.la -delete
|
|
|
49dbe1 |
|
|
|
d226fa |
# rhel-7.2 installed some cli tools to /usr/sbin. Recent libnl3 releases prefer to
|
|
|
d226fa |
# install *all* cli tools bo /usr/bin. Also do that for rhel-7.3 but hardlink the
|
|
|
d226fa |
# previous locations in /usr/sbin.
|
|
|
d226fa |
mkdir -p "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/genl-ctrl-list" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-class-add" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-class-delete" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-classid-lookup" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-class-list" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-cls-add" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-cls-delete" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-cls-list" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-link-list" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-pktloc-lookup" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-qdisc-add" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-qdisc-delete" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
ln "%{buildroot}%{_bindir}/nl-qdisc-list" "%{buildroot}%{_sbindir}/"
|
|
|
d226fa |
|
|
|
d226fa |
%check
|
|
|
d226fa |
make check
|
|
|
d226fa |
|
|
|
49dbe1 |
%post -p /sbin/ldconfig
|
|
|
49dbe1 |
%post cli -p /sbin/ldconfig
|
|
|
49dbe1 |
%postun -p /sbin/ldconfig
|
|
|
49dbe1 |
%postun cli -p /sbin/ldconfig
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%exclude %{_libdir}/libnl-cli*.so.*
|
|
|
49dbe1 |
%{_libdir}/libnl-*.so.*
|
|
|
49dbe1 |
%config(noreplace) %{_sysconfdir}/*
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files devel
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%{_includedir}/libnl3/netlink/
|
|
|
49dbe1 |
%dir %{_includedir}/libnl3/
|
|
|
49dbe1 |
%{_libdir}/*.so
|
|
|
49dbe1 |
%{_libdir}/pkgconfig/*.pc
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files cli
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%{_libdir}/libnl-cli*.so.*
|
|
|
49dbe1 |
%{_libdir}/libnl/
|
|
|
49dbe1 |
%{_sbindir}/*
|
|
|
d226fa |
%{_bindir}/*
|
|
|
d226fa |
%{_mandir}/man8/*
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files doc
|
|
|
49dbe1 |
%doc COPYING
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/*.html
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/*.css
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/stylesheets/*
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/images/*
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/images/icons/*
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/images/icons/callouts/*
|
|
|
d226fa |
%doc libnl-doc-%{fullversion}/api/*
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%changelog
|
|
|
26dba0 |
* Tue Apr 18 2017 Thomas Haller <thaller@redhat.com> - 3.2.28-4
|
|
|
26dba0 |
* lib: check for integer overflow in nl_reserve() (rh#1440788, rh#1442723)
|
|
|
26dba0 |
|
|
|
2bd770 |
* Mon Jan 9 2017 Thomas Haller <thaller@redhat.com> - 3.2.28-3
|
|
|
2bd770 |
- lib: use MSG_PEEK by default for nl_msgrecvs() (rh#1396882)
|
|
|
2bd770 |
|
|
|
d226fa |
* Fri Aug 26 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-2
|
|
|
d226fa |
- route: fix nl_object_identical() comparing AF_INET addresses (rh #1370503)
|
|
|
d226fa |
|
|
|
d226fa |
* Sat Jul 9 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-1
|
|
|
d226fa |
- update to latest upstream release 3.2.28 (rh #1296058)
|
|
|
d226fa |
|
|
|
d226fa |
* Thu Jun 30 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-0.1
|
|
|
d226fa |
- update to latest upstream release 3.2.28-rc1 (rh #1296058)
|
|
|
d226fa |
|
|
|
d226fa |
* Fri Jan 8 2016 Thomas Haller <thaller@redhat.com> - 3.2.27-1
|
|
|
d226fa |
- rebase package to upstream version 3.2.27 (rh #1296058)
|
|
|
d226fa |
|
|
|
e3ad84 |
* Wed Sep 30 2015 Thomas Haller <thaller@redhat.com> - 3.2.21-10
|
|
|
e3ad84 |
- rtnl: fix lookup in rtnl_neigh_get() to ignore address family (rh #1261028)
|
|
|
e3ad84 |
|
|
|
e3ad84 |
* Mon Aug 24 2015 Thomas Haller <thaller@redhat.com> - 3.2.21-9
|
|
|
e3ad84 |
- improve local port handling for netlink socket with EADDRINUSE (rh #1249158)
|
|
|
e3ad84 |
- rtnl: backport support for link-netnsid attribute (rh #1255050)
|
|
|
50bdc6 |
|
|
|
6f6f40 |
* Mon Jan 12 2015 Lubomir Rintel <lrintel@redhat.com> - 3.2.21-8
|
|
|
6f6f40 |
- properly propagate EAGAIN error status (rh #1181255)
|
|
|
6f6f40 |
|
|
|
6f6f40 |
* Wed Aug 20 2014 Thomas Haller <thaller@redhat.com> - 3.2.21-7
|
|
|
6f6f40 |
- backport support for IPv6 link local address generation mode (rh #1127718)
|
|
|
6f6f40 |
|
|
|
4c8f2e |
* Fri Mar 21 2014 Thomas Haller <thaller@redhat.com> - 3.2.21-6
|
|
|
4c8f2e |
- fix rtnl_link_get_stat() for IPSTATS_MIB_* after kernel API breakage
|
|
|
4c8f2e |
- fix parsing IFLA_PROTINFO which broke on older kernels (rh #1062533)
|
|
|
4c8f2e |
- fix printing in nl_msec2str for whole seconds
|
|
|
4c8f2e |
- don't reset route scope in rtnl_route_build_msg if set to RT_SCOPE_NOWHERE
|
|
|
4c8f2e |
- backport nl_has_capability function
|
|
|
4c8f2e |
|
|
|
4c8f2e |
* Wed Feb 26 2014 Thomas Graf <tgraf@redhat.com> - 3.2.21-5
|
|
|
4c8f2e |
- nl-Increase-receive-buffer-size-to-4-pages.patch (rh #1040626)
|
|
|
4c8f2e |
|
|
|
4c8f2e |
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 3.2.21-4
|
|
|
4c8f2e |
- Mass rebuild 2014-01-24
|
|
|
4c8f2e |
|
|
|
4c8f2e |
* Fri Jan 24 2014 Thomas Haller <thaller@redhat.com> - 3.2.21-3
|
|
|
4c8f2e |
- Backport extended IPv6 address flags (rh #1057024)
|
|
|
4c8f2e |
|
|
|
4c8f2e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.2.21-2
|
|
|
4c8f2e |
- Mass rebuild 2013-12-27
|
|
|
4c8f2e |
|
|
|
49dbe1 |
* Fri Jan 25 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.21-1
|
|
|
49dbe1 |
- Update to 3.2.21
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Wed Jan 23 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.20-1
|
|
|
49dbe1 |
- Update to 3.2.20
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Sun Jan 20 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.19-2
|
|
|
49dbe1 |
- Age fix
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Thu Jan 17 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.19-1
|
|
|
49dbe1 |
- Update to 3.2.19
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Tue Oct 30 2012 Dan Williams <dcbw@redhat.com> - 3.2.14-1
|
|
|
49dbe1 |
- Update to 3.2.14
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Mon Sep 17 2012 Dan Williams <dcbw@redhat.com> - 3.2.13-1
|
|
|
49dbe1 |
- Update to 3.2.13
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Fri Feb 10 2012 Dan Williams <dcbw@redhat.com> - 3.2.7-1
|
|
|
49dbe1 |
- Update to 3.2.7
|
|
|
49dbe1 |
|
|
|
49dbe1 |
* Tue Jan 17 2012 Jiri Pirko <jpirko@redhat.com> - 3.2.6-1
|
|
|
49dbe1 |
- Initial build
|