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.8 by eulisse, Tue Jan 5 10:40:53 2010 UTC vs.
Revision 1.10 by muzaffar, Tue Apr 20 08:12:51 2010 UTC

# Line 12 | Line 12 | Requires: sip
12   # pyqt builds and uses an helper program "qtdirs" to determine where qt is installed.
13   # We had to patch its sources so that it reads the configuration file qt.conf
14   # like other qt applications, so that we get the correctly relocated information.
15 < # Notice that in %build we copy qt.conf from the QT installation to get the correct
16 < # location.
15 > # Notice that in the build section we copy qt.conf from the QT installation to
16 > # get the correct location.
17   %patch0 -p1
18  
19   %build
# Line 47 | Line 47 | EOF_INIT_ME
47  
48   perl -p -i -e "s|\@([^@]*)\@|\$ENV{\$1}|" %i/etc/profile.d/init-standalone.sh
49   mkdir -p %i/etc/scram.d
50 < cat << \EOF_TOOLFILE >%i/etc/scram.d/pyqt
51 < <doc type=BuildSystem::ToolDoc version=1.0>
52 < <Tool name=pyqt version=%v>
53 < <info url="http://www.riverbankcomputing.co.uk/software/pyqt/intro"></info>
54 < <Client>
55 < <Environment name=PYQT_BASE default="%i"></Environment>
56 < </Client>
57 < <Runtime name=PYTHONPATH value="$PYQT_BASE/lib/python@PYTHONV@/site-packages" type=path>
58 < <use name="python">
59 < <use name="qt">
60 < <use name="sip">
61 < </Tool>
50 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
51 >  <tool name="%n" version="%v">
52 >    <info url="http://www.riverbankcomputing.co.uk/software/pyqt/intro"/>
53 >    <client>
54 >      <environment name="PYQT_BASE" default="%i"/>
55 >    </client>
56 >    <runtime name="PYTHONPATH" value="$PYQT_BASE/lib/python@PYTHONV@/site-packages" type="path"/>
57 >    <use name="python"/>
58 >    <use name="qt"/>
59 >    <use name="sip"/>
60 >  </tool>
61   EOF_TOOLFILE
62   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
63   perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
64  
65   %post
66 < %{relocateConfig}etc/scram.d/pyqt
66 > %{relocateConfig}etc/scram.d/%n.xml
67   %{relocateConfig}etc/profile.d/init-standalone.sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines