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/ |
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 \ |
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 \ |
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 \ |