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.1 by steen, Mon Apr 3 21:53:19 2006 UTC vs.
Revision 1.6 by ratnik, Wed Apr 18 23:46:02 2007 UTC

# Line 1 | Line 1
1   ### RPM external python-tdb 0.0.6
2 + Requires: gcc-wrapper
3   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2)
4 < %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 <
4 > ## INITENV +PATH PYTHONPATH %{i}/lib/python%{pythonv}
5  
6   Summary: Python binding for the Samba Trivial Database
7   Packager:Conrad Steenberg <conrad@hep.caltech.edu>
8   Vendor: Conrad Steenberg <conrad@hep.caltech.edu>
9  
10   Source: http://julian.ultralight.org/clarens/devel/%n-%v.tar.gz
11 < Requires: python tdb Pyrex
11 > Requires: python tdb pyrex
12  
13  
14   %description
# Line 28 | Line 25 | This binding exposes a low-level TDB int
25   %setup -n %n-%v
26  
27   %build
28 + ## IMPORT gcc-wrapper
29   mkdir build
30  
31 < %install
32 < set
33 < export CFLAGS="-I$TDB_ROOT/include"
34 < export LDFLAGS="-L$TDB_ROOT/lib"
35 < python setup.py --build --prefix=%{i} --install --root=/
31 > export CFLAGS="-I$TDB_ROOT/include -I$LIBJIO_ROOT/include -D_FILE_OFFSET_BITS=64"
32 > export LDFLAGS="-L$TDB_ROOT/lib -L$LIBJIO_ROOT/lib -ltdb -ljio"
33 > python setup.py --build --prefix=%i
34 > pwd
35 > find build
36 > echo $(find build -name tdb.so)
37 > cp $(find build -name tdb.so) .
38  
39 < mkdir -p %i/lib
40 < mv %sitedir/tdb.so %i/lib
39 > %install
40 > mkdir -p %{i}/lib/python%{pythonv}
41 > cp tdb.so %{i}/lib/python%{pythonv}
42  
42 %files
43 %i

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines