ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/python-tdb.spec
(Generate patch)

Comparing COMP/CMSDIST/python-tdb.spec (file contents):
Revision 1.2 by steen, Wed Apr 5 23:19:10 2006 UTC vs.
Revision 1.3 by steen, Fri Apr 21 16:45:19 2006 UTC

# Line 1 | Line 1
1   ### RPM external python-tdb 0.0.6
2   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2)
3 < %define pydir %(which python| python -c "import sys,os; version=sys.version[:3];path='/'+reduce(lambda x,y: x+y+'/',sys.stdin.readline().split('/')[:-2]);print path")
4 < %define bindir %pydir/bin
5 < %define sitedir %pydir/lib/python%pythonv/site-packages/
6 < ## INITENV +PATH PYTHONPATH %{i}/lib
7 <
3 > ## INITENV +PATH PYTHONPATH %{i}/lib/python%{pythonv}
4  
5   Summary: Python binding for the Samba Trivial Database
6   Packager:Conrad Steenberg <conrad@hep.caltech.edu>
7   Vendor: Conrad Steenberg <conrad@hep.caltech.edu>
8  
9   Source: http://julian.ultralight.org/clarens/devel/%n-%v.tar.gz
10 < Requires: python tdb Pyrex
10 > Requires: python tdb pyrex
11  
12  
13   %description
# Line 31 | Line 27 | This binding exposes a low-level TDB int
27   mkdir build
28  
29   %install
34 set
30   export CFLAGS="-I$TDB_ROOT/include -I$LIBJIO_ROOT/include -D_FILE_OFFSET_BITS=64"
31   export LDFLAGS="-L$TDB_ROOT/lib -L$LIBJIO_ROOT/lib"
32   python setup.py --build --prefix=%{i} --install --root=/
33  
39 mkdir -p %i/lib
40 mv %sitedir/tdb.so %i/lib
41
34   %files
35   %i

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines