Subpackage python2-libnl3 has been removed
This commit is contained in:
parent
59d74cff7b
commit
6f70e3bed9
47
libnl3.spec
47
libnl3.spec
@ -1,6 +1,6 @@
|
|||||||
Name: libnl3
|
Name: libnl3
|
||||||
Version: 3.4.0
|
Version: 3.4.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Convenience library for kernel netlink sockets
|
Summary: Convenience library for kernel netlink sockets
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
@ -14,17 +14,13 @@ Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{fullversion}.tar.
|
|||||||
|
|
||||||
#Patch1: some.patch
|
#Patch1: some.patch
|
||||||
|
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex
|
||||||
BuildRequires: libtool autoconf automake
|
BuildRequires: bison
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
|
|
||||||
%if 0%{?rhel} > 7
|
|
||||||
# Disable python2 build by default
|
|
||||||
%bcond_with python2
|
|
||||||
%else
|
|
||||||
%bcond_without python2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a convenience library to simplify
|
This package contains a convenience library to simplify
|
||||||
using the Linux kernel's netlink sockets interface for
|
using the Linux kernel's netlink sockets interface for
|
||||||
@ -57,17 +53,6 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description doc
|
%description doc
|
||||||
This package contains libnl3 API documentation
|
This package contains libnl3 API documentation
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-libnl3
|
|
||||||
%{?python_provide:%python_provide python2-libnl3}
|
|
||||||
Summary: libnl3 binding for Python 2
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-libnl3
|
|
||||||
Python 2 bindings for libnl3
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
%package -n python3-libnl3
|
%package -n python3-libnl3
|
||||||
Summary: libnl3 binding for Python 3
|
Summary: libnl3 binding for Python 3
|
||||||
@ -95,11 +80,6 @@ pushd ./python/
|
|||||||
# build twice, otherwise capi.py is not copied to the build directory.
|
# build twice, otherwise capi.py is not copied to the build directory.
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py2_build
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py2_build
|
|
||||||
%endif # with python2
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -109,9 +89,6 @@ find $RPM_BUILD_ROOT -name \*.la -delete
|
|||||||
|
|
||||||
pushd ./python/
|
pushd ./python/
|
||||||
%py3_install
|
%py3_install
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
|
||||||
%endif # with python2
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -119,9 +96,6 @@ make check
|
|||||||
|
|
||||||
pushd ./python/
|
pushd ./python/
|
||||||
%{__python3} setup.py check
|
%{__python3} setup.py check
|
||||||
%if %{with python2}
|
|
||||||
%{__python2} setup.py check
|
|
||||||
%endif # with python2
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -159,17 +133,16 @@ popd
|
|||||||
%doc libnl-doc-%{fullversion}/images/icons/callouts/*
|
%doc libnl-doc-%{fullversion}/images/icons/callouts/*
|
||||||
%doc libnl-doc-%{fullversion}/api/*
|
%doc libnl-doc-%{fullversion}/api/*
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-libnl3
|
|
||||||
%{python2_sitearch}/netlink
|
|
||||||
%{python2_sitearch}/netlink-*.egg-info
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
%files -n python3-libnl3
|
%files -n python3-libnl3
|
||||||
%{python3_sitearch}/netlink
|
%{python3_sitearch}/netlink
|
||||||
%{python3_sitearch}/netlink-*.egg-info
|
%{python3_sitearch}/netlink-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-7
|
||||||
|
- Subpackage python2-libnl3 has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-6
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user