1 |
|
### RPM external py2-cx-oracle 4.2 |
2 |
< |
Requires: gcc-wrapper |
3 |
< |
## INITENV +PATH PYTHONPATH %i/lib/python$(echo $PYTHON_VERSION | cut -d. -f 1,2)/site-packages |
2 |
> |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) false ;; esac |
3 |
> |
%define pythonv `echo $PYTHON_VERSION |cut -d. -f1,2` |
4 |
> |
## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}/site-packages |
5 |
|
%define downloadn cx_Oracle |
6 |
< |
Source: http://switch.dl.sourceforge.net/sourceforge/cx-oracle/%downloadn-%v.tar.gz |
6 |
> |
Source: http://switch.dl.sourceforge.net/sourceforge/cx-oracle/%downloadn-%realversion.tar.gz |
7 |
|
Requires: python |
8 |
|
Requires: oracle |
9 |
|
%prep |
10 |
< |
%setup -n %downloadn-%v |
10 |
> |
%setup -n %downloadn-%realversion |
11 |
|
|
12 |
|
%build |
12 |
– |
## IMPORT gcc-wrapper |
13 |
|
%install |
14 |
|
perl -p -i -e 's/(?<=includeDirs = \[)/"include", /' setup.py |
15 |
|
python setup.py install --prefix=%i |