1 |
< |
### RPM external py2-sqlalchemy 0.3.1 |
1 |
> |
### RPM external py2-sqlalchemy 0.5.2 |
2 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -f1,2 -d.) |
3 |
< |
## INITENV +PATH PYTHONPATH %i/lib/python$(echo $PYTHON_VERSION | cut -f1,2 -d.)/site-packages |
4 |
< |
|
5 |
< |
Source: http://superb-east.dl.sourceforge.net/sourceforge/sqlalchemy/SQLAlchemy-%v.tar.gz |
6 |
< |
Requires: python |
3 |
> |
## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages |
4 |
|
|
5 |
+ |
Source: http://superb-east.dl.sourceforge.net/sourceforge/sqlalchemy/SQLAlchemy-%realversion.tar.gz |
6 |
+ |
Requires: python |
7 |
+ |
#Patch: py2-sqlalchemy-setup |
8 |
+ |
# Apply patch to make ORACLE works correctly while specifying owner, see |
9 |
+ |
# http://groups.google.com/group/sqlalchemy/browse_thread/thread/902d39df9bc8cf21 |
10 |
+ |
#Patch: py2-sqlalchemy_patch_0.4.4_0.4.5 |
11 |
|
%prep |
12 |
< |
%setup -n SQLAlchemy-%v |
12 |
> |
%setup -n SQLAlchemy-%realversion |
13 |
> |
#%patch0 -p1 |
14 |
|
%build |
15 |
|
%install |
16 |
< |
mkdir -p %i/lib/python%{pythonv}/site-packages |
16 |
> |
mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages |
17 |
|
python setup.py build |
18 |
< |
mv build/lib/* %i/lib/python%{pythonv}/site-packages |
18 |
> |
mv build/lib/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages |
19 |
> |
|
20 |
|
|