qt/qt.spec

changeset 205
a7c3336b8dc2
parent 94
0bb9d0584d2a
child 206
3309487768d4
equal deleted inserted replaced
9:14c552190e3f 10:b0539b57e4d6
26 # FIXME: MSvB: 'ld: libQt*.so: pthread_mutex...: invalid version 6 26 # FIXME: MSvB: 'ld: libQt*.so: pthread_mutex...: invalid version 6
27 # FIXME: MSvB: libQt*.so: could not read symbols: Bad value' 27 # FIXME: MSvB: libQt*.so: could not read symbols: Bad value'
28 # FIXME: MSvB: The effects of these bugs are platform dependent. 28 # FIXME: MSvB: The effects of these bugs are platform dependent.
29 # FIXME: MSvB: Solaris 11 IA-32 builds fail while Linux 2.6.25.18 29 # FIXME: MSvB: Solaris 11 IA-32 builds fail while Linux 2.6.25.18
30 # FIXME: MSvB: AMD64 builds succeed. 30 # FIXME: MSvB: AMD64 builds succeed.
31 # FIXME: MSvB:
32 # FIXME: MSvB: The webkit is flawed in Qt 4.4.3, and has been disabled
33 # FIXME: MSvB: in this build until a new release corrects the problem.
34 31
35 # package information 32 # package information
36 Name: qt 33 Name: qt
37 Summary: Cross-platform Application Framework 34 Summary: Cross-platform Application Framework
38 URL: http://www.trolltech.com/products/qt/ 35 URL: http://www.trolltech.com/products/qt/
40 Packager: Michael Schloh von Bennewitz 37 Packager: Michael Schloh von Bennewitz
41 Distribution: MSvB Recherche Production 38 Distribution: MSvB Recherche Production
42 Class: EVAL 39 Class: EVAL
43 Group: Development 40 Group: Development
44 License: GPL 41 License: GPL
45 Version: 4.4.3 42 Version: 4.5.2
46 Release: 20090106 43 Release: 20090702
47 44
48 # build options 45 # build options
49 %option with_tools yes 46 %option with_tools yes
50 %option with_mysql no 47 %option with_mysql no
51 %option with_pgsql no 48 %option with_pgsql no
140 config.tests/unix/freetype/freetype.pri 137 config.tests/unix/freetype/freetype.pri
141 %{l_shtool} subst \ 138 %{l_shtool} subst \
142 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \ 139 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \
143 config.tests/x11/fontconfig/fontconfig.pro 140 config.tests/x11/fontconfig/fontconfig.pro
144 %{l_shtool} subst \ 141 %{l_shtool} subst \
145 -e "s;\(LIBS += -lpq\);\1 -lssl -lcrypto $loclibs;" \ 142 -e "s;\(LIBS += -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \
146 config.tests/unix/psql/psql.pro 143 config.tests/unix/psql/psql.pro
147 %{l_shtool} subst \ 144 %{l_shtool} subst \
148 -e 's;^mac:\(LIBS\);\1;' \ 145 -e 's;^mac:\(LIBS\);\1;' \
149 config.tests/unix/iconv/iconv.pro 146 config.tests/unix/iconv/iconv.pro
150 %{l_shtool} subst \ 147 %{l_shtool} subst \
226 223
227 %if "%{with_shared}" == "yes" 224 %if "%{with_shared}" == "yes"
228 # optional shared build (precedes mandatory static build) 225 # optional shared build (precedes mandatory static build)
229 echo 'yes' | ./configure \ 226 echo 'yes' | ./configure \
230 $archflags \ 227 $archflags \
228 -opensource \
231 -prefix %{l_prefix} \ 229 -prefix %{l_prefix} \
232 -bindir %{l_prefix}/bin \ 230 -bindir %{l_prefix}/bin \
233 -libdir %{l_prefix}/lib/qt \ 231 -libdir %{l_prefix}/lib/qt \
234 -docdir %{l_prefix}/share/qt/doc \ 232 -docdir %{l_prefix}/share/qt/doc \
235 -headerdir %{l_prefix}/include \ 233 -headerdir %{l_prefix}/include \
261 -plugin-sql-sqlite \ 259 -plugin-sql-sqlite \
262 -no-sql-sqlite2 \ 260 -no-sql-sqlite2 \
263 -openssl-linked \ 261 -openssl-linked \
264 -xmlpatterns \ 262 -xmlpatterns \
265 -svg \ 263 -svg \
266 -no-webkit \
267 -system-zlib \ 264 -system-zlib \
268 -qt-gif \ 265 -qt-gif \
269 -system-libpng \ 266 -system-libpng \
270 -system-libmng \ 267 -system-libmng \
271 -system-libjpeg \ 268 -system-libjpeg \
292 %{l_make} %{l_mflags -O} \ 289 %{l_make} %{l_mflags -O} \
293 sub-corelib sub-xml sub-network sub-gui sub-sql \ 290 sub-corelib sub-xml sub-network sub-gui sub-sql \
294 sub-script sub-testlib sub-qt3support sub-dbus \ 291 sub-script sub-testlib sub-qt3support sub-dbus \
295 sub-opengl sub-xmlpatterns sub-svg sub-plugins 292 sub-opengl sub-xmlpatterns sub-svg sub-plugins
296 ) || exit $? 293 ) || exit $?
294
295 # arthur plugin requires libQtDesigner
297 ( cd demos 296 ( cd demos
297 ( cd ../tools/designer/src/lib
298 %{l_make} %{l_mflags -O} staticlib
299 ) || exit $?
298 %{l_make} %{l_mflags -O} sub-arthurplugin 300 %{l_make} %{l_mflags -O} sub-arthurplugin
301 ( cd ../tools/designer/src/lib
302 %{l_make} %{l_mflags -O} distclean
303 ) || exit $?
299 ) || exit $? 304 ) || exit $?
300 305
301 # cache shared libs and initialize the build configuration, which 306 # cache shared libs and initialize the build configuration, which
302 # would otherwise still contain references to our shared libs build 307 # would otherwise still contain references to our shared libs build
303 %{l_shtool} mkdir -f -p -m 755 dynamic 308 %{l_shtool} mkdir -f -p -m 755 dynamic
309 %endif 314 %endif
310 315
311 # mandatory static build (follows optional shared build) 316 # mandatory static build (follows optional shared build)
312 echo 'yes' | ./configure \ 317 echo 'yes' | ./configure \
313 $archflags \ 318 $archflags \
319 -opensource \
314 -prefix %{l_prefix} \ 320 -prefix %{l_prefix} \
315 -bindir %{l_prefix}/bin \ 321 -bindir %{l_prefix}/bin \
316 -libdir %{l_prefix}/lib \ 322 -libdir %{l_prefix}/lib \
317 -docdir %{l_prefix}/share/qt/doc \ 323 -docdir %{l_prefix}/share/qt/doc \
318 -headerdir %{l_prefix}/include \ 324 -headerdir %{l_prefix}/include \
341 -qt-sql-sqlite \ 347 -qt-sql-sqlite \
342 -no-sql-sqlite2 \ 348 -no-sql-sqlite2 \
343 -openssl-linked \ 349 -openssl-linked \
344 -xmlpatterns \ 350 -xmlpatterns \
345 -svg \ 351 -svg \
346 -no-webkit \
347 -system-zlib \ 352 -system-zlib \
348 -qt-gif \ 353 -qt-gif \
349 -system-libpng \ 354 -system-libpng \
350 -system-libmng \ 355 -system-libmng \
351 -system-libjpeg \ 356 -system-libjpeg \
432 echo "please direct pkg-config(1) to use the properdefinitions" 437 echo "please direct pkg-config(1) to use the properdefinitions"
433 echo "by setting the environment variable PKG_CONFIG_PATH to " 438 echo "by setting the environment variable PKG_CONFIG_PATH to "
434 echo "%{l_prefix}/lib/qt/dynamic/pkgconfig." 439 echo "%{l_prefix}/lib/qt/dynamic/pkgconfig."
435 ) >$RPM_BUILD_ROOT%{l_prefix}/lib/qt/README 440 ) >$RPM_BUILD_ROOT%{l_prefix}/lib/qt/README
436 441
437 # remove unbuilt component link files
438 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/libQtWebKit*
439 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/pkgconfig/QtWebKit*
440
441 # remove temporary dynamic link paths 442 # remove temporary dynamic link paths
442 %{l_shtool} subst \ 443 %{l_shtool} subst \
443 -e "s;-L\([\t ]*\)[^\t ][^\t ]*qt-x11-opensource-src-%{version}\(/[^\t ][^\t ]*\);-L\1%{l_prefix}\2;g" \ 444 -e "s;-L\([\t ]*\)[^\t ][^\t ]*qt-x11-opensource-src-%{version}\(/[^\t ][^\t ]*\);-L\1%{l_prefix}\2;g" \
444 -e "s;\([\t ][\t ]*\)[^\t ][^\t ]*\(qt-x11-opensource-src-%{version}.*\);\1/tmp/\2;" \ 445 -e "s;\([\t ][\t ]*\)[^\t ][^\t ]*\(qt-x11-opensource-src-%{version}.*\);\1/tmp/\2;" \
445 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \ 446 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \

mercurial