From 3822bb1f591da58308bced13ec7de8d636169a6b Mon Sep 17 00:00:00 2001 From: s17723959267 Date: Fri, 11 Sep 2020 15:04:17 +0800 Subject: [PATCH] remove python2 require --- python-productmd.spec | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/python-productmd.spec b/python-productmd.spec index 290b857..7e8073e 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,6 +1,6 @@ Name: python-productmd Version: 1.26 -Release: 2 +Release: 3 Summary: Python library providing parsers for metadata License: LGPLv2+ URL: https://github.com/release-engineering/productmd @@ -13,17 +13,6 @@ BuildArch: noarch This package is a Python library providing parsers for metadata related to composes and installation media. -%package -n python2-productmd -Summary: productmd for python2 -Obsoletes: productmd <= %{version}-%{release} -Provides: productmd = %{version}-%{release} -BuildRequires: python2-devel python2-setuptools python2-six -Requires: python2-six -%{?python_provide:%python_provide python2-productmd} - -%description -n python2-productmd -Productmd for python2. - %package -n python3-productmd Summary: productmd for python3 BuildRequires: python3-devel python3-setuptools python3-six sed @@ -38,15 +27,12 @@ Productmd for python3. sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py %build -%py2_build %py3_build %install -%py2_install %py3_install %check -%{__python2} ./setup.py test %{__python3} ./setup.py test %pre @@ -57,17 +43,15 @@ sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py %postun -%files -n python2-productmd -%license LICENSE AUTHORS -%{python2_sitelib}/productmd/ -%{python2_sitelib}/productmd-%{version}-py?.?.egg-info - %files -n python3-productmd %license LICENSE AUTHORS %{python3_sitelib}/productmd/ %{python3_sitelib}/productmd-%{version}-py?.?.egg-info %changelog +* Fri Sep 11 2020 wenzhanli - 1.26-3 +- Remove python2 require + * Thu Aug 27 2020 fengtao - 1.26-2 - Type:bugfix - ID:NA -- Gitee