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 |
2 |
> |
## INITENV +PATH PYTHONPATH %i/$PYTHON_LIB_SITE_PACKAGES |
3 |
|
|
4 |
|
Source: http://superb-east.dl.sourceforge.net/sourceforge/sqlalchemy/SQLAlchemy-%realversion.tar.gz |
5 |
< |
Requires: python py2-mysqldb py2-cx-oracle py2-pysqlite |
7 |
< |
#Patch: py2-sqlalchemy-setup |
5 |
> |
Requires: python |
6 |
|
# Apply patch to make ORACLE works correctly while specifying owner, see |
7 |
|
# http://groups.google.com/group/sqlalchemy/browse_thread/thread/902d39df9bc8cf21 |
8 |
|
#Patch: py2-sqlalchemy_patch_0.4.4_0.4.5 |
9 |
+ |
|
10 |
|
%prep |
11 |
|
%setup -n SQLAlchemy-%realversion |
12 |
< |
#%patch0 -p1 |
12 |
> |
|
13 |
|
%build |
15 |
– |
%install |
16 |
– |
mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages |
14 |
|
python setup.py build |
18 |
– |
mv build/lib/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages |
19 |
– |
|
15 |
|
|
16 |
+ |
%install |
17 |
+ |
python setup.py install --prefix=%i |
18 |
+ |
find %i -name '*.egg-info' -exec rm {} \; |