|
|
|
|
@ -22,14 +22,13 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package versions |
|
|
|
|
%define V_python 3.13 |
|
|
|
|
%define V_python 3.14 |
|
|
|
|
%define V_cheetah3 3.1.0 |
|
|
|
|
%define V_genshi 0.7.7 |
|
|
|
|
%define V_html5lib 1.1 |
|
|
|
|
%define V_django 5.2.5 |
|
|
|
|
%define V_django 6.0 |
|
|
|
|
%define V_meld3 0.6.5 |
|
|
|
|
%define V_requests 2.32.5 |
|
|
|
|
%define V_werkzeug 3.1.3 |
|
|
|
|
%define V_werkzeug 3.1.4 |
|
|
|
|
%define V_tornado 4.5.1 |
|
|
|
|
%define V_bottle 0.13.4 |
|
|
|
|
|
|
|
|
|
@ -44,18 +43,17 @@ Class: BASE
|
|
|
|
|
Group: Language |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_python} |
|
|
|
|
Release: 20250822 |
|
|
|
|
Release: 20251221 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: https://pypi.python.org/packages/source/C/Cheetah3/Cheetah3-%{V_cheetah3}.tar.gz |
|
|
|
|
Source1: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{V_genshi}.tar.gz |
|
|
|
|
Source2: https://github.com/html5lib/html5lib-python/archive/%{V_html5lib}.tar.gz |
|
|
|
|
Source3: https://github.com/django/django/archive/%{V_django}.tar.gz |
|
|
|
|
Source4: http://www.plope.com/software/meld3/meld3-%{V_meld3}.tar.gz |
|
|
|
|
Source5: https://files.pythonhosted.org/packages/source/r/requests/requests-%{V_requests}.tar.gz |
|
|
|
|
Source6: https://files.pythonhosted.org/packages/source/W/Werkzeug/werkzeug-%{V_werkzeug}.tar.gz |
|
|
|
|
Source7: https://pypi.python.org/packages/source/t/tornado/tornado-%{V_tornado}.tar.gz |
|
|
|
|
Source8: https://pypi.python.org/packages/source/b/bottle/bottle-%{V_bottle}.tar.gz |
|
|
|
|
Source2: https://github.com/django/django/archive/%{V_django}.tar.gz |
|
|
|
|
Source3: http://www.plope.com/software/meld3/meld3-%{V_meld3}.tar.gz |
|
|
|
|
Source4: https://files.pythonhosted.org/packages/source/r/requests/requests-%{V_requests}.tar.gz |
|
|
|
|
Source5: https://files.pythonhosted.org/packages/source/W/Werkzeug/werkzeug-%{V_werkzeug}.tar.gz |
|
|
|
|
Source6: https://pypi.python.org/packages/source/t/tornado/tornado-%{V_tornado}.tar.gz |
|
|
|
|
Source7: https://pypi.python.org/packages/source/b/bottle/bottle-%{V_bottle}.tar.gz |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python} |
|
|
|
|
@ -75,11 +73,6 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
url = http://genshi.edgewall.org/wiki/Download |
|
|
|
|
regex = Genshi-(__VER__)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
prog python-www:html5lib = { |
|
|
|
|
version = %{V_html5lib} |
|
|
|
|
url = https://github.com/html5lib/html5lib-python/releases |
|
|
|
|
regex = (__VER__)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
prog python-www:django = { |
|
|
|
|
version = %{V_django} |
|
|
|
|
url = http://www.djangoproject.com/download/ |
|
|
|
|
@ -120,7 +113,6 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
%setup -q -T -D -a 5 |
|
|
|
|
%setup -q -T -D -a 6 |
|
|
|
|
%setup -q -T -D -a 7 |
|
|
|
|
%setup -q -T -D -a 8 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|
|
|
|
|
@ -138,12 +130,6 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
|
|
|
|
|
--root=$RPM_BUILD_ROOT \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
( cd html5lib-python-%{V_html5lib} |
|
|
|
|
%{l_prefix}/bin/python \ |
|
|
|
|
setup.py install \ |
|
|
|
|
--root=$RPM_BUILD_ROOT \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
( cd django-%{V_django} |
|
|
|
|
HOME=`pwd` %{l_prefix}/bin/python \ |
|
|
|
|
-m pip install \ |
|
|
|
|
|