From 75e37e60cc2d13e015dfea8c0c93274502671f6f Mon Sep 17 00:00:00 2001 From: shixuantong Date: Fri, 3 Dec 2021 16:23:40 +0800 Subject: [PATCH] delete "%bcond_with python3" and add "%bcond_with test" --- python-six.spec | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/python-six.spec b/python-six.spec index a56540c..33139dd 100644 --- a/python-six.spec +++ b/python-six.spec @@ -1,11 +1,11 @@ -%bcond_without python3 +%bcond_with test %global modname six %global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl Name: python-six Version: 1.15.0 -Release: 3 +Release: 4 Summary: It is a Python 2 and 3 compatibility library License: MIT URL: https://pypi.python.org/pypi/%{modname} @@ -15,39 +15,35 @@ BuildArch: noarch %description Python-six provides simple utilities for wrapping over differences Python 3. -%if %{with python3} %package -n python3-%{modname} Summary: Compatibility library for python 3 BuildRequires: python3-devel python3-setuptools -BuildRequires: python3-pytest python3-tkinter +BuildRequires: python3-tkinter BuildRequires: python3-pip python3-wheel +%if %{with test} +BuildRequires: python3-pytest +%endif %{?python_provide:%python_provide python3-%{modname}} Obsoletes: platform-python-%{modname} < %{version}-%{release} %description -n python3-%{modname} Compatibility library for python 3. -%endif %prep %autosetup -n %{modname}-%{version} %build -%if %{with python3} %py3_build_wheel -%endif %install -%if %{with python3} %py3_install_wheel %{python_wheelname} -%endif %check -%if %{with python3} +%if %{with test} PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py %endif -%if %{with python3} %files -n python3-%{modname} %license LICENSE %doc README* documentation/index* @@ -55,9 +51,14 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py %exclude %{python3_sitelib}/%{modname}-*.dist-info/LICENSE* %{python3_sitelib}/%{modname}.py %{python3_sitelib}/__pycache__/%{modname}.* -%endif %changelog +* Fri Dec 03 2021 shixuantong - 1.15.0-4 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC:delete "%bcond_with python3" and add "%bcond_with test" + * Sat Sep 5 2020 shixuantong - 1.15.0-3 - Type: bugfix - ID: NA