Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c769b17a06
!22 【轻量级 PR】:fix bogus date in %changelog
From: @k4b00m 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2023-02-20 01:06:31 +00:00
ckji
a7acb570c2 fix bogus date in %changelog 2023-01-28 17:45:36 +08:00
openeuler-ci-bot
72ba391321
!19 delete "%bcond_with python3" and add "%bcond_with test"
From: @wangjiang37 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-04-01 06:12:27 +00:00
wangjiang
c2d55484e0 delete "%bcond_with python3" and add "%bcond_with test" 2022-03-30 11:16:22 +08:00
openeuler-ci-bot
b4cf31ea57 !14 upgrade software to v1.16.0
Merge pull request !14 from 桐小哥/openEuler-22.03-LTS-Next
2021-12-21 06:13:52 +00:00
shixuantong
05e8c6cf84 upgrade software to v1.16.0 2021-12-21 11:16:58 +08:00
openeuler-ci-bot
fc89b87903 !10 update Source0
Merge pull request !10 from 桐小哥/master
2020-09-09 11:13:02 +08:00
桐小哥
bdb429ccac update Source0 2020-09-05 14:22:49 +08:00
openeuler-ci-bot
a7682fb3bb !6 remove python2 require
Merge pull request !6 from 温占礼/master
2020-08-08 16:05:46 +08:00
zhanliwen
2c9667d6ee changlog 2020-08-07 19:43:19 +08:00
3 changed files with 29 additions and 14 deletions

View File

@ -1,53 +1,51 @@
%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
Version: 1.16.0
Release: 2
Summary: It is a Python 2 and 3 compatibility library
License: MIT
URL: https://pypi.python.org/pypi/%{modname}
Source0: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz
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
Provides: python%{python3_pkgversion}dist(six) = %{version}
Provides: python%{python3_version}dist(six) = %{version}
%{?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,11 +53,28 @@ 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
* Wed Mar 30 2022 wangjiang <wangjiang@h-partners.com> - 1.16.0-2
- Type: bugfix
- ID: NA
- SUG: NA
- DESC:delete "%bcond_with python3" and add "%bcond_with test"
* Tue Dec 21 2021 shixuantong <shixuantong@huawei.com> - 1.16.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade software to v1.16.0
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 1.15.0-3
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: update Source0
* Fri Aug 7 2020 wenzhanli<wenzhanli2@huawei.com> - 1.15.0-2
- Type:bugfixl
- Type:bugfix
- ID:NAl
- SUG:NA
- DESC:remove python2 require

Binary file not shown.

BIN
six-1.16.0.tar.gz Normal file

Binary file not shown.