ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-mysqldb.spec
Revision: 1.6
Committed: Wed Jun 27 13:24:08 2007 UTC (17 years, 10 months ago) by eulisse
Branch: MAIN
Changes since 1.5: +3 -3 lines
Log Message:
* Support for %realversion

File Contents

# User Rev Content
1 eulisse 1.6 ### RPM external py2-mysqldb 1.2.2-wt1
2 eulisse 1.3 %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 eulisse 1.6 Source: http://belnet.dl.sourceforge.net/sourceforge/mysql-python/%downloadn-%realversion.tar.gz
6 eulisse 1.1 Requires: python mysql
7     %prep
8 eulisse 1.6 %setup -n %downloadn-%realversion
9 eulisse 1.1 %build
10     python setup.py build
11     %install
12     python setup.py install --prefix=%{i}