|
|
|
@ -28,6 +28,7 @@
|
|
|
|
|
%define V_python_gflags 2.0 |
|
|
|
|
%define V_jinja2 2.9.6 |
|
|
|
|
%define V_mistune 0.7.4 |
|
|
|
|
%define V_chardet 3.0.4 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: python-text |
|
|
|
@ -40,7 +41,7 @@ Class: BASE
|
|
|
|
|
Group: Language |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_python} |
|
|
|
|
Release: 20170403 |
|
|
|
|
Release: 20170924 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{V_pygments}.tar.gz |
|
|
|
@ -48,6 +49,7 @@ Source1: https://files.pythonhosted.org/packages/source/c/configobj/configo
|
|
|
|
|
Source2: http://python-gflags.googlecode.com/files/python-gflags-%{V_python_gflags}.tar.gz |
|
|
|
|
Source3: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%{V_jinja2}.tar.gz |
|
|
|
|
Source4: https://files.pythonhosted.org/packages/source/m/mistune/mistune-%{V_mistune}.tar.gz |
|
|
|
|
Source5: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{V_chardet}.tar.gz |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}, python-setup |
|
|
|
@ -82,6 +84,11 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
url = https://pypi.python.org/pypi/mistune |
|
|
|
|
regex = mistune-(__VER__)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
prog python-text:chardet = { |
|
|
|
|
version = %{V_chardet} |
|
|
|
|
url = https://pypi.python.org/pypi/chardet |
|
|
|
|
regex = chardet-(__VER__)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -c |
|
|
|
@ -89,6 +96,7 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
%setup -q -T -D -a 2 |
|
|
|
|
%setup -q -T -D -a 3 |
|
|
|
|
%setup -q -T -D -a 4 |
|
|
|
|
%setup -q -T -D -a 5 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|
|
|
|
@ -128,6 +136,13 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
--root=$RPM_BUILD_ROOT \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
( cd chardet-%{V_chardet} |
|
|
|
|
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 |
|
|
|
|