1 |
|
### RPM external py2-cx-oracle 4.2 |
2 |
< |
## INITENV +PATH PYTHONPATH %i/lib/python%(echo $PYTHON_VERSION | cut -d. -f 1,2)/site-packages |
2 |
> |
%define pythonv `echo $PYTHON_VERSION |cut -d. -f1,2` |
3 |
> |
## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}/site-packages |
4 |
|
%define downloadn cx_Oracle |
5 |
< |
Source: http://switch.dl.sourceforge.net/sourceforge/cx-oracle/%downloadn-%v.tar.gz |
5 |
> |
Source: http://switch.dl.sourceforge.net/sourceforge/cx-oracle/%downloadn-%realversion.tar.gz |
6 |
|
Requires: python |
7 |
|
Requires: oracle |
8 |
|
%prep |
9 |
< |
%setup -n %downloadn-%v |
9 |
> |
%setup -n %downloadn-%realversion |
10 |
|
|
11 |
|
%build |
12 |
|
%install |