|
|
|
|
@ -25,6 +25,7 @@
|
|
|
|
|
%define V_python 2.7 |
|
|
|
|
%define V_zope_component 4.2.2 |
|
|
|
|
%define V_zope_interface 4.1.3 |
|
|
|
|
%define V_zope_event 4.1.0 |
|
|
|
|
%define V_six 1.7.3 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
@ -43,7 +44,8 @@ Release: 20151206
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/zope.component/zope.component-%{V_zope_component}.tar.gz |
|
|
|
|
Source1: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{V_zope_interface}.tar.gz |
|
|
|
|
Source2: http://pypi.python.org/packages/source/s/six/six-%{V_six}.tar.gz |
|
|
|
|
Source2: http://pypi.python.org/packages/source/z/zope.event/zope.event-%{V_zope_event}.tar.gz |
|
|
|
|
Source3: http://pypi.python.org/packages/source/s/six/six-%{V_six}.tar.gz |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, python >= %{V_python} |
|
|
|
|
@ -64,6 +66,11 @@ PreReq: OpenPKG, openpkg >= 20100101, python >= %{V_python}
|
|
|
|
|
url = https://pypi.python.org/pypi/zope.interface |
|
|
|
|
regex = zope.interface-(__VER__)\.tgz |
|
|
|
|
} |
|
|
|
|
prog python-util:zope_event = { |
|
|
|
|
version = %{V_zope_event} |
|
|
|
|
url = https://pypi.python.org/pypi/zope.event |
|
|
|
|
regex = zope.event-(__VER__)\.tgz |
|
|
|
|
} |
|
|
|
|
prog python-util:six = { |
|
|
|
|
version = %{V_six} |
|
|
|
|
url = https://pypi.python.org/pypi/six |
|
|
|
|
@ -74,6 +81,7 @@ PreReq: OpenPKG, openpkg >= 20100101, python >= %{V_python}
|
|
|
|
|
%setup -q -c |
|
|
|
|
%setup -q -T -D -a 1 |
|
|
|
|
%setup -q -T -D -a 2 |
|
|
|
|
%setup -q -T -D -a 3 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|
|
|
|
|
@ -92,6 +100,13 @@ PreReq: OpenPKG, openpkg >= 20100101, python >= %{V_python}
|
|
|
|
|
--root=$RPM_BUILD_ROOT \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
( cd zope.event-%{V_zope_event} |
|
|
|
|
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 $? |
|
|
|
|
( cd six-%{V_six} |
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \ |
|
|
|
|
%{l_prefix}/bin/python \ |
|
|
|
|
|