|
|
|
|
@ -25,6 +25,7 @@
|
|
|
|
|
%define V_python 2.7 |
|
|
|
|
%define V_pytrie 0.3 |
|
|
|
|
%define V_enum34 1.1.6 |
|
|
|
|
%define V_bitstring 3.1.5 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: python-ds |
|
|
|
|
@ -37,11 +38,12 @@ Class: BASE
|
|
|
|
|
Group: Language |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_python} |
|
|
|
|
Release: 20161227 |
|
|
|
|
Release: 20170218 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-%{V_pytrie}.tar.gz |
|
|
|
|
Source1: https://files.pythonhosted.org/packages/source/e/enum34/enum34-%{V_enum34}.tar.gz |
|
|
|
|
Source2: https://files.pythonhosted.org/packages/source/b/bitstring/bitstring-%{V_bitstring}.zip |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}, python-setup |
|
|
|
|
@ -61,10 +63,16 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
url = https://pypi.python.org/pypi/enum34 |
|
|
|
|
regex = enum34-(__VER__)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
prog python-ds:bitstring = { |
|
|
|
|
version = %{V_bitstring} |
|
|
|
|
url = https://pypi.python.org/pypi/bitstring |
|
|
|
|
regex = bitstring-(__VER__)\.zip |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -c |
|
|
|
|
%setup -q -T -D -a 1 |
|
|
|
|
%setup -q -T -D -a 2 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|
|
|
|
|
@ -83,6 +91,13 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
--root=$RPM_BUILD_ROOT \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
( cd bitstring-%{V_bitstring} |
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \ |
|
|
|
|
%{l_prefix}/bin/python \ |
|
|
|
|
setup.py install \ |
|
|
|
|
--root=$RPM_BUILD_ROOT \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|
|
|
|
|
|
%files -f files |
|
|
|
|
|