!6 update to 2.4.0

From: @lyn1001
Reviewed-by: 
Signed-off-by:
This commit is contained in:
openeuler-ci-bot 2021-08-20 06:49:46 +00:00 committed by Gitee
commit 4dddc8beb9
3 changed files with 32 additions and 4 deletions

View File

@ -1,11 +1,12 @@
%bcond_without python2
%global _empty_manifest_terminate_build 0
Name: python-sortedcontainers
Version: 2.1.0
Version: 2.4.0
Release: 1
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
License: Apache 2.0
URL: http://www.grantjenks.com/docs/sortedcontainers/
Source0: https://files.pythonhosted.org/packages/29/e0/135df2e733790a3d3bcda970fd080617be8cea3bd98f411e76e6847c17ef/sortedcontainers-2.1.0.tar.gz
URL: https://github.com/grantjenks/python-sortedcontainers
Source0: https://github.com/grantjenks/python-sortedcontainers/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch
@ -13,6 +14,17 @@ BuildArch: noarch
`Sorted Containers`_ is an Apache2 licensed `sorted collections library`_,
written in pure-Python, and fast as C-extensions.
%if %{with python2}
%package -n python2-sortedcontainers
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description -n python2-sortedcontainers
`Sorted Containers`_ is an Apache2 licensed `sorted collections library`_,
written in pure-Python, and fast as C-extensions.
%endif
%package -n python3-sortedcontainers
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
Provides: python-sortedcontainers
@ -32,12 +44,19 @@ Provides: python3-sortedcontainers-doc
written in pure-Python, and fast as C-extensions.
%prep
%autosetup -n sortedcontainers-2.1.0
%autosetup -n %{name}-%{version}
%build
%if %{with python2}
%py2_build
%endif
%py3_build
%install
%if %{with python2}
%py2_install
%endif
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
@ -65,6 +84,11 @@ popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%if %{with python2}
%files -n python2-sortedcontainers
%{python2_sitelib}/*
%endif
%files -n python3-sortedcontainers -f filelist.lst
%dir %{python3_sitelib}/*
@ -72,6 +96,10 @@ mv %{buildroot}/doclist.lst .
%{_pkgdocdir}
%changelog
* Tue Jul 27 2021 liyanan <liyanan32@huawei.com> - 2.4.0-1
- update to 2.4.0
- add python2 sub-package
* Sat Aug 8 2020 tianwei <tianwei12@huawei.com> - 2.1.0.-1
- Package Init

Binary file not shown.

BIN
v2.4.0.tar.gz Normal file

Binary file not shown.