remove python2
This commit is contained in:
parent
00c4362abf
commit
1bd5d299bf
23
libnl3.spec
23
libnl3.spec
@ -1,6 +1,6 @@
|
||||
Name: libnl3
|
||||
Version: 3.5.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Providing APIs to netlink protocol based Linux kernel interfaces
|
||||
License: LGPLv2
|
||||
URL: http://www.infradead.org/~tgr/libnl/
|
||||
@ -43,13 +43,6 @@ Requires: %{name} = %{version}-%{release}
|
||||
%description -n python3-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
|
||||
%autosetup -n libnl-%{version} -p1
|
||||
|
||||
@ -59,8 +52,6 @@ autoreconf -vif
|
||||
%make_build
|
||||
|
||||
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
|
||||
|
||||
@ -70,14 +61,12 @@ CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
||||
find $RPM_BUILD_ROOT -name *.la |xargs rm -f
|
||||
|
||||
cd python
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
cd python
|
||||
%{__python2} setup.py check
|
||||
%{__python3} setup.py check
|
||||
|
||||
%ldconfig_scriptlets
|
||||
@ -101,11 +90,13 @@ cd python
|
||||
%{python3_sitearch}/netlink
|
||||
%{python3_sitearch}/netlink-*.egg-info
|
||||
|
||||
%files -n python2-libnl3
|
||||
%{python2_sitearch}/netlink
|
||||
%{python2_sitearch}/netlink-*.egg-info
|
||||
|
||||
%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
|
||||
- Type: bugfix
|
||||
- ID: NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user