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.2 by eulisse, Wed Jun 10 13:40:08 2009 UTC vs.
Revision 1.10 by muzaffar, Tue Apr 20 08:12:51 2010 UTC

# Line 1 | Line 1
1 < ### RPM external pyqt 4.5
2 < ## INITENV +PATH PYTHONPATH %i/lib/python2.4/site-packages
1 > ### RPM external pyqt 4.5.4
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 + Patch0: pyqt-relocatable-build
6   Requires: python
7   Requires: qt
8   Requires: sip
9  
10   %prep
11   %setup -n PyQt-x11-gpl-%realversion
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 the build section we copy qt.conf from the QT installation to
16 + # get the correct location.
17 + %patch0 -p1
18  
19   %build
20 < echo yes | python ./configure.py -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages -e %i/include --no-sip-files --no-designer-plugin
20 > # See above for explanation.
21 > cp $QT_ROOT/bin/qt.conf .
22 >
23 > echo yes | python ./configure.py --verbose -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
24 >                                 -e %i/include \
25 >                                `find $QT_ROOT/include/ -type d | xargs -n 1 basename| grep -v include | xargs echo | sed -e 's| | --enable=|g;s|^|--enable=|'`
26 >
27   make %makeprocesses
28  
29   %install
30   make install
31  
32 + mkdir -p %i/etc/profile.d
33 + cat << \EOF_INIT_ME > %i/etc/profile.d/init-standalone.sh
34 + #!/bin/sh
35 + source @GCC_ROOT@/etc/profile.d/init.sh
36 + source @BZ2LIB_ROOT@/etc/profile.d/init.sh
37 + source @EXPAT_ROOT@/etc/profile.d/init.sh
38 + source @DB4_ROOT@/etc/profile.d/init.sh
39 + source @GDBM_ROOT@/etc/profile.d/init.sh
40 + source @ZLIB_ROOT@/etc/profile.d/init.sh
41 + source @OPENSSL_ROOT@/etc/profile.d/init.sh
42 + source @PYTHON_ROOT@/etc/profile.d/init.sh
43 + source @QT_ROOT@/etc/profile.d/init.sh
44 + source @SIP_ROOT@/etc/profile.d/init.sh
45 + source %i/etc/profile.d/init.sh
46 + 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 < <Environment name=PYTHONPATH default="$PYQT_BASE/lib/python2.4/site-packages"></Environment>
57 < </Client>
58 < <Runtime name=PYTHONPATH value="$PYQT_BASE/lib/python2.4/site-packages" type=path>
59 < <use name="python">
60 < <use name="qt">
31 < </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