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