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