ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/qt.spec
Revision: 1.27
Committed: Wed Jan 28 15:40:53 2009 UTC (16 years, 3 months ago) by eulisse
Branch: MAIN
CVS Tags: zx20090209, zx20090201
Changes since 1.26: +41 -2 lines
Log Message:
Few more extra fixes to the qt toolfile.

* Correctly names QtXml.
* Adds include/Qt to the include path.
* Relocates the .la files correctly.

File Contents

# Content
1 ### RPM external qt 4.4.3
2 ## INITENV UNSET QMAKESPEC
3 ## INITENV SET QTDIR %i
4
5 # Requires: zlib, ...
6 Source0: ftp://ftp.trolltech.com/qt/source/%n-all-opensource-src-%{realversion}.tar.bz2
7
8 %prep
9 %setup -T -b 0 -n %n-all-opensource-src-%{realversion}
10
11 %build
12 unset QMAKESPEC || true
13 export QTDIR=$PWD
14 export PATH=$QTDIR/bin:$PATH
15 export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
16 export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
17
18 case %cmsplatf in
19 slc*_amd64*)
20 export CONFIG_ARGS="-platform linux-g++-64"
21 ;;
22 osx*)
23 export CONFIG_ARGS="-no-framework"
24 ;;
25 esac
26
27 echo yes | ./configure -prefix %i -stl -no-openssl $CONFIG_ARGS
28
29 # The following is a kludge around the fact that the fact that the
30 # /usr/lib/libfontconfig.so soft link (for 32-bit lib) is missing
31 # on the 64-bit machines
32 case %cmsplatf in
33 slc*_ia32*)
34 mkdir -p %{_builddir}/lib
35 ln -s /usr/lib/libfontconfig.so.1 %{_builddir}/%n-all-opensource-src-%{realversion}/lib/libfontconfig.so
36 ;;
37 esac
38
39 make %makeprocesses
40
41 %install
42 make install
43
44 # SCRAM ToolBox toolfile
45 mkdir -p %i/etc/scram.d
46 cat << \EOF_TOOLFILE >%i/etc/scram.d/qtbase
47 <doc type=BuildSystem::ToolDoc version=1.0>
48 <Tool name=qtbase version=%v>
49 <info url="http://www.trolltech.com/products/qt.html"></info>
50 <LIB name=QtCore>
51 <LIB name=QtXml>
52 <Client>
53 <Environment name=QT_BASE default="%i"></Environment>
54 <Environment name=LIBDIR default="$QT_BASE/lib"></Environment>
55 <Environment name=INCLUDE default="$QT_BASE/include"></Environment>
56 <Environment name=INCLUDE default="$QT_BASE/include/Qt"></Environment>
57 </Client>
58 <Flags CPPDEFINES="QT_ALTERNATE_QTSMANIP QT_CLEAN_NAMESPACE QT_THREAD_SUPPORT">
59 <Runtime name=PATH value="$QT_BASE/bin" type=path>
60 <use name=zlib>
61 </Tool>
62 EOF_TOOLFILE
63
64 cat << \EOF_TOOLFILE >%i/etc/scram.d/qt
65 <doc type=BuildSystem::ToolDoc version=1.0>
66 <Tool name=qt version=%v>
67 <info url="http://www.trolltech.com/products/qt.html"></info>
68 <LIB name=QtOpenGL>
69 <LIB name=QtGui>
70 <use name=qtbase>
71 <use name=X11>
72 <use name=opengl>
73 </Tool>
74 EOF_TOOLFILE
75
76 cat << \EOF_TOOLFILE >%i/etc/scram.d/qtdesigner
77 <doc type=BuildSystem::ToolDoc version=1.0>
78 <Tool name=qtdesigner version=%v>
79 <info url="http://www.trolltech.com/products/qt.html"></info>
80 <LIB name=QtDesigner>
81 <use name=qtinteractive>
82 </Tool>
83 EOF_TOOLFILE
84
85 cat << \EOF_TOOLFILE >%i/etc/scram.d/qtextra
86 <doc type=BuildSystem::ToolDoc version=1.0>
87 <Tool name=qtextra version=%v>
88 <info url="http://www.trolltech.com/products/qt.html"></info>
89 <LIB name=QtScripts>
90 <use name=qtbase>
91 </Tool>
92 EOF_TOOLFILE
93
94 %post
95 %{relocateConfig}lib/libQt3Support.la
96 %{relocateConfig}lib/libQtScript_debug.la
97 %{relocateConfig}lib/libQt3Support_debug.la
98 %{relocateConfig}lib/libQtSql.la
99 %{relocateConfig}lib/libQtCLucene.la
100 %{relocateConfig}lib/libQtSql_debug.la
101 %{relocateConfig}lib/libQtCLucene_debug.la
102 %{relocateConfig}lib/libQtSvg.la
103 %{relocateConfig}lib/libQtCore.la
104 %{relocateConfig}lib/libQtSvg_debug.la
105 %{relocateConfig}lib/libQtCore_debug.la
106 %{relocateConfig}lib/libQtTest.la
107 %{relocateConfig}lib/libQtGui.la
108 %{relocateConfig}lib/libQtTest_debug.la
109 %{relocateConfig}lib/libQtGui_debug.la
110 %{relocateConfig}lib/libQtWebKit.la
111 %{relocateConfig}lib/libQtHelp.la
112 %{relocateConfig}lib/libQtWebKit_debug.la
113 %{relocateConfig}lib/libQtHelp_debug.la
114 %{relocateConfig}lib/libQtXml.la
115 %{relocateConfig}lib/libQtNetwork.la
116 %{relocateConfig}lib/libQtXmlPatterns.la
117 %{relocateConfig}lib/libQtNetwork_debug.la
118 %{relocateConfig}lib/libQtXmlPatterns_debug.la
119 %{relocateConfig}lib/libQtOpenGL.la
120 %{relocateConfig}lib/libQtXml_debug.la
121 %{relocateConfig}lib/libQtOpenGL_debug.la
122 %{relocateConfig}lib/libphonon.la
123 %{relocateConfig}lib/libQtScript.la
124 %{relocateConfig}lib/libphonon_debug.la
125 %{relocateConfig}etc/scram.d/%n