db6ee5
%global srcname blist
db6ee5
db6ee5
Name:           python-%{srcname}
db6ee5
Version:        1.3.6
fb3825
Release:        19%{?dist}
8b4163
Summary:        Faster list implementation for Python
9feed6
9feed6
License:        BSD
9feed6
URL:            http://pypi.python.org/pypi/blist/
9feed6
Source0:        http://pypi.python.org/packages/source/b/blist/blist-%{version}.tar.gz
8b4163
# https://github.com/DanielStutzbach/blist/pull/78
8b4163
Patch0001:      0001-Fix-compatibility-for-Python-3.7.patch
9feed6
bd90e9
BuildRequires:  gcc
bd90e9
f2b1dd
%global _description\
f2b1dd
The blist is a drop-in replacement for the Python list that provides\
f2b1dd
better performance when modifying large lists. The blist package also\
f2b1dd
provides sortedlist, sortedset, weaksortedlist, weaksortedset,\
f2b1dd
sorteddict, and btuple types.\
f2b1dd
\
f2b1dd
Python's built-in list is a dynamically-sized array; to insert or\
f2b1dd
remove an item from the beginning or middle of the list, it has to\
f2b1dd
move most of the list in memory, i.e., O(n) operations. The blist uses\
f2b1dd
a flexible, hybrid array/tree structure and only needs to move a small\
f2b1dd
portion of items in memory, specifically using O(log n) operations.\
f2b1dd
\
f2b1dd
For small lists, the blist and the built-in list have virtually\
f2b1dd
identical performance.
db6ee5
8b4163
%description %{_description}
db6ee5
f2b1dd
%package -n python2-%{srcname}
8b4163
Summary:        %{summary}
f2b1dd
%{?python_provide:%python_provide python2-%{srcname}}
8b4163
BuildRequires:  python2-devel
8b4163
BuildRequires:  python2-setuptools
f2b1dd
8b4163
%description -n python2-%{srcname} %{_description}
db6ee5
8b4163
Python 2 version.
9feed6
8b4163
%package -n python3-%{srcname}
8b4163
Summary:        %{summary}
8b4163
%{?python_provide:%python_provide python3-%{srcname}}
8b4163
BuildRequires:  python3-devel
8b4163
BuildRequires:  python3-setuptools
9feed6
8b4163
%description -n python3-%{srcname} %{_description}
db6ee5
8b4163
Python 3 version.
9feed6
9feed6
%prep
8b4163
%autosetup -n %{srcname}-%{version} -p1
9feed6
9feed6
%build
8b4163
%py2_build
8b4163
%py3_build
9feed6
9feed6
%install
8b4163
%py2_install
8b4163
%py3_install
9feed6
 
9feed6
%check
db6ee5
%{__python2} setup.py test
db6ee5
%{__python3} setup.py test
9feed6
f2b1dd
%files -n python2-%{srcname}
8b4163
%license LICENSE
8b4163
%doc README.rst
8b4163
%{python2_sitearch}/%{srcname}-*.egg-info/
8b4163
%{python2_sitearch}/%{srcname}/
db6ee5
db6ee5
%files -n python3-%{srcname}
8b4163
%license LICENSE
8b4163
%doc README.rst
8b4163
%{python3_sitearch}/%{srcname}-*.egg-info/
8b4163
%{python3_sitearch}/%{srcname}/
9feed6
9feed6
%changelog
fb3825
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-19
fb3825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fb3825
02b51d
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.3.6-18
02b51d
- Rebuild with fixed binutils
02b51d
f815e2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-17
f815e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f815e2
d312cf
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-16
d312cf
- Rebuilt for Python 3.7
d312cf
4b633a
* Sun Feb 11 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.6-15
4b633a
- Update Python 2 dependency declarations to new packaging standards
4b633a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4b633a
44dae3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-14
44dae3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
44dae3
f2b1dd
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.6-13
f2b1dd
- Python 2 binary package renamed to python2-blist
f2b1dd
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
f2b1dd
d09b1f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-12
d09b1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d09b1f
95b5e1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-11
95b5e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
95b5e1
cfaacd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-10
cfaacd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cfaacd
f454de
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-9
f454de
- Rebuild for Python 3.6
f454de
435a89
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-8
435a89
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
435a89
0131d1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-7
0131d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0131d1
4df965
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-6
4df965
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4df965
97f2d7
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-5
97f2d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
97f2d7
889994
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-4
889994
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
889994
b0ee16
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-3
b0ee16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b0ee16
5951e9
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.3.6-2
5951e9
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
5951e9
db6ee5
* Thu May  8 2014 Michel Salim <salimma@fedoraproject.org> - 1.3.6-1
db6ee5
- Update to 1.3.6
db6ee5
- Build for Python 3 as well on supported releases
db6ee5
32edcf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-5
32edcf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
32edcf
5f69e8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-4
5f69e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5f69e8
9a3307
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
9a3307
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9a3307
b60569
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-2
b60569
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b60569
Michel Alexandre Salim 3d46bf
* Sat Jul  2 2011 Michel Salim <salimma@fedoraproject.org> - 1.3.4-1
Michel Alexandre Salim 3d46bf
- Update to 1.3.4
Michel Alexandre Salim 3d46bf
16805e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
16805e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
16805e
6f38bc
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-2
6f38bc
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
6f38bc
70bdc2
* Mon Jul 26 2010 Michel Salim <salimma@fedoraproject.org> - 1.2.1-1
70bdc2
- Update to 1.2.1
70bdc2
9feed6
* Fri May 21 2010 Michel Salim <salimma@fedoraproject.org> - 1.1.1-1
9feed6
- Update to 1.1.1
9feed6
9feed6
* Fri Oct 23 2009 Michel Salim <salimma@fedoraproject.org> - 1.0.2-1
9feed6
- Update to 1.0.2
9feed6
9feed6
* Sat Oct 10 2009 Michel Salim <salimma@fedoraproject.org> - 1.0.1-1
9feed6
- Initial package
9feed6