ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/qt.spec
(Generate patch)

Comparing COMP/CMSDIST/qt.spec (file contents):
Revision 1.1 by eulisse, Fri Feb 24 08:01:52 2006 UTC vs.
Revision 1.42 by elmer, Sun Nov 8 03:14:50 2009 UTC

# Line 1 | Line 1
1 < ### RPM external qt 3.3.4
1 > ### RPM external qt 4.5.2
2   ## INITENV UNSET QMAKESPEC
3   ## INITENV SET QTDIR %i
4 < %define qttype %(echo %v | sed 's/[-0-9.]*//')
5 < %define qtversion %(echo %v | sed 's/-.*//')
6 < %if "%qttype" == ""
7 < %ifos darwin
8 <  %define type  mac
9 < %else
10 <  %define type  x11
11 < %endif
12 < %else
13 < %define type   %{qttype}
14 < %endif
15 <
16 < %if "%type" == "x11"
17 < %define sourcepkg 1
18 < %else
19 < %define sourcepkg 0
20 < %endif
21 <
22 < # Requires: zlib, ...
23 < Source0: ftp://ftp.trolltech.com/qt/source/%n-mac-free-%{qtversion}.tar.bz2
24 < Source1: ftp://ftp.trolltech.com/qt/source/%n-x11-free-%{qtversion}.tar.bz2
4 >
5 > Requires: libjpg
6 > Source0: ftp://ftp.trolltech.com/qt/source/%n-all-opensource-src-%{realversion}.tar.bz2
7  
8   %prep
9 < %setup -T -b %sourcepkg -n %n-%type-free-%{qtversion}
9 > %setup -T -b 0 -n %n-all-opensource-src-%{realversion}
10  
11   %build
12   unset QMAKESPEC || true
# Line 32 | Line 14 | 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 < echo yes | ./configure -prefix %i -thread -stl
18 < # install_framework is hosed
19 < perl -p -i -e 's/^install_framework:/install_framework:\ninstall_framework_no:/' src/Makefile
20 < make
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 -opensource -stl -no-openssl -L$LIBJPG_ROOT/lib -no-glib -no-libtiff -no-libpng -no-libmng -no-separate-debug-info -no-sql-odbc -no-sql-mysql $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 > # Remove the doc, as it is large and we don't need that in
45 > # our rpms (it is all available on the web in any case)
46 > rm -fR %i/doc
47 > # Remove also the demos and examples as they are not generally
48 > # useful from our rpm's and SW area
49 > rm -fR %i/demos
50 > rm -fR %i/examples
51 >
52 > # Qt itself has some paths that can only be overwritten by
53 > # using an appropriate `qt.conf`.
54 > # Without this qmake will complain whenever used in
55 > # a directory different than the build one.
56 > mkdir -p %i/bin
57 > cat << \EOF_QT_CONF >%i/bin/qt.conf
58 > [Paths]
59 > Prefix = %{i}
60 > EOF_QT_CONF
61 >
62 > # SCRAM ToolBox toolfile
63 > mkdir -p %i/etc/scram.d
64 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qtbase
65 > <doc type=BuildSystem::ToolDoc version=1.0>
66 > <Tool name=qtbase version=%v>
67 > <info url="http://www.trolltech.com/products/qt.html"></info>
68 > <LIB name=QtCore>
69 > <LIB name=QtXml>
70 > <Client>
71 > <Environment name=QT_BASE default="%i"></Environment>
72 > <Environment name=LIBDIR default="$QT_BASE/lib"></Environment>
73 > <Environment name=INCLUDE default="$QT_BASE/include"></Environment>
74 > <Environment name=INCLUDE default="$QT_BASE/include/Qt"></Environment>
75 > <Environment name=INCLUDE default="$QT_BASE/include/QtCore"></Environment>
76 > <Environment name=INCLUDE default="$QT_BASE/include/QtXml"></Environment>
77 > </Client>
78 > <Flags CPPDEFINES="QT_ALTERNATE_QTSMANIP QT_CLEAN_NAMESPACE QT_THREAD_SUPPORT">
79 > <Runtime name=PATH value="$QT_BASE/bin" type=path>
80 > <use name=zlib>
81 > </Tool>
82 > EOF_TOOLFILE
83 >
84 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qt3support
85 > <doc type=BuildSystem::ToolDoc version=1.0>
86 > <Tool name=qt3support version=%v>
87 > <info url="http://www.trolltech.com/products/qt.html"></info>
88 > <LIB name=Qt3Support>
89 > <Client>
90 > <Environment name=QT_BASE default="%i"></Environment>
91 > <Environment name=INCLUDE default="$QT_BASE/include/Qt3Support"></Environment>
92 > </Client>
93 > <Flags CPPDEFINES="QT3_SUPPORT">
94 > <use name=qtbase>
95 > </Tool>
96 > EOF_TOOLFILE
97 >
98 >
99 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qt
100 > <doc type=BuildSystem::ToolDoc version=1.0>
101 > <Tool name=qt version=%v>
102 > <info url="http://www.trolltech.com/products/qt.html"></info>
103 > <LIB name=QtOpenGL>
104 > <LIB name=QtGui>
105 > <Client>
106 > <Environment name=QT_BASE default="%i"></Environment>
107 > <Environment name=INCLUDE default="$QT_BASE/include/QtOpenGL"></Environment>
108 > <Environment name=INCLUDE default="$QT_BASE/include/QtGui"></Environment>
109 > </Client>
110 > <use name=qtbase>
111 > <use name=qt3support>
112 > <use name=X11>
113 > <use name=opengl>
114 > </Tool>
115 > EOF_TOOLFILE
116 >
117 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qtdesigner
118 > <doc type=BuildSystem::ToolDoc version=1.0>
119 > <Tool name=qtdesigner version=%v>
120 > <info url="http://www.trolltech.com/products/qt.html"></info>
121 > <LIB name=QtDesigner>
122 > <Client>
123 > <Environment name=QT_BASE default="%i"></Environment>
124 > <Environment name=INCLUDE default="$QT_BASE/include/QtDesigner"></Environment>
125 > </Client>
126 > <use name=qtbase>
127 > <use name=qt>
128 > </Tool>
129 > EOF_TOOLFILE
130 >
131 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qtextra
132 > <doc type=BuildSystem::ToolDoc version=1.0>
133 > <Tool name=qtextra version=%v>
134 > <info url="http://www.trolltech.com/products/qt.html"></info>
135 > <LIB name=QtScript>
136 > <Client>
137 > <Environment name=QT_BASE default="%i"></Environment>
138 > <Environment name=INCLUDE default="$QT_BASE/include/QtScript"></Environment>
139 > </Client>
140 > <use name=qtbase>
141 > </Tool>
142 > EOF_TOOLFILE
143 >
144 > %post
145 > %{relocateConfig}lib/libQt3Support.la    
146 > %{relocateConfig}lib/libQtSql.la
147 > %{relocateConfig}lib/libQtCLucene.la      
148 > %{relocateConfig}lib/libQtSvg.la
149 > %{relocateConfig}lib/libQtCore.la    
150 > %{relocateConfig}lib/libQtTest.la
151 > %{relocateConfig}lib/libQtGui.la      
152 > %{relocateConfig}lib/libQtWebKit.la
153 > %{relocateConfig}lib/libQtHelp.la    
154 > %{relocateConfig}lib/libQtXml.la
155 > %{relocateConfig}lib/libQtNetwork.la      
156 > %{relocateConfig}lib/libQtXmlPatterns.la
157 > %{relocateConfig}lib/libQtOpenGL.la    
158 > %{relocateConfig}lib/libQtScript.la    
159 > %{relocateConfig}etc/scram.d/qtbase
160 > %{relocateConfig}etc/scram.d/qt
161 > %{relocateConfig}etc/scram.d/qtdesigner
162 > %{relocateConfig}etc/scram.d/qtextra
163 > %{relocateConfig}etc/scram.d/qt3support
164 > %{relocateConfig}bin/qt.conf

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines