!14 [sync] PR-13: package degrade and add python2 subpackage for openEuler-20.03-LTS-SP3

From: @openeuler-sync-bot 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2023-11-01 08:33:27 +00:00 committed by Gitee
commit f7c71ffec7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 26 additions and 14 deletions

BIN
pyrsistent-0.16.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-pyrsistent
Version: 0.18.1
Version: 0.16.0
Release: 1
Summary: Persistent/Functional/Immutable data structures
License: MIT
URL: http://github.com/tobgu/pyrsistent/
Source0: https://files.pythonhosted.org/packages/42/ac/455fdc7294acc4d4154b904e80d964cc9aae75b087bbf486be04df9f2abd/pyrsistent-0.18.1.tar.gz
Source0: https://files.pythonhosted.org/packages/4d/70/fd441df751ba8b620e03fd2d2d9ca902103119616f0f6cc42e6405035062/pyrsistent-0.16.0.tar.gz
%description
Pyrsistent is a number of persistent collections (by some referred to as functional data structures). Persistent in
the sense that they are immutable.
@ -28,6 +28,22 @@ BuildRequires: gcc
Pyrsistent is a number of persistent collections (by some referred to as functional data structures). Persistent in
the sense that they are immutable.
%package -n python2-pyrsistent
Summary: Persistent/Functional/Immutable data structures
Provides: python-pyrsistent
# Base build requires
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-pbr
BuildRequires: python2-pip
BuildRequires: python2-wheel
BuildRequires: python2-hypothesis
BuildRequires: python2-pytest
BuildRequires: python2-six
%description -n python2-pyrsistent
Pyrsistent is a number of persistent collections (by some referred to as functional data structures). Persistent in
the sense that they are immutable.
%package help
Summary: Persistent/Functional/Immutable data structures
Provides: python3-pyrsistent-doc
@ -37,12 +53,14 @@ Pyrsistent is a number of persistent collections (by some referred to as functio
the sense that they are immutable.
%prep
%autosetup -n pyrsistent-%{version}
%autosetup -n pyrsistent-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
@ -74,21 +92,15 @@ mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
%files -n python3-pyrsistent -f filelist.lst
%dir %{python3_sitearch}/*
%files -n python3-pyrsistent
%{python3_sitearch}/*
%files -n python2-pyrsistent
%{python2_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon May 16 2022 OpenStack_SIG <openstack@openeuler.org> - 0.18.1-1
- Upgrade package python3-pyrsistent to version 0.18.1
* Thu Aug 26 2021 orange-snn <songnannan2@huawei.com> - 0.18.0-1
- update version to 0.18.0
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 0.17.3-1
- Update version to 0.17.3
* Mon Aug 10 2020 tianwei <tianwei12@huawei.com> - 0.16.0.-1
- Package Init