21d214
Name: libnl3
6eeb3a
Version: 3.7.0
eff3bd
Release: 1%{?dist}
21d214
Summary: Convenience library for kernel netlink sockets
21d214
Group: Development/Libraries
21d214
License: LGPLv2
21d214
URL: http://www.infradead.org/~tgr/libnl/
21d214
21d214
%define rcversion %{nil}
21d214
%define fullversion %{version}%{rcversion}
21d214
21d214
Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{fullversion}.tar.gz
21d214
Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{fullversion}.tar.gz
21d214
21d214
#Patch1: some.patch
21d214
6eeb3a
BuildRequires: autoconf
6eeb3a
BuildRequires: automake
6eeb3a
BuildRequires: bison
6eeb3a
BuildRequires: flex
6eeb3a
BuildRequires: libtool
21d214
BuildRequires: swig
21d214
21d214
%if 0%{?rhel} > 7
21d214
# Disable python2 build by default
21d214
%bcond_with python2
21d214
%else
21d214
%bcond_without python2
21d214
%endif
21d214
21d214
%description
21d214
This package contains a convenience library to simplify
21d214
using the Linux kernel's netlink sockets interface for
21d214
network manipulation
21d214
21d214
%package devel
21d214
Summary: Libraries and headers for using libnl3
21d214
Group: Development/Libraries
21d214
Requires: %{name} = %{version}-%{release}
21d214
Requires: %{name}-cli = %{version}-%{release}
21d214
Requires: kernel-headers
21d214
21d214
%description devel
21d214
This package contains various headers for using libnl3
21d214
21d214
%package cli
21d214
Summary: Command line interface utils for libnl3
21d214
Group: Development/Libraries
21d214
Requires: %{name} = %{version}-%{release}
21d214
21d214
%description cli
21d214
This package contains various libnl3 utils and additional
21d214
libraries on which they depend
21d214
21d214
%package doc
21d214
Summary: API documentation for libnl3
21d214
Group: Documentation
21d214
Requires: %{name} = %{version}-%{release}
21d214
21d214
%description doc
21d214
This package contains libnl3 API documentation
21d214
21d214
%if %{with python2}
21d214
%package -n python2-libnl3
21d214
%{?python_provide:%python_provide python2-libnl3}
21d214
Summary: libnl3 binding for Python 2
21d214
BuildRequires: python2-devel
21d214
Group: Development/Libraries
21d214
Requires: %{name} = %{version}-%{release}
21d214
21d214
%description -n python2-libnl3
21d214
Python 2 bindings for libnl3
eff3bd
%endif
21d214
21d214
%package -n python3-libnl3
21d214
Summary: libnl3 binding for Python 3
21d214
%{?python_provide:%python_provide python3-libnl3}
21d214
BuildRequires: python3-devel
21d214
Group: Development/Libraries
21d214
Requires: %{name} = %{version}-%{release}
21d214
21d214
%description -n python3-libnl3
21d214
Python 3 bindings for libnl3
21d214
21d214
%prep
f9f3c9
%autosetup -p1 -n libnl-%{fullversion}
21d214
21d214
tar -xzf %SOURCE1
21d214
21d214
%build
21d214
autoreconf -vif
21d214
%configure --disable-static
21d214
make %{?_smp_mflags}
21d214
21d214
pushd ./python/
21d214
# build twice, otherwise capi.py is not copied to the build directory.
21d214
CFLAGS="$RPM_OPT_FLAGS" %py3_build
21d214
CFLAGS="$RPM_OPT_FLAGS" %py3_build
21d214
21d214
%if %{with python2}
21d214
CFLAGS="$RPM_OPT_FLAGS" %py2_build
21d214
CFLAGS="$RPM_OPT_FLAGS" %py2_build
eff3bd
%endif
21d214
popd
21d214
21d214
%install
21d214
make install DESTDIR=$RPM_BUILD_ROOT
21d214
21d214
find $RPM_BUILD_ROOT -name \*.la -delete
21d214
21d214
pushd ./python/
21d214
%py3_install
21d214
%if %{with python2}
21d214
%py2_install
eff3bd
%endif
21d214
popd
21d214
21d214
%check
21d214
make check
21d214
21d214
pushd ./python/
21d214
%{__python3} setup.py check
21d214
%if %{with python2}
21d214
%{__python2} setup.py check
eff3bd
%endif
21d214
popd
21d214
21d214
%post -p /sbin/ldconfig
21d214
%post cli -p /sbin/ldconfig
21d214
%postun -p /sbin/ldconfig
21d214
%postun cli -p /sbin/ldconfig
21d214
21d214
%files
21d214
%doc COPYING
21d214
%exclude %{_libdir}/libnl-cli*.so.*
21d214
%{_libdir}/libnl-*.so.*
21d214
%config(noreplace) %{_sysconfdir}/*
21d214
21d214
%files devel
21d214
%doc COPYING
21d214
%{_includedir}/libnl3/netlink/
21d214
%dir %{_includedir}/libnl3/
21d214
%{_libdir}/*.so
21d214
%{_libdir}/pkgconfig/*.pc
21d214
21d214
%files cli
21d214
%doc COPYING
21d214
%{_libdir}/libnl-cli*.so.*
21d214
%{_libdir}/libnl/
21d214
%{_bindir}/*
21d214
%{_mandir}/man8/*
21d214
21d214
%files doc
21d214
%doc COPYING
21d214
%doc libnl-doc-%{fullversion}/*.html
21d214
%doc libnl-doc-%{fullversion}/*.css
21d214
%doc libnl-doc-%{fullversion}/stylesheets/*
21d214
%doc libnl-doc-%{fullversion}/images/*
21d214
%doc libnl-doc-%{fullversion}/images/icons/*
21d214
%doc libnl-doc-%{fullversion}/images/icons/callouts/*
21d214
%doc libnl-doc-%{fullversion}/api/*
21d214
21d214
%if %{with python2}
21d214
%files -n python2-libnl3
21d214
%defattr(-,root,root,-)
21d214
%{python2_sitearch}/netlink
21d214
%{python2_sitearch}/netlink-*.egg-info
eff3bd
%endif
21d214
21d214
%files -n python3-libnl3
21d214
%defattr(-,root,root,-)
21d214
%{python3_sitearch}/netlink
21d214
%{python3_sitearch}/netlink-*.egg-info
21d214
21d214
%changelog
6eeb3a
* Wed Jul  6 2022 Thomas Haller <thaller@redhat.com> - 3.7.0-1
6eeb3a
- Update to 3.7.0 (rh #2078874)
6eeb3a
eff3bd
* Tue Nov 26 2019 Thomas Haller <thaller@redhat.com> - 3.5.0-1
eff3bd
- Update to 3.5.0
eff3bd
f9f3c9
* Tue Aug 27 2019 Thomas Haller <thaller@redhat.com> - 3.4.0-5
f9f3c9
- Fix issues found by coverity (rh #1606988)
f9f3c9
21d214
* Fri Mar 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.4.0-4
21d214
- Conditionalize the Python 2 subpackage
21d214
21d214
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-3
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
21d214
21d214
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.4.0-2
21d214
- Update Python 2 dependency declarations to new packaging standards
21d214
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
21d214
21d214
* Mon Oct  9 2017 Thomas Haller <thaller@redhat.com> - 3.4.0-1
21d214
- Update to 3.4.0
21d214
21d214
* Wed Sep 20 2017 Thomas Haller <thaller@redhat.com> - 3.4.0-0.1
21d214
- Update to 3.4.0-rc1
21d214
21d214
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3.0-4
21d214
- Python 2 binary package renamed to python2-libnl3
21d214
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
21d214
21d214
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
21d214
21d214
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
21d214
21d214
* Wed May  3 2017 Thomas Haller <thaller@redhat.com> - 3.3.0-1
21d214
- Update to 3.3.0
21d214
21d214
* Mon Mar  6 2017 Thomas Haller <thaller@redhat.com> - 3.3.0-0.1
21d214
- Update to 3.3.0-rc1
21d214
21d214
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.29-3
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
21d214
21d214
* Wed Jan 18 2017 Thomas Haller <thaller@redhat.com> - 3.2.29-2
21d214
- Update with patches from upstream
21d214
- check valid input arguments for nla_reserve() (rh#1414305, CVE-2017-0386)
21d214
- fix crash during SRIOV parsing
21d214
- lazyly read psched settings
21d214
- use O_CLOEXEC when creating file descriptors with fopen()
21d214
21d214
* Fri Dec 30 2016 Thomas Haller <thaller@redhat.com> - 3.2.29-1
21d214
- Update to 3.2.29
21d214
21d214
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 3.2.29-0.3
21d214
- Rebuild for Python 3.6
21d214
21d214
* Fri Dec 16 2016 Thomas Haller <thaller@redhat.com> - 3.2.29-0.2
21d214
- macsec: fix endianness for MACSec's 'sci' parameter
21d214
21d214
* Mon Dec 12 2016 Thomas Haller <thaller@redhat.com> - 3.2.29-0.1
21d214
- Update to 3.2.29-rc1
21d214
21d214
* Fri Aug 26 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-3
21d214
- route: fix nl_object_identical() comparing AF_INET addresses (rh #1370526)
21d214
21d214
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.28-2
21d214
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
21d214
21d214
* Sat Jul  9 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-1
21d214
- Update to 3.2.28
21d214
21d214
* Thu Jun 30 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-0.1
21d214
- Update to 3.2.28-rc1
21d214
21d214
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.27-3
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
21d214
21d214
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.27-2
21d214
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
21d214
21d214
* Fri Oct 16 2015 Thomas Haller <thaller@redhat.com> - 3.2.27-1
21d214
- Update to 3.2.27
21d214
21d214
* Mon Sep 21 2015 Thomas Haller <thaller@redhat.com> - 3.2.27-0.1
21d214
- Update to 3.2.27-rc1
21d214
21d214
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.26-5
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
21d214
21d214
* Mon Mar 30 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-4
21d214
- Update to 3.2.26
21d214
- cli package brings more commands and installs them to /bin
21d214
21d214
* Mon Mar  9 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-3
21d214
- Update to 3.2.26-rc1
21d214
- fix broken symbols from 3.2.26-1
21d214
- backport upstream fix for nl_socket_set_fd()
21d214
21d214
* Sat Mar  7 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-2
21d214
- Revert update to 3.2.26-rc1 to previous 3.2.25-6
21d214
21d214
* Fri Mar  6 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-1
21d214
- Update to 3.2.26-rc1
21d214
21d214
* Tue Feb  3 2015 Thomas Haller <thaller@redhat.com> - 3.2.25-6
21d214
- add new packages with language bindings for Python 2 and Python 3 (rh #1167112)
21d214
21d214
* Tue Dec  9 2014 Thomas Haller <thaller@redhat.com> - 3.2.25-5
21d214
- Add support for IPv6 link local address generation
21d214
21d214
* Fri Oct 10 2014 Lubomir Rintel <lkundrak@v3.sk> - 3.2.25-4
21d214
- Add support for IPv6 tokenized interface identifiers
21d214
21d214
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.25-3
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
21d214
21d214
* Wed Jul 16 2014 Thomas Haller <thaller@redhat.com> 3.2.25-2
21d214
- Update to 3.2.25
21d214
21d214
* Fri Jul  4 2014 Thomas Haller <thaller@redhat.com> 3.2.25-1
21d214
- Update to 3.2.25-rc1
21d214
21d214
* Sun Jun  8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.24-5
21d214
- Run autoreconf for new automake, cleanup spec
21d214
21d214
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.24-4
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
21d214
21d214
* Thu May 22 2014 Thomas Haller <thaller@redhat.com> - 3.2.24-3
21d214
- add nl_has_capability() function
21d214
- retry local port on ADDRINUSE (rh #1097175)
21d214
- python: fix passing wrong argument in netlink/core.py
21d214
- fix return value of nl_rtgen_request()
21d214
- fix nl_msec2str()
21d214
- fix crash in rtnl_act_msg_parse()
21d214
- fix rtnl_route_build_msg() not to guess the route scope if RT_SCOPE_NOWHERE
21d214
21d214
* Fri Apr  4 2014 Thomas Haller <thaller@redhat.com> - 3.2.24-2
21d214
- fix breaking on older kernels due to IFA_FLAGS attribute (rh #1063885)
21d214
21d214
* Thu Jan 23 2014 Thomas Haller <thaller@redhat.com> - 3.2.24-1
21d214
- Update to 3.2.24 (rhbz#963111)
21d214
21d214
* Mon Sep 23 2013 Paul Wouters <pwouters@redhat.com> - 3.2.22-2
21d214
- Update to 3.2.22 (rhbz#963111)
21d214
- Add patch for double tree crasher in rtnl_link_set_address_family()
21d214
21d214
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.21-2
21d214
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
21d214
21d214
* Fri Jan 25 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.21-1
21d214
- Update to 3.2.21
21d214
21d214
* Wed Jan 23 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.20-1
21d214
- Update to 3.2.20
21d214
21d214
* Sun Jan 20 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.19-2
21d214
- Age fix
21d214
21d214
* Thu Jan 17 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.19-1
21d214
- Update to 3.2.19
21d214
21d214
* Tue Oct 30 2012 Dan Williams <dcbw@redhat.com> - 3.2.14-1
21d214
- Update to 3.2.14
21d214
21d214
* Mon Sep 17 2012 Dan Williams <dcbw@redhat.com> - 3.2.13-1
21d214
- Update to 3.2.13
21d214
21d214
* Fri Feb 10 2012 Dan Williams <dcbw@redhat.com> - 3.2.7-1
21d214
- Update to 3.2.7
21d214
21d214
* Tue Jan 17 2012 Jiri Pirko <jpirko@redhat.com> - 3.2.6-1
21d214
- Initial build