python-six/python-six.spec

81 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:35 -04:00
%bcond_without python3
%global modname six
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
Name: python-six
2020-07-27 17:03:15 +08:00
Version: 1.15.0
2020-08-07 19:33:34 +08:00
Release: 2
2019-09-30 11:15:35 -04:00
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
BuildArch: noarch
%description
2020-08-07 19:33:34 +08:00
Python-six provides simple utilities for wrapping over differences Python 3.
2019-09-30 11:15:35 -04:00
%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-pip python3-wheel
%{?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}
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*
%{python3_sitelib}/%{modname}-*.dist-info/
%exclude %{python3_sitelib}/%{modname}-*.dist-info/LICENSE*
%{python3_sitelib}/%{modname}.py
%{python3_sitelib}/__pycache__/%{modname}.*
%endif
%changelog
2020-08-07 19:33:34 +08:00
* Fri Aug 7 2020 wenzhanli<wenzhanli2@huawei.com> - 1.15.0-2
- Type:bugfixl
- ID:NAl
- SUG:NA
- DESC:remove python2 require
2020-07-27 17:03:15 +08:00
* Mon Jul 27 2020 tianwei<tianwei123@huawei.com> -1.15.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade software to v1.15.0
2020-05-11 15:14:07 +08:00
* Thu Apr 16 2020 chengquan<chengquan3@huawei.com> -1.14.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade software to v1.14.0
2019-09-30 11:15:35 -04:00
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.12.0-1
- Package Init