!5 remove python2 subpackage

From: @lei_ju
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-29 18:38:15 +08:00 committed by Gitee
commit ff0be18c00

View File

@ -1,26 +1,19 @@
%global debug_package %{nil}
Name: python-itsdangerous Name: python-itsdangerous
Version: 1.1.0 Version: 1.1.0
Release: 2 Release: 3
Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound. Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound.
License: BSD License: BSD
URL: http://pythonhosted.org/itsdangerous/ URL: http://pythonhosted.org/itsdangerous/
Source0: https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python3-devel python2-pytest python3-pytest python2-freezegun python3-freezegun BuildRequires: python3-devel python3-pytest python3-freezegun
%description %description
Various helpers to pass data to untrusted environments and to get it back safe and sound. Various helpers to pass data to untrusted environments and to get it back safe and sound.
Data is cryptographically signed to ensure that a token has not been tampered with. Data is cryptographically signed to ensure that a token has not been tampered with.
%package -n python2-itsdangerous
Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound for python2.
%{?python_provide:%python_provide python2-itsdangerous}
%description -n python2-itsdangerous
Various helpers to pass data to untrusted environments and to get it back safe and sound for python2.
Data is cryptographically signed to ensure that a token has not been tampered with.
%package -n python3-itsdangerous %package -n python3-itsdangerous
Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound for python3. Summary: Various helpers to pass data to untrusted environments and to get it back safe and sound for python3.
%{?python_provide:%python_provide python3-itsdangerous} %{?python_provide:%python_provide python3-itsdangerous}
@ -30,27 +23,17 @@ Various helpers to pass data to untrusted environments and to get it back safe a
Data is cryptographically signed to ensure that a token has not been tampered with. Data is cryptographically signed to ensure that a token has not been tampered with.
%prep %prep
%global debug_package %{nil}
%autosetup -n itsdangerous-%{version} %autosetup -n itsdangerous-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version}
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
%files -n python2-itsdangerous
%license LICENSE.rst
%doc CHANGES.rst README.rst
%{python2_sitelib}/itsdangerous/
%{python2_sitelib}/itsdangerous*.egg-info/
%files -n python3-itsdangerous %files -n python3-itsdangerous
%license LICENSE.rst %license LICENSE.rst
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
@ -58,6 +41,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
%{python3_sitelib}/itsdangerous*.egg-info/ %{python3_sitelib}/itsdangerous*.egg-info/
%changelog %changelog
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 1.1.0-3
- remove python2 subpackage
* Tue Sep 29 2020 liuweibo <liuweibo10@huawei.com> - 1.1.0-2 * Tue Sep 29 2020 liuweibo <liuweibo10@huawei.com> - 1.1.0-2
- Fix Source0 - Fix Source0