qt/qt.spec

changeset 3
c2e6bf16b6f4
parent 1
52e8b53d33be
child 4
7118aa4adf88
equal deleted inserted replaced
0:33e55b4df288 1:4d0ca7be8c23
31 Distribution: MSvB Recherche Production 31 Distribution: MSvB Recherche Production
32 Class: EVAL 32 Class: EVAL
33 Group: Development 33 Group: Development
34 License: GPL 34 License: GPL
35 Version: 4.4.3 35 Version: 4.4.3
36 Release: 20081124 36 Release: 20081214
37 37
38 # build options 38 # build options
39 %option with_tools yes 39 %option with_tools yes
40 %option with_shared no 40 %option with_shared no
41 %option with_examples no 41 %option with_examples no
48 BuildRoot: %{l_buildroot} 48 BuildRoot: %{l_buildroot}
49 BuildPreReq: OpenPKG, openpkg >= 20050726, gcc, pkgconfig 49 BuildPreReq: OpenPKG, openpkg >= 20050726, gcc, pkgconfig
50 PreReq: OpenPKG, openpkg >= 20050726 50 PreReq: OpenPKG, openpkg >= 20050726
51 BuildPreReq: X11, png, mng, jpeg, tiff, mesa, xrender 51 BuildPreReq: X11, png, mng, jpeg, tiff, mesa, xrender
52 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender 52 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender
53 BuildPreReq: zlib, libiconv, sqlite, dbus, glib2 53 BuildPreReq: openssl, zlib, libiconv, sqlite, dbus
54 PreReq: zlib, libiconv, sqlite, dbus, glib2 54 PreReq: openssl, zlib, libiconv, sqlite, dbus
55 BuildPreReq: fontconfig, freetype 55 BuildPreReq: fontconfig, freetype
56 PreReq: fontconfig, freetype 56 PreReq: fontconfig, freetype
57 AutoReq: no 57 AutoReq: no
58 AutoReqProv: no 58 AutoReqProv: no
59 Provides: QTSDK 59 Provides: QTSDK
60 60
61 %description 61 %description
62 Qt is a cross-platform application framework. Using Qt, you can 62 Qt is a comprehensive C++ framework for cross-platform application
63 develop applications and user interfaces once, and deploy them 63 development. Using Qt, you can develop applications and user
64 across many desktop and embedded operating systems without 64 interfaces once, and deploy them across many desktop and embedded
65 rewriting the source code. 65 operating systems without rewriting the source code.
66 66
67 %track 67 %track
68 prog qt = { 68 prog qt = {
69 version = %{version} 69 version = %{version}
70 url = ftp://ftp.trolltech.com/qt/source/ 70 url = ftp://ftp.trolltech.com/qt/source/
76 ( echo "This package has exceptional storage requirements:" 76 ( echo "This package has exceptional storage requirements:"
77 echo " qt-%{version}-root (2,5 Go)" 77 echo " qt-%{version}-root (2,5 Go)"
78 echo " qt-x11-opensource-src-%{version} (4,5 Go)" 78 echo " qt-x11-opensource-src-%{version} (4,5 Go)"
79 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (1 Go)" 79 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (1 Go)"
80 echo "Building with no options takes 0,5 hours on a dual core" 80 echo "Building with no options takes 0,5 hours on a dual core"
81 echo "2 GHz CPU, or 1,5 hours with all build options enabled." 81 echo "2 GHz CPU, or 2 hours with all build options enabled."
82 ) | %{l_rpmtool} msg -b -t notice 82 ) | %{l_rpmtool} msg -b -t notice
83 83
84 %setup -q -n qt-x11-opensource-src-%{version} 84 %setup -q -n qt-x11-opensource-src-%{version}
85 x11_incdir=`%{l_rc} --query x11_incdir` 85 x11_incdir=`%{l_rc} --query x11_incdir`
86 x11_libdir=`%{l_rc} --query x11_libdir` 86 x11_libdir=`%{l_rc} --query x11_libdir`
135 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ 135 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \
136 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ 136 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \
137 mkspecs/qws/*/qmake.conf \ 137 mkspecs/qws/*/qmake.conf \
138 mkspecs/*/*.conf 138 mkspecs/*/*.conf
139 %{l_shtool} subst \ 139 %{l_shtool} subst \
140 -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \
141 src/corelib/corelib.pro
142 %{l_shtool} subst \
140 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \ 143 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \
141 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ 144 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \
142 mkspecs/qws/solaris*/qmake.conf \ 145 mkspecs/qws/solaris*/qmake.conf \
143 mkspecs/solaris*/qmake.conf 146 mkspecs/solaris*/qmake.conf
144 %{l_shtool} subst \ 147 %{l_shtool} subst \
155 %build 158 %build
156 # protect against sloppy code inclusion of all unused subprojects 159 # protect against sloppy code inclusion of all unused subprojects
157 rm -rf src/3rdparty/[^cdhmsw]* src/3rdparty/sql* src/3rdparty/win* 160 rm -rf src/3rdparty/[^cdhmsw]* src/3rdparty/sql* src/3rdparty/win*
158 161
159 case "%{l_platform -t}" in 162 case "%{l_platform -t}" in
160 *-aix* ) platcomp="aix-g++" ;; 163 *-aix* ) platcomp="aix-g++" ;;
161 *-freebsd* ) platcomp="freebsd-g++" ;; 164 *-freebsd* ) platcomp="freebsd-g++" ;;
162 *-hpux* ) platcomp="hpux-g++" ;; 165 *-hpux* ) platcomp="hpux-g++" ;;
163 *-irix* ) platcomp="irix-g++" ;; 166 *-irix* ) platcomp="irix-g++" ;;
164 *-linux* ) platcomp="linux-g++" ;; 167 *64-linux* ) platcomp="linux-g++-64" ;;
165 *-darwin* ) platcomp="macx-g++" ;; 168 *-linux* ) platcomp="linux-g++" ;;
166 *-sunos* ) platcomp="solaris-g++" ;; 169 *-darwin* ) platcomp="macx-g++" ;;
170 *-sunos* ) platcomp="solaris-g++" ;;
167 * ) echo "Platform '%{l_platform -t}' is not supported." 2>&1; exit 1 ;; 171 * ) echo "Platform '%{l_platform -t}' is not supported." 2>&1; exit 1 ;;
168 esac 172 esac
169 173
170 %if "%{with_shared}" == "yes" 174 %if "%{with_shared}" == "yes"
171 # optional shared build (precedes mandatory static build) 175 # optional shared build (precedes mandatory static build)
183 -demosdir %{l_prefix}/share/qt/demos \ 187 -demosdir %{l_prefix}/share/qt/demos \
184 -release \ 188 -release \
185 -shared \ 189 -shared \
186 -platform $platcomp \ 190 -platform $platcomp \
187 -no-sql-ibase \ 191 -no-sql-ibase \
188 -no-sql-mysql \ 192 -qt-sql-mysql \
189 -no-sql-odbc \ 193 -no-sql-odbc \
190 -no-sql-psql \ 194 -no-sql-psql \
191 -no-sql-sqlite2 \ 195 -no-sql-sqlite2 \
192 -qt-sql-sqlite \ 196 -qt-sql-sqlite \
193 -system-sqlite \ 197 -system-sqlite \
198 -openssl-linked \
194 -xmlpatterns \ 199 -xmlpatterns \
195 -svg \ 200 -svg \
196 -no-webkit \ 201 -no-webkit \
197 -system-zlib \ 202 -system-zlib \
198 -qt-gif \ 203 -qt-gif \
207 -dbus-linked \ 212 -dbus-linked \
208 -opengl \ 213 -opengl \
209 -xrender \ 214 -xrender \
210 -fontconfig \ 215 -fontconfig \
211 -freetype \ 216 -freetype \
212 -glib 217 -no-glib
213 218
219 # sadly, webkit and glib is broken in Qt 4.4.3.
214 # default options are implicitly used, und zwar... 220 # default options are implicitly used, und zwar...
215 #-no-fast -exceptions -accessibility -stl -qt3support -nis 221 #-no-fast -exceptions -accessibility -stl -qt3support -nis
216 #-sm -xshape -xinerama -xcursor -xfixes -xrandr -tablet -xkb 222 #-sm -xshape -xinerama -xcursor -xfixes -xrandr -tablet -xkb
217 223
218 # carry out shared build procedure 224 # carry out shared build procedure
250 -demosdir %{l_prefix}/share/qt/demos \ 256 -demosdir %{l_prefix}/share/qt/demos \
251 -release \ 257 -release \
252 -static \ 258 -static \
253 -platform $platcomp \ 259 -platform $platcomp \
254 -no-sql-ibase \ 260 -no-sql-ibase \
255 -no-sql-mysql \ 261 -qt-sql-mysql \
256 -no-sql-odbc \ 262 -no-sql-odbc \
257 -no-sql-psql \ 263 -no-sql-psql \
258 -no-sql-sqlite2 \ 264 -no-sql-sqlite2 \
259 -qt-sql-sqlite \ 265 -qt-sql-sqlite \
260 -system-sqlite \ 266 -system-sqlite \
267 -openssl-linked \
261 -xmlpatterns \ 268 -xmlpatterns \
262 -svg \ 269 -svg \
263 -no-webkit \ 270 -no-webkit \
264 -system-zlib \ 271 -system-zlib \
265 -qt-gif \ 272 -qt-gif \
274 -dbus-linked \ 281 -dbus-linked \
275 -opengl \ 282 -opengl \
276 -xrender \ 283 -xrender \
277 -fontconfig \ 284 -fontconfig \
278 -freetype \ 285 -freetype \
279 -glib 286 -no-glib
280 287
281 # default options are implicitly used, und zwar... 288 # default options are implicitly used, und zwar...
282 #-no-fast -exceptions -accessibility -stl -qt3support -nis 289 #-no-fast -exceptions -accessibility -stl -qt3support -nis
283 #-sm -xshape -xinerama -xcursor -xfixes -xrandr -tablet -xkb 290 #-sm -xshape -xinerama -xcursor -xfixes -xrandr -tablet -xkb
284 291
318 targets="$targets sub-tools-install_subtargets-ordered" 325 targets="$targets sub-tools-install_subtargets-ordered"
319 %endif 326 %endif
320 %if "%{with_examples}" == "yes" 327 %if "%{with_examples}" == "yes"
321 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered" 328 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered"
322 %endif 329 %endif
323 targets="$targets install_htmldocs install_translations install_qmake install_mkspecs" 330 targets="$targets install_htmldocs install_qchdocs install_docimages install_translations install_qmake install_mkspecs"
324 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" 331 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT"
325 332
326 %if "%{with_shared}" == "yes" 333 %if "%{with_shared}" == "yes"
327 # install shared libs and symlinks 334 # install shared libs and symlinks
328 %{l_shtool} mkdir -f -p -m 755 \ 335 %{l_shtool} mkdir -f -p -m 755 \

mercurial