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.4 by steen, Thu Apr 27 00:14:44 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 30 | Line 26 | This binding exposes a low-level TDB int
26   %build
27   mkdir build
28  
33 %install
34 set
29   export CFLAGS="-I$TDB_ROOT/include -I$LIBJIO_ROOT/include -D_FILE_OFFSET_BITS=64"
30   export LDFLAGS="-L$TDB_ROOT/lib -L$LIBJIO_ROOT/lib"
31 < python setup.py --build --prefix=%{i} --install --root=/
31 > python setup.py --build --prefix=%i
32 > pwd
33 > find build
34 > echo $(find build -name tdb.so)
35 > cp $(find build -name tdb.so) .
36  
37 < mkdir -p %i/lib
38 < mv %sitedir/tdb.so %i/lib
37 > %install
38 > mkdir -p %{i}/lib/python%{pythonv}
39 > cp tdb.so %{i}/lib/python%{pythonv}
40  
42 %files
43 %i

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines