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

Comparing COMP/CMSDIST/pyqt.spec (file contents):
Revision 1.5 by elmer, Tue Sep 22 14:49:43 2009 UTC vs.
Revision 1.6 by elmer, Tue Nov 3 15:21:50 2009 UTC

# Line 1 | Line 1
1   ### RPM external pyqt 4.5.4
2 < ## INITENV +PATH PYTHONPATH %i/lib/python2.4/site-packages
2 > ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3   ## BUILDIF case %cmsplatf in osx*) false;; *) true;; esac
4   Source: http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-%realversion.tar.gz
5   Requires: python
# Line 10 | Line 10 | Requires: sip
10   %setup -n PyQt-x11-gpl-%realversion
11  
12   %build
13 < echo yes | python ./configure.py -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
13 > echo yes | python ./configure.py --verbose -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
14                                   -e %i/include \
15                                  `find $QT_ROOT/include/ -type d | xargs -n 1 basename| grep -v include | xargs echo | sed -e 's| | --enable=|g;s|^|--enable=|'`
16  
# Line 44 | Line 44 | cat << \EOF_TOOLFILE >%i/etc/scram.d/pyq
44   <Client>
45   <Environment name=PYQT_BASE default="%i"></Environment>
46   </Client>
47 < <Runtime name=PYTHONPATH value="$PYQT_BASE/lib/python2.4/site-packages" type=path>
47 > <Runtime name=PYTHONPATH value="$PYQT_BASE/lib/python@PYTHONV@/site-packages" type=path>
48   <use name="python">
49   <use name="qt">
50   <use name="sip">
51   </Tool>
52   EOF_TOOLFILE
53 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
54 + perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
55  
56   %post
57   %{relocateConfig}etc/scram.d/pyqt

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines