|
|
49dbe1 |
Summary: Convenience library for kernel netlink sockets
|
|
|
49dbe1 |
Group: Development/Libraries
|
|
|
49dbe1 |
License: LGPLv2
|
|
|
49dbe1 |
Name: libnl3
|
|
|
49dbe1 |
Version: 3.2.21
|
|
|
e3ad84 |
Release: 10%{?dist}
|
|
|
49dbe1 |
URL: http://www.infradead.org/~tgr/libnl/
|
|
|
49dbe1 |
Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{version}.tar.gz
|
|
|
49dbe1 |
Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{version}.tar.gz
|
|
|
49dbe1 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
49dbe1 |
BuildRequires: flex bison
|
|
|
49dbe1 |
BuildRequires: python
|
|
|
6f6f40 |
BuildRequires: autoconf
|
|
|
6f6f40 |
BuildRequires: automake
|
|
|
6f6f40 |
BuildRequires: libtool
|
|
|
4c8f2e |
Patch0: rh1057024_ifa_flags_1.patch
|
|
|
4c8f2e |
Patch1: rh1057024_ifa_flags_2.patch
|
|
|
4c8f2e |
Patch2: rh1057024_ifa_flags_3.patch
|
|
|
4c8f2e |
Patch3: rh1040626-nl-Increase-receive-buffer-size-to-4-pages.patch
|
|
|
4c8f2e |
Patch4: 0004-add-nl_has_capability.patch
|
|
|
4c8f2e |
Patch5: 0005-rtnl_route_build_msg-set-scope.patch
|
|
|
4c8f2e |
Patch6: 0006-nl_msec2str-fix.patch
|
|
|
4c8f2e |
Patch7: 0007-relax-parsing-protinfo.patch
|
|
|
6f6f40 |
Patch8: 0008-rh1127718-inet6_addr_gen.patch
|
|
|
6f6f40 |
Patch9: 0009-rh1181255-EAGAIN.patch
|
|
|
50bdc6 |
Patch10: 0010-rh1249158-local-port-EADDRINUSE.patch
|
|
|
e3ad84 |
Patch11: 0011-support-IFLA_LINK_NETNSID-rh1255050.patch
|
|
|
e3ad84 |
Patch12: 0012-rh1261028-rtnl-neigh-get.patch
|
|
|
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
|
|
|
49dbe1 |
%setup -q -n libnl-%{version}
|
|
|
4c8f2e |
%patch0 -p1 -b .0000-rh1057024_ifa_flags_1.orig
|
|
|
4c8f2e |
%patch1 -p1 -b .0001-rh1057024_ifa_flags_2.orig
|
|
|
4c8f2e |
%patch2 -p1 -b .0002-rh1057024_ifa_flags_3.orig
|
|
|
4c8f2e |
%patch3 -p1 -b .0003-rh1040626.orig
|
|
|
4c8f2e |
%patch4 -p1 -b .0004-add-nl_has_capability.orig
|
|
|
4c8f2e |
%patch5 -p1 -b .0005-rtnl_route_build_msg-set-scope.orig
|
|
|
4c8f2e |
%patch6 -p1 -b .0006-nl_msec2str-fix.orig
|
|
|
4c8f2e |
%patch7 -p1 -b .0007-relax-parsing-protinfo.orig
|
|
|
6f6f40 |
%patch8 -p1 -b .0008-rh1127718-inet6_addr_gen.orig
|
|
|
6f6f40 |
%patch9 -p1 -b .0009-rh1181255-EAGAIN.orig
|
|
|
e3ad84 |
%patch10 -p1 -b .0010-rh1249158-local-port-EADDRINUSE.orig
|
|
|
e3ad84 |
%patch11 -p1
|
|
|
e3ad84 |
%patch12 -p1
|
|
|
49dbe1 |
|
|
|
49dbe1 |
tar -xzf %SOURCE1
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%build
|
|
|
6f6f40 |
autoreconf -i --force
|
|
|
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 |
|
|
|
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 |
%defattr(-,root,root,-)
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%exclude %{_libdir}/libnl-cli*.so.*
|
|
|
49dbe1 |
%{_libdir}/libnl-*.so.*
|
|
|
49dbe1 |
%config(noreplace) %{_sysconfdir}/*
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files devel
|
|
|
49dbe1 |
%defattr(-,root,root,-)
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%{_includedir}/libnl3/netlink/
|
|
|
49dbe1 |
%dir %{_includedir}/libnl3/
|
|
|
49dbe1 |
%{_libdir}/*.so
|
|
|
49dbe1 |
%{_libdir}/pkgconfig/*.pc
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files cli
|
|
|
49dbe1 |
%defattr(-,root,root,-)
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%{_libdir}/libnl-cli*.so.*
|
|
|
49dbe1 |
%{_libdir}/libnl/
|
|
|
49dbe1 |
%{_sbindir}/*
|
|
|
49dbe1 |
%{_mandir}/man8/*
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%files doc
|
|
|
49dbe1 |
%defattr(-,root,root,-)
|
|
|
49dbe1 |
%doc COPYING
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/*.html
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/*.css
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/stylesheets/*
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/images/*
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/images/icons/*
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/images/icons/callouts/*
|
|
|
49dbe1 |
%doc libnl-doc-%{version}/api/*
|
|
|
49dbe1 |
|
|
|
49dbe1 |
%changelog
|
|
|
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
|