Revision: | 1.4 |
Committed: | Fri Jun 12 13:40:12 2009 UTC (15 years, 10 months ago) by eulisse |
Branch: | MAIN |
CVS Tags: | CMSSW_3_1_6, bhFor316v0, CMSSW_3_1_5, bhFor315v0, bhFor314v0, CMSSW_3_2_8, eskFor328, CMSSW_3_1_4, PerfSuiteDB_20090930, CMSSW_3_1_3, pe20090922b-ports, pe20090922a-ports, pe20090922a-for33X, ge20090922-ports, CMSSW_3_2_7, pe20090921d-ports, pe20090921d-for33X, ge20090921-ports, pe20090921c-ports, pe20090921c-for33X, pe20090921b-for33X, pe20090921a-ports, CMSSW_3_3_0_pre4, apFor330pre4v0, eskFor327, pe20090918a-ports, PerfSuiteDB_20090916, pe20090912a-ports-xdaq, pe20090911a-ports-xdaq, CMSSW_3_3_0_pre3, apFor330pre3v0, pe20090907a-ports, pe20090907a-for33X, CMSSW_3_3_0_pre2, apFor330pre2v1, apFor330pre2v0, CMSSW_3_2_6, PerfSuiteDB_20090904_almost_stable, pe20090904a-ports, pe20090904a-for33X, PerfSuiteDB_20090904, pe20090903b-for33X, eskFor326, pe20090903b-ports, pe20090903a-ports, pe20090903-for33X, PerfSuiteDB_20090901, CMSSW_3_3_0_pre1, forHEARTBEATr04, esk090827, pe20090827a-ports, pe20090827a-33X, pe20090826a-33X, pe20090826a-ports, RPMVERIFY_0_2, forHEARTBEATr01, CMSSW_3_2_5, smFor325v0, eskFor325, CMSSW_3_2_4_patch1, CMSSW_3_2_4, sm324p1a, CMSSW_3_2_3, apFor323v1, apFor323v0, DQMGUI_5_0_2, DQMGUI_5_0_1, DQMGUI_5_0_0, CMSSW_3_2_2_patch2, apFor322patch2v0, CMSSW_3_2_2_patch1, apFor322pa1v0, CMSSW_3_2_2, CMSSW_3_1_2, CMSSW_3_2_1-432, apFor322v0, dl090723, pe20090722b-31Xports-432, pe20090722a-31Xports-432, CMSSW_3_2_1, apFor321v0, apFor320onlv0, CMSSW_3_2_0, apFor320v1, apFor320v0, CMSSW_3_1_1_patch1, sm090716a_off, CMSSW_3_1_1_reallyThisTime, CMSSW_3_1_1, dl090707, pe20090707c-31Xports-432, pe20090707b-31Xports-432, pe20090707a-31Xports-432, pe20090706b-31Xports-432, pe20090706a-31Xports-432, CMSSW_3_1_0_patch1, pe20090701a-31Xports-432, CMSSW_3_1_0, CMSSW_3_1_0_pre11, dl090623 |
Changes since 1.3: | +22 -1 lines |
Log Message: | More fixes to pyqt. * Build all the Qt* modules, not only QtCore. * etc/profile.d/init-standalone.sh added, to get a working pyqt environment, even without scram. |
# | Content |
---|---|
1 | ### RPM external pyqt 4.5 |
2 | ## INITENV +PATH PYTHONPATH %i/lib/python2.4/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 |
6 | Requires: qt |
7 | Requires: sip |
8 | |
9 | %prep |
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 \ |
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 | |
17 | make %makeprocesses |
18 | |
19 | %install |
20 | make install |
21 | |
22 | mkdir -p %i/etc/profile.d |
23 | cat << \EOF_INIT_ME > %i/etc/profile.d/init-standalone.sh |
24 | #!/bin/sh |
25 | source @GCC_ROOT@/etc/profile.d/init.sh |
26 | source @BZ2LIB_ROOT@/etc/profile.d/init.sh |
27 | source @EXPAT_ROOT@/etc/profile.d/init.sh |
28 | source @DB4_ROOT@/etc/profile.d/init.sh |
29 | source @GDBM_ROOT@/etc/profile.d/init.sh |
30 | source @ZLIB_ROOT@/etc/profile.d/init.sh |
31 | source @OPENSSL_ROOT@/etc/profile.d/init.sh |
32 | source @PYTHON_ROOT@/etc/profile.d/init.sh |
33 | source @QT_ROOT@/etc/profile.d/init.sh |
34 | source @SIP_ROOT@/etc/profile.d/init.sh |
35 | source %i/etc/profile.d/init.sh |
36 | EOF_INIT_ME |
37 | |
38 | perl -p -i -e "s|\@([^@]*)\@|\$ENV{\$1}|" %i/etc/profile.d/init-standalone.sh |
39 | mkdir -p %i/etc/scram.d |
40 | cat << \EOF_TOOLFILE >%i/etc/scram.d/pyqt |
41 | <doc type=BuildSystem::ToolDoc version=1.0> |
42 | <Tool name=pyqt version=%v> |
43 | <info url="http://www.riverbankcomputing.co.uk/software/pyqt/intro"></info> |
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> |
48 | <use name="python"> |
49 | <use name="qt"> |
50 | <use name="sip"> |
51 | </Tool> |
52 | EOF_TOOLFILE |
53 | |
54 | %post |
55 | %{relocateConfig}etc/scram.d/pyqt |
56 | %{relocateConfig}etc/profile.d/init-standalone.sh |