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: |
31 # FIXME: MSvB: |
32 # FIXME: MSvB: -no-webkit added to broken static buildconf |
32 # FIXME: MSvB: -no-webkit added to broken static buildconf |
33 # FIXME: MSvB: as work around for 'ld: cannot find -ljscore' |
33 # FIXME: MSvB: as work around for 'ld: cannot find -ljscore' |
34 # FIXME: MSvB: |
|
35 # FIXME: MSvB: Test all of -R %{l_prefix}/lib/qt/dynamic, |
|
36 # FIXME: MSvB: -no-rpath, -rpath, and removing $xll_libdir from |
|
37 # FIXME: MSvB: shtool subst. Anschliessend mkspecs/qconfig.pri. |
|
38 |
34 |
39 # package information |
35 # package information |
40 Name: qt |
36 Name: qt |
41 Summary: Cross Platform Application Framework |
37 Summary: Cross Platform Application Framework |
42 URL: http://www.trolltech.com/products/qt/ |
38 URL: http://www.trolltech.com/products/qt/ |
97 } |
93 } |
98 |
94 |
99 %prep |
95 %prep |
100 # announce exceptional build requirements |
96 # announce exceptional build requirements |
101 ( echo "This package has exceptional build requirements:" |
97 ( echo "This package has exceptional build requirements:" |
102 echo " qt-%{version}-root (2,5 Go)" |
98 echo " qt-%{version}-root (4,5 Go)" |
103 echo " qt-everywhere-opensource-src-%{version} (5,5 Go)" |
99 echo " qt-everywhere-opensource-src-%{version} (5,5 Go)" |
104 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (2 Go)" |
100 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (2 Go)" |
105 echo "Building with no options takes 2,0 hours on a dual core" |
101 echo "Building with no options takes 2,0 hours on a dual core" |
106 echo "2 GHz CPU, or 6 hours with all build options enabled." |
102 echo "2 GHz CPU, or 5 hours with all build options enabled." |
107 ) | %{l_rpmtool} msg -b -t notice |
103 ) | %{l_rpmtool} msg -b -t notice |
108 |
104 |
109 %setup -q -n qt-everywhere-opensource-src-%{version} |
105 %setup -q -n qt-everywhere-opensource-src-%{version} |
110 x11_incdir=`%{l_rc} --query x11_incdir` |
106 x11_incdir=`%{l_rc} --query x11_incdir` |
111 x11_libdir=`%{l_rc} --query x11_libdir` |
107 x11_libdir=`%{l_rc} --query x11_libdir` |
128 %{l_shtool} subst \ |
124 %{l_shtool} subst \ |
129 -e 's;\(-z[\t ][\t ]*\)\([^\t \"][^\t \"]*\);\1"\2";g' \ |
125 -e 's;\(-z[\t ][\t ]*\)\([^\t \"][^\t \"]*\);\1"\2";g' \ |
130 configure |
126 configure |
131 %{l_shtool} subst \ |
127 %{l_shtool} subst \ |
132 -e 's;\(RPATH_FLAGS\)=.*\$QT_INSTALL_LIBS.*\(\$RPATH_FLAGS\)";\1="%{l_prefix}/lib/qt/dynamic \2";' \ |
128 -e 's;\(RPATH_FLAGS\)=.*\$QT_INSTALL_LIBS.*\(\$RPATH_FLAGS\)";\1="%{l_prefix}/lib/qt/dynamic \2";' \ |
|
129 -e 's;\(QMAKE_RPATHDIR +=\) \\"\$QT_INSTALL_LIBS\\";\1 %{l_prefix}/lib/qt/dynamic;' \ |
133 configure |
130 configure |
134 %{l_shtool} subst \ |
131 %{l_shtool} subst \ |
135 -e 's; *QMakeVar set QMAKE_CFLAGS_X11.*QT_CFLAGS_FONTCONFIG.*;;' \ |
132 -e 's; *QMakeVar set QMAKE_CFLAGS_X11.*QT_CFLAGS_FONTCONFIG.*;;' \ |
136 -e 's; *QMakeVar set QMAKE_LIBS_X11.*QT_LIBS_FONTCONFIG.*;;' \ |
133 -e 's; *QMakeVar set QMAKE_LIBS_X11.*QT_LIBS_FONTCONFIG.*;;' \ |
137 configure |
134 configure |
220 tools/qtconfig/qtconfig.pro |
217 tools/qtconfig/qtconfig.pro |
221 #%{l_shtool} subst \ |
218 #%{l_shtool} subst \ |
222 # -e "s;\(\\title\) All Classes;\1 Qt's Classes;" \ |
219 # -e "s;\(\\title\) All Classes;\1 Qt's Classes;" \ |
223 # doc/src/classes.qdoc |
220 # doc/src/classes.qdoc |
224 %{l_shtool} subst \ |
221 %{l_shtool} subst \ |
225 -e "s;Qt's Classes;All Classes;" \ |
222 -e "s;Qt.s Classes;All Classes;" \ |
226 tools/assistant/tools/assistant/doc/assistant.qdoc \ |
223 tools/assistant/tools/assistant/doc/assistant.qdoc \ |
227 tools/qdoc3/doc/qdoc-manual.qdoc \ |
224 tools/qdoc3/doc/qdoc-manual.qdoc \ |
228 tools/qdoc3/doc/files/qt.qdocconf \ |
225 tools/qdoc3/doc/files/qt.qdocconf \ |
229 tools/qdoc3/test/qt-build-docs.qdocconf \ |
226 tools/qdoc3/test/qt-build-docs.qdocconf \ |
230 tools/qdoc3/test/qt.qdocconf |
227 tools/qdoc3/test/qt.qdocconf |
479 |
476 |
480 # only install static or shared plugins according to user choice |
477 # only install static or shared plugins according to user choice |
481 %if "%{with_shared}" != "yes" |
478 %if "%{with_shared}" != "yes" |
482 %{l_make} %{l_mflags} sub-plugins-install_subtargets-ordered INSTALL_ROOT="$RPM_BUILD_ROOT" |
479 %{l_make} %{l_mflags} sub-plugins-install_subtargets-ordered INSTALL_ROOT="$RPM_BUILD_ROOT" |
483 %else |
480 %else |
484 %{l_tar} cf - sharbuild/plugins | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
481 %{l_tar} cf - -C sharbuild plugins | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
485 %endif |
482 %endif |
486 |
483 |
487 %if "%{with_shared}" == "yes" |
484 %if "%{with_shared}" == "yes" |
488 # install shared libs and symlinks |
485 # install shared libs and symlinks |
489 %{l_shtool} mkdir -f -p -m 755 \ |
486 %{l_shtool} mkdir -f -p -m 755 \ |
490 $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
487 $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
491 %{l_tar} cf - sharbuild/dynamic | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
488 %{l_tar} cf - -C sharbuild dynamic | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
492 |
489 |
493 # offer limited support of pkg-config(1) for shared libs |
490 # offer limited support of pkg-config(1) for shared libs |
494 # substitution unfortunately only handles paths with no whitespace |
491 # substitution unfortunately only handles paths with no whitespace |
495 %{l_shtool} subst \ |
492 %{l_shtool} subst \ |
496 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};g" \ |
493 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};g" \ |