commit
4dddc8beb9
@ -1,11 +1,12 @@
|
|||||||
|
%bcond_without python2
|
||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-sortedcontainers
|
Name: python-sortedcontainers
|
||||||
Version: 2.1.0
|
Version: 2.4.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
|
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
URL: http://www.grantjenks.com/docs/sortedcontainers/
|
URL: https://github.com/grantjenks/python-sortedcontainers
|
||||||
Source0: https://files.pythonhosted.org/packages/29/e0/135df2e733790a3d3bcda970fd080617be8cea3bd98f411e76e6847c17ef/sortedcontainers-2.1.0.tar.gz
|
Source0: https://github.com/grantjenks/python-sortedcontainers/archive/refs/tags/v%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
@ -13,6 +14,17 @@ BuildArch: noarch
|
|||||||
`Sorted Containers`_ is an Apache2 licensed `sorted collections library`_,
|
`Sorted Containers`_ is an Apache2 licensed `sorted collections library`_,
|
||||||
written in pure-Python, and fast as C-extensions.
|
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
|
%package -n python3-sortedcontainers
|
||||||
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
|
Summary: Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
|
||||||
Provides: python-sortedcontainers
|
Provides: python-sortedcontainers
|
||||||
@ -32,12 +44,19 @@ Provides: python3-sortedcontainers-doc
|
|||||||
written in pure-Python, and fast as C-extensions.
|
written in pure-Python, and fast as C-extensions.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n sortedcontainers-2.1.0
|
%autosetup -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with python2}
|
||||||
|
%py2_build
|
||||||
|
%endif
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{with python2}
|
||||||
|
%py2_install
|
||||||
|
%endif
|
||||||
|
|
||||||
%py3_install
|
%py3_install
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
@ -65,6 +84,11 @@ popd
|
|||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
|
%files -n python2-sortedcontainers
|
||||||
|
%{python2_sitelib}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-sortedcontainers -f filelist.lst
|
%files -n python3-sortedcontainers -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
@ -72,6 +96,10 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_pkgdocdir}
|
%{_pkgdocdir}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Aug 8 2020 tianwei <tianwei12@huawei.com> - 2.1.0.-1
|
||||||
- Package Init
|
- Package Init
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
v2.4.0.tar.gz
Normal file
BIN
v2.4.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user