From c03cc9921e53f9da30a90ffae23283671214cc9b Mon Sep 17 00:00:00 2001 From: FFrog Date: Thu, 10 Feb 2022 10:05:55 +0800 Subject: [PATCH] Remove the support of python2 co-authored-by zh-f --- python-pyudev.spec | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/python-pyudev.spec b/python-pyudev.spec index 6041a76..274c3dc 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -1,7 +1,7 @@ %global srcname pyudev Name: python-%{srcname} Version: 0.22.0 -Release: 1 +Release: 2 Summary: A libudev binding License: LGPLv2+ URL: http://pypi.python.org/pypi/pyudev @@ -16,15 +16,6 @@ and you can use it after a quick learning. %description %_description -%package -n python2-%{srcname} -Summary: %summary -BuildRequires: python2-devel python2-setuptools -Requires: glibc systemd python2-six -Provides: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx -Obsoletes: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx -%description -n python2-%{srcname} %_description -%{?python_provide:%python_provide python2-%{srcname}} - %package -n python3-%{srcname} Summary: A libudev binding BuildRequires: python3-devel python3-setuptools @@ -39,19 +30,11 @@ Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5 rm -rf pyudev.egg-info %build -%py2_build %py3_build %install -%py2_install %py3_install -%files -n python2-%{srcname} -%license COPYING -%doc README.rst CHANGES.rst -%{python2_sitelib}/pyudev/ -%{python2_sitelib}/pyudev-%{version}-*.egg-info - %files -n python3-%{srcname} %license COPYING %doc README.rst CHANGES.rst @@ -66,6 +49,9 @@ rm -rf pyudev.egg-info %changelog +* Thur Jan 27 2022 lijiawei - 0.22.0-2 +- Remove python2 support + * Thu Aug 20 2020 SimpleUpdate Robot - 0.22.0-1 - Upgrade to version 0.22.0 -- Gitee