ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-pysqlite.spec
Revision: 1.9
Committed: Thu Sep 13 14:55:40 2007 UTC (17 years, 7 months ago) by eulisse
Branch: MAIN
CVS Tags: forTony_001
Changes since 1.8: +1 -1 lines
Log Message:
%v changed to be %realversion.

File Contents

# User Rev Content
1 eulisse 1.2 ### RPM external py2-pysqlite 2.3.2
2 eulisse 1.1 %define pythonv %(echo $PYTHON_VERSION | cut -f1,2 -d.)
3 eulisse 1.9 %define distname pysqlite-%realversion
4 eulisse 1.8 ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
5 eulisse 1.2 Source: http://initd.org/pub/software/pysqlite/releases/2.3/%v/%{distname}.tar.gz
6 eulisse 1.1 Requires: python sqlite
7    
8 eulisse 1.2 %prep
9     %setup -n %{distname}
10 eulisse 1.1 %build
11 eulisse 1.2 perl -p -i -e "s!include_dirs=.*!include_dirs=$SQLITE_ROOT/include!" setup.cfg
12     perl -p -i -e "s!library_dirs=.*!library_dirs=$SQLITE_ROOT/lib!" setup.cfg
13 eulisse 1.1 python setup.py build
14     %install
15     python setup.py install --prefix=%i