ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-mysqldb.spec
Revision: 1.2
Committed: Tue Apr 18 23:51:01 2006 UTC (19 years ago) by eulisse
Branch: MAIN
Changes since 1.1: +1 -1 lines
Log Message:
Fixes missing python version in PYTHONPATH. This same problem probably
occurs in all the python modules.

File Contents

# User Rev Content
1 eulisse 1.1 ### RPM external py2-mysqldb 1.2.0
2 eulisse 1.2 %define pythonv $(echo $PYTHON_VERSION | cut -d. -f 1,2)
3 eulisse 1.1 ## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}/site-packages
4     %define downloadn MySQL-python
5     Source: http://belnet.dl.sourceforge.net/sourceforge/mysql-python/%downloadn-%v.tar.gz
6     Requires: python mysql
7     %prep
8     %setup -n %downloadn-%v
9     %build
10     python setup.py build
11     %install
12     python setup.py install --prefix=%{i}