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.7 by eulisse, Tue Jan 5 10:02:28 2010 UTC vs.
Revision 1.15 by elmer, Mon Oct 25 17:34:16 2010 UTC

# Line 1 | Line 1
1 < ### RPM external pyqt 4.5.4
1 > ### RPM external pyqt 4.8
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
3   Source: http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-%realversion.tar.gz
4 < Patch0: pyqt-relocatable-build.patch
4 > Patch0: pyqt-relocatable-build
5   Requires: python
6   Requires: qt
7   Requires: sip
# Line 12 | Line 11 | Requires: sip
11   # pyqt builds and uses an helper program "qtdirs" to determine where qt is installed.
12   # We had to patch its sources so that it reads the configuration file qt.conf
13   # like other qt applications, so that we get the correctly relocated information.
14 < # Notice that in %build we copy qt.conf from the QT installation to get the correct
15 < # location.
14 > # Notice that in the build section we copy qt.conf from the QT installation to
15 > # get the correct location.
16   %patch0 -p1
17  
18   %build
# Line 46 | Line 45 | source %i/etc/profile.d/init.sh
45   EOF_INIT_ME
46  
47   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>
62 EOF_TOOLFILE
63 export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
64 perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
48  
49   %post
67 %{relocateConfig}etc/scram.d/pyqt
50   %{relocateConfig}etc/profile.d/init-standalone.sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines