!7 remove python2
From: @eaglegai Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
9aefe642f1
23
libnl3.spec
23
libnl3.spec
@ -1,6 +1,6 @@
|
|||||||
Name: libnl3
|
Name: libnl3
|
||||||
Version: 3.5.0
|
Version: 3.5.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Providing APIs to netlink protocol based Linux kernel interfaces
|
Summary: Providing APIs to netlink protocol based Linux kernel interfaces
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
URL: http://www.infradead.org/~tgr/libnl/
|
URL: http://www.infradead.org/~tgr/libnl/
|
||||||
@ -43,13 +43,6 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description -n python3-libnl3
|
%description -n python3-libnl3
|
||||||
Python3 bindings for libnl3
|
Python3 bindings for libnl3
|
||||||
|
|
||||||
%package -n python2-libnl3
|
|
||||||
Summary: Python2 bindings for libnl3
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-libnl3
|
|
||||||
Python2 bindings for libnl3
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n libnl-%{version} -p1
|
%autosetup -n libnl-%{version} -p1
|
||||||
|
|
||||||
@ -59,8 +52,6 @@ autoreconf -vif
|
|||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
cd python
|
cd python
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py2_build
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py2_build
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
||||||
|
|
||||||
@ -70,14 +61,12 @@ CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
|||||||
find $RPM_BUILD_ROOT -name *.la |xargs rm -f
|
find $RPM_BUILD_ROOT -name *.la |xargs rm -f
|
||||||
|
|
||||||
cd python
|
cd python
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
cd python
|
cd python
|
||||||
%{__python2} setup.py check
|
|
||||||
%{__python3} setup.py check
|
%{__python3} setup.py check
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
@ -101,11 +90,13 @@ cd python
|
|||||||
%{python3_sitearch}/netlink
|
%{python3_sitearch}/netlink
|
||||||
%{python3_sitearch}/netlink-*.egg-info
|
%{python3_sitearch}/netlink-*.egg-info
|
||||||
|
|
||||||
%files -n python2-libnl3
|
|
||||||
%{python2_sitearch}/netlink
|
|
||||||
%{python2_sitearch}/netlink-*.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 3.5.0-3
|
||||||
|
- Type:requirement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:remove python2
|
||||||
|
|
||||||
* Thu Sep 10 2020 lunankun <lunankun@huawei.com> - 3.5.0-2
|
* Thu Sep 10 2020 lunankun <lunankun@huawei.com> - 3.5.0-2
|
||||||
- Type: bugfix
|
- Type: bugfix
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user