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.1 by eulisse, Fri Feb 20 10:36:27 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.4.4
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   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 -e %i/include --no-sip-files --no-designer-plugin
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 >
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/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
58 + %{relocateConfig}etc/profile.d/init-standalone.sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines