Группа :: Development/Python3
Пакет: python3-module-llist
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define oname llist
%def_with check
Name: python3-module-%oname
Version: 0.7.1
Release: alt1
Summary: Linked list data structures for Python
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/llist/
# https://github.com/ajakubek/python-llist.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-pytest
%endif
%py3_provides %oname
%description
llist is an extension module for CPython providing basic linked list
data structures. Collections implemented in the llist module perform
well in problems which rely on fast insertions and/or deletions of
elements in the middle of a sequence. For this kind of workload, they
can be significantly faster than collections.deque or standard Python
lists.
%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
$(find ./ -name '*.py')
sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' \
$(find ./ -name '*.py')
%build
%add_optflags -fno-strict-aliasing
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -v
%files
%doc CHANGES README.md docs/*.rst examples
%python3_sitelibdir/%oname.cpython-*.so
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь
%def_with check
Name: python3-module-%oname
Version: 0.7.1
Release: alt1
Summary: Linked list data structures for Python
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/llist/
# https://github.com/ajakubek/python-llist.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-pytest
%endif
%py3_provides %oname
%description
llist is an extension module for CPython providing basic linked list
data structures. Collections implemented in the llist module perform
well in problems which rely on fast insertions and/or deletions of
elements in the middle of a sequence. For this kind of workload, they
can be significantly faster than collections.deque or standard Python
lists.
%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
$(find ./ -name '*.py')
sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' \
$(find ./ -name '*.py')
%build
%add_optflags -fno-strict-aliasing
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -v
%files
%doc CHANGES README.md docs/*.rst examples
%python3_sitelibdir/%oname.cpython-*.so
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь