diff options
| author | Michel Alexandre Salim <msalim@cs.indiana.edu> | 2009-10-10 18:10:04 -0400 |
|---|---|---|
| committer | Michel Alexandre Salim <msalim@cs.indiana.edu> | 2009-10-10 18:10:04 -0400 |
| commit | 8360699b49f1afeae34110694486600ba73226b4 (patch) | |
| tree | 8488c6162c0af5ae927784c4ae86001da2f1f4bc /python/python-blist.spec | |
| parent | fb79c913562caf052be9c9a71fd9451852948cf6 (diff) | |
| download | specs-8360699b49f1afeae34110694486600ba73226b4.tar.gz specs-8360699b49f1afeae34110694486600ba73226b4.tar.xz specs-8360699b49f1afeae34110694486600ba73226b4.zip | |
python-blist: BTree-based lists for Python
Diffstat (limited to 'python/python-blist.spec')
| -rw-r--r-- | python/python-blist.spec | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/python/python-blist.spec b/python/python-blist.spec new file mode 100644 index 0000000..0679ff0 --- /dev/null +++ b/python/python-blist.spec @@ -0,0 +1,57 @@ +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: python-blist +Version: 1.0.1 +Release: 1%{?dist} +Summary: A faster list implementation for Python + +Group: Development/Languages +License: BSD +URL: http://pypi.python.org/pypi/blist/ +Source0: http://pypi.python.org/packages/source/b/blist/blist-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +#BuildArch: +BuildRequires: python-devel + +%description +The BList is a type that looks, acts, and quacks like a Python list, +but has better performance for for modifying large lists. + +For small lists (fewer than 128 elements), BLists and the built-in +list have very similar performance, although BLists are memory +inefficient if you need to create a larger number of small lists. + + +%prep +%setup -q -n blist-%{version} +chmod -x LICENSE *.[ch] *.rst *.txt + + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + + +%check +%{__python} setup.py test + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE README.txt blist.rst +%{python_sitearch}/* + + +%changelog +* Sat Oct 10 2009 Michel Salim <salimma@fedoraproject.org> - 1.0.1-1 +- Initial package + |
