Blame SPECS/libnl3.spec

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