Blame SPECS/libnl3.spec

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