From 1bd5d299bf340274cbc2b945de934c4e21f300bd Mon Sep 17 00:00:00 2001 From: eaglegai Date: Thu, 29 Oct 2020 09:41:51 +0800 Subject: [PATCH] remove python2 --- libnl3.spec | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/libnl3.spec b/libnl3.spec index d7c8375..c9ecdad 100644 --- a/libnl3.spec +++ b/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 - 3.5.0-3 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:remove python2 + * Thu Sep 10 2020 lunankun - 3.5.0-2 - Type: bugfix - ID: NA