Blame SPECS/libnl3.spec

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