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: |
31 # FIXME: MSvB: |
32 # FIXME: MSvB: GNU iconv integration is flawed in Qt 4.5.2, and |
32 # FIXME: MSvB: -no-webkit added to broken static buildconf |
33 # FIXME: MSvB: has been disabled in this build until a new release |
|
34 # FIXME: MSvB: corrects the problem. |
|
35 |
33 |
36 # package information |
34 # package information |
37 Name: qt |
35 Name: qt |
38 Summary: Cross Platform Application Framework |
36 Summary: Cross Platform Application Framework |
39 URL: http://www.trolltech.com/products/qt/ |
37 URL: http://www.trolltech.com/products/qt/ |
41 Packager: Michael Schloh von Bennewitz |
39 Packager: Michael Schloh von Bennewitz |
42 Distribution: MSvB Recherche Production |
40 Distribution: MSvB Recherche Production |
43 Class: EVAL |
41 Class: EVAL |
44 Group: Development |
42 Group: Development |
45 License: GPL |
43 License: GPL |
46 Version: 4.5.3 |
44 Version: 4.7.0 |
47 Release: 20091001 |
45 Release: 20101008 |
48 |
46 |
49 # build options |
47 # build options |
50 %option with_tools yes |
48 %option with_tools yes |
51 %option with_mysql no |
49 %option with_mysql no |
52 %option with_pgsql no |
50 %option with_pgsql no |
53 %option with_shared no |
51 %option with_shared no |
54 %option with_examples no |
52 %option with_examples no |
55 |
53 |
56 # list of sources |
54 # list of sources |
57 Source0: ftp://ftp.qt.nokia.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz |
55 Source0: ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-%{version}.tar.gz |
58 |
56 |
59 # build information |
57 # build information |
60 Prefix: %{l_prefix} |
58 Prefix: %{l_prefix} |
61 BuildRoot: %{l_buildroot} |
59 BuildRoot: %{l_buildroot} |
62 BuildPreReq: OpenPKG, openpkg >= 20050726, make, gcc, pkgconfig |
60 BuildPreReq: OpenPKG, openpkg >= 20050726, make, gcc, pkgconfig |
88 |
86 |
89 %track |
87 %track |
90 prog qt = { |
88 prog qt = { |
91 version = %{version} |
89 version = %{version} |
92 url = ftp://ftp.trolltech.com/qt/source/ |
90 url = ftp://ftp.trolltech.com/qt/source/ |
93 regex = qt-x11-opensource-src-(__VER__)\.tar\.gz |
91 regex = qt-everywhere-opensource-src-(__VER__)\.tar\.gz |
94 } |
92 } |
95 |
93 |
96 %prep |
94 %prep |
97 # announce exceptional build requirements |
95 # announce exceptional build requirements |
98 ( echo "This package has exceptional storage requirements:" |
96 ( echo "This package has exceptional build requirements:" |
99 echo " qt-%{version}-root (2,5 Go)" |
97 echo " qt-%{version}-root (2,5 Go)" |
100 echo " qt-x11-opensource-src-%{version} (4,5 Go)" |
98 echo " qt-everywhere-opensource-src-%{version} (4,5 Go)" |
101 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (1 Go)" |
99 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (1 Go)" |
102 echo "Building with no options takes 0,5 hours on a dual core" |
100 echo "Building with no options takes 0,5 hours on a dual core" |
103 echo "2 GHz CPU, or 2 hours with all build options enabled." |
101 echo "2 GHz CPU, or 2 hours with all build options enabled." |
104 ) | %{l_rpmtool} msg -b -t notice |
102 ) | %{l_rpmtool} msg -b -t notice |
105 |
103 |
106 %setup -q -n qt-x11-opensource-src-%{version} |
104 %setup -q -n qt-everywhere-opensource-src-%{version} |
107 x11_incdir=`%{l_rc} --query x11_incdir` |
105 x11_incdir=`%{l_rc} --query x11_incdir` |
108 x11_libdir=`%{l_rc} --query x11_libdir` |
106 x11_libdir=`%{l_rc} --query x11_libdir` |
109 fontconflibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig` |
107 fontconflibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig` |
|
108 lcmslibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static lcms` |
110 openssllibs=`%{l_prefix}/bin/pkg-config --libs --static openssl` |
109 openssllibs=`%{l_prefix}/bin/pkg-config --libs --static openssl` |
111 |
110 |
112 loclibs='' |
111 loclibs='' |
113 case "%{l_platform -t}" in |
112 case "%{l_platform -t}" in |
114 *-sunos* ) |
113 *-sunos* ) |
123 ) || exit $? |
122 ) || exit $? |
124 %{l_shtool} subst \ |
123 %{l_shtool} subst \ |
125 -e 's;\(-z[\t ][\t ]*\)\([^\t \"][^\t \"]*\);\1"\2";g' \ |
124 -e 's;\(-z[\t ][\t ]*\)\([^\t \"][^\t \"]*\);\1"\2";g' \ |
126 configure |
125 configure |
127 %{l_shtool} subst \ |
126 %{l_shtool} subst \ |
128 -e "s;\(QMAKE_LIBS_X11.*\)-lfreetype -lfontconfig;\1$fontconflibs;" \ |
127 -e 's; *QMakeVar set QMAKE_CFLAGS_X11.*QT_CFLAGS_FONTCONFIG.*;;' \ |
|
128 -e 's; *QMakeVar set QMAKE_LIBS_X11.*QT_LIBS_FONTCONFIG.*;;' \ |
129 configure |
129 configure |
130 %{l_shtool} subst \ |
130 %{l_shtool} subst \ |
131 -e "s;\(OPENSSL_LIBS *=\) *-lssl -lcrypto;\1 $openssllibs;" \ |
131 -e "s;\(OPENSSL_LIBS *=\) *-lssl -lcrypto;\1 $openssllibs;" \ |
132 configure |
132 configure |
133 %{l_shtool} subst \ |
133 %{l_shtool} subst \ |
134 -e 's;-silent|;-rpath|-silent|;' \ |
134 -e 's;-silent|;-rpath|-silent|;' \ |
135 -e 's;\(RPATH_FLAGS="\)\\"\$QT_INSTALL_LIBS\\" \($RPATH_FLAGS"\);\1\2;' \ |
135 -e 's;\(RPATH_FLAGS="\)\\"\$QT_INSTALL_LIBS\\" \($RPATH_FLAGS"\);\1\2;' \ |
136 -e "s;\(echo.*QMAKE_RPATHDIR +=\).*\$QT_INSTALL_LIBS\\\\\"\\\";\1 $x11_libdir\";" \ |
136 -e "s;\(echo.*QMAKE_RPATHDIR +=\).*\$QT_INSTALL_LIBS\\\\\"\\\";\1 $x11_libdir\";" \ |
137 configure |
137 configure |
|
138 # yes this is needed several times to catch nested occurences of '--cflags' |
|
139 %{l_shtool} subst \ |
|
140 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ |
|
141 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ |
|
142 configure |
138 %{l_shtool} subst \ |
143 %{l_shtool} subst \ |
139 -e 's;\(TRY_INCLUDEPATHS = \).*\(\$\$INCLUDEPATH\);\1\2;' \ |
144 -e 's;\(TRY_INCLUDEPATHS = \).*\(\$\$INCLUDEPATH\);\1\2;' \ |
140 -e 's;/freetype2;/freetype;' \ |
145 -e 's;/freetype2;/freetype;' \ |
141 config.tests/unix/freetype/freetype.pri |
146 config.tests/unix/freetype/freetype.pri |
|
147 %{l_shtool} subst \ |
|
148 -e "s;\(LIBS.*=.*-lmng\);\1 $lcmslibs;" \ |
|
149 src/gui/image/qmnghandler.pri |
142 %{l_shtool} subst \ |
150 %{l_shtool} subst \ |
143 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \ |
151 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \ |
144 config.tests/x11/fontconfig/fontconfig.pro |
152 config.tests/x11/fontconfig/fontconfig.pro |
145 echo 'INCLUDEPATH += /usr/include/wacomcfg' \ |
153 echo 'INCLUDEPATH += /usr/include/wacomcfg' \ |
146 >>src/gui/kernel/x11.pri |
154 >>src/gui/kernel/x11.pri |
147 %{l_shtool} subst \ |
155 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ |
148 -e "s;\(LIBS += -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \ |
156 >>src/gui/kernel/x11.pri |
|
157 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ |
|
158 >>src/gui/text/text.pri |
|
159 echo "INCLUDEPATH = `%{l_prefix}/bin/pkg-config --cflags-only-I dbus-1 | %{l_shtool} subst -e 's;\-I;;g'`" \ |
|
160 >>config.tests/unix/dbus/dbus.pro |
|
161 echo "LIBS = `%{l_prefix}/bin/pkg-config --libs-only-l --static dbus-1`" \ |
|
162 >>config.tests/unix/dbus/dbus.pro |
|
163 %{l_shtool} subst \ |
|
164 -e "s;\(LIBS.*= -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \ |
149 config.tests/unix/psql/psql.pro |
165 config.tests/unix/psql/psql.pro |
150 %{l_shtool} subst \ |
166 %{l_shtool} subst \ |
151 -e 's;^mac:\(LIBS\);\1;' \ |
167 -e 's;^mac[^:][^:]*:\(LIBS\);\1;' \ |
152 config.tests/unix/iconv/iconv.pro |
168 config.tests/unix/iconv/iconv.pro |
|
169 uiclibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig lcms` |
153 %{l_shtool} subst \ |
170 %{l_shtool} subst \ |
154 -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \ |
171 -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \ |
155 src/sql/drivers/drivers.pri |
172 src/sql/drivers/drivers.pri |
156 %{l_shtool} subst \ |
173 %{l_shtool} subst \ |
157 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_GLIB;INCPATH += `pkg-config --cflags-only-I glib-2.0 gthread-2.0 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
174 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_GLIB;INCPATH += `pkg-config --cflags-only-I glib-2.0 gthread-2.0 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
159 src/gui/kernel/kernel.pri |
176 src/gui/kernel/kernel.pri |
160 %{l_shtool} subst \ |
177 %{l_shtool} subst \ |
161 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_PSQL;INCPATH += `pg_config --includedir 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
178 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_PSQL;INCPATH += `pg_config --includedir 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
162 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_MYSQL;INCPATH += `mysql_config --include 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
179 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_MYSQL;INCPATH += `mysql_config --include 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
163 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_SQLITE;INCPATH += `pkg-config --cflags-only-I sqlite3 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
180 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_SQLITE;INCPATH += `pkg-config --cflags-only-I sqlite3 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
|
181 -e 's;!static:\(!isEmpty(QT_LFLAGS_PSQL)\);\1;' \ |
|
182 -e 's;!static:\(LIBS \*= \$\$QT_LFLAGS_PSQL\);\1;' \ |
164 src/plugins/sqldrivers/mysql/mysql.pro \ |
183 src/plugins/sqldrivers/mysql/mysql.pro \ |
165 src/plugins/sqldrivers/psql/psql.pro \ |
184 src/plugins/sqldrivers/psql/psql.pro \ |
166 src/plugins/sqldrivers/sqlite/sqlite.pro \ |
185 src/plugins/sqldrivers/sqlite/sqlite.pro \ |
167 src/sql/drivers/drivers.pri |
186 src/sql/drivers/drivers.pri |
168 %{l_shtool} subst \ |
187 %{l_shtool} subst \ |
188 -e 's; *\.\./3rdparty/freetype/.*;;g' \ |
207 -e 's; *\.\./3rdparty/freetype/.*;;g' \ |
189 -e 's;^\( *contains(QT_CONFIG, freetype) {\);\1 LIBS += -lfreetype;' \ |
208 -e 's;^\( *contains(QT_CONFIG, freetype) {\);\1 LIBS += -lfreetype;' \ |
190 src/gui/text/text.pri |
209 src/gui/text/text.pri |
191 %{l_shtool} subst \ |
210 %{l_shtool} subst \ |
192 -e 's;\(#include *"\)\(tiffio.h"\);\1tiff/\2;' \ |
211 -e 's;\(#include *"\)\(tiffio.h"\);\1tiff/\2;' \ |
193 src/plugins/imageformats/tiff/qtiffhandler.cpp |
212 src/gui/image/qtiffhandler.cpp |
194 %{l_shtool} subst \ |
213 %{l_shtool} subst \ |
195 -e 's;\(CONFIG[\t ]*+=[\t ]*qt\);\1 x11;' \ |
214 -e 's;\(CONFIG[\t ]*+=[\t ]*qt\);\1 x11;' \ |
196 tools/qtconfig/qtconfig.pro |
215 tools/qtconfig/qtconfig.pro |
197 # for projfile in `find examples/ -name '*.pro' -print`; do |
216 # for projfile in `find examples/ -name '*.pro' -print`; do |
198 # echo 'CONFIG += release' >>$projfile |
217 # echo 'CONFIG += release' >>$projfile |
199 # done |
218 # done |
200 |
219 |
201 %build |
220 %build |
202 # protect against sloppy code inclusion of all unused subprojects |
221 # protect against sloppy code inclusion of all unused subprojects |
203 rm -rf src/3rdparty/[^cdhmsw]* src/3rdparty/sql* src/3rdparty/win* |
222 (cd src/3rdparty && rm -rf [^cdehjmswxz]* sql* win* zlib zlib.pri) || exit $? |
204 |
223 |
205 # detect which platform for which to build |
224 # detect which platform for which to build |
206 case "%{l_platform -t}" in |
225 case "%{l_platform -t}" in |
207 sun4[uv]-sunos* | amd64-sunos* ) platcomp="solaris-g++-64" ;; |
226 sun4[uv]-sunos* | amd64-sunos* ) platcomp="solaris-g++-64" ;; |
208 i?86-sunos* ) platcomp="solaris-g++" ;; |
227 i?86-sunos* ) platcomp="solaris-g++" ;; |
291 |
310 |
292 # carry out shared build procedure |
311 # carry out shared build procedure |
293 ( cd src |
312 ( cd src |
294 %{l_make} %{l_mflags -O} \ |
313 %{l_make} %{l_mflags -O} \ |
295 sub-moc sub-rcc sub-uic sub-uic3 |
314 sub-moc sub-rcc sub-uic sub-uic3 |
296 %{l_make} %{l_mflags -O} \ |
|
297 sub-corelib sub-xml sub-network sub-gui sub-sql \ |
|
298 sub-script sub-testlib sub-qt3support sub-dbus \ |
|
299 sub-opengl sub-xmlpatterns sub-svg sub-plugins \ |
|
300 sub-webkit sub-scripttools |
|
301 ) || exit $? |
315 ) || exit $? |
|
316 %{l_make} %{l_mflags -O} \ |
|
317 sub-corelib-make_default-ordered \ |
|
318 sub-xml-make_default-ordered \ |
|
319 sub-network-make_default-ordered \ |
|
320 sub-sql-make_default-ordered \ |
|
321 sub-testlib-make_default-ordered \ |
|
322 sub-dbus-make_default-ordered \ |
|
323 sub-gui-make_default-ordered \ |
|
324 sub-qt3support-make_default-ordered \ |
|
325 sub-opengl-make_default-ordered \ |
|
326 sub-xmlpatterns-make_default-ordered \ |
|
327 sub-multimedia-make_default-ordered \ |
|
328 sub-svg-make_default-ordered \ |
|
329 sub-script-make_default-ordered \ |
|
330 sub-declarative-make_default-ordered \ |
|
331 sub-javascriptcore-make_default-ordered \ |
|
332 sub-webkit-make_default-ordered \ |
|
333 sub-scripttools-make_default-ordered \ |
|
334 sub-plugins-make_default-ordered \ |
|
335 sub-imports-make_default-ordered \ |
|
336 sub-webkitdeclarative-make_default-ordered \ |
|
337 sub-translations-make_default-ordered |
302 |
338 |
303 # arthur plugin requires libQtDesigner |
339 # arthur plugin requires libQtDesigner |
304 ( cd demos |
340 ( cd demos |
305 ( cd ../tools/designer/src/lib |
341 ( cd ../tools/designer/src/lib |
306 %{l_make} %{l_mflags -O} staticlib |
342 %{l_make} %{l_mflags -O} staticlib |
378 # default options are implicitly used, for example... |
411 # default options are implicitly used, for example... |
379 #-no-fast -exceptions -accessibility -stl -qt3support -nis |
412 #-no-fast -exceptions -accessibility -stl -qt3support -nis |
380 #-sm -xshape -xinerama -xcursor -xfixes -xrandr -tablet -xkb |
413 #-sm -xshape -xinerama -xcursor -xfixes -xrandr -tablet -xkb |
381 |
414 |
382 # carry out static build procedure |
415 # carry out static build procedure |
383 %{l_make} %{l_mflags -O} sub-src |
416 %{l_make} %{l_mflags -O} sub-src sub-translations |
384 %if "%{with_tools}" == "yes" |
417 %if "%{with_tools}" == "yes" |
385 %{l_make} %{l_mflags -O} sub-tools |
418 %{l_make} %{l_mflags -O} sub-tools-make_default-ordered |
386 %endif |
419 %endif |
387 %if "%{with_examples}" == "yes" |
420 %if "%{with_examples}" == "yes" |
388 %{l_make} %{l_mflags -O} \ |
421 %{l_make} %{l_mflags -O} \ |
389 sub-demos-make_default-ordered \ |
422 sub-demos-make_default-ordered \ |
390 sub-examples-make_default-ordered |
423 sub-examples-make_default-ordered |
399 sub-rcc-install_subtargets-ordered \ |
432 sub-rcc-install_subtargets-ordered \ |
400 sub-uic-install_subtargets-ordered \ |
433 sub-uic-install_subtargets-ordered \ |
401 sub-corelib-install_subtargets-ordered \ |
434 sub-corelib-install_subtargets-ordered \ |
402 sub-xml-install_subtargets-ordered \ |
435 sub-xml-install_subtargets-ordered \ |
403 sub-network-install_subtargets-ordered \ |
436 sub-network-install_subtargets-ordered \ |
|
437 sub-sql-install_subtargets-ordered \ |
|
438 sub-testlib-install_subtargets-ordered \ |
|
439 sub-dbus-install_subtargets-ordered \ |
404 sub-gui-install_subtargets-ordered \ |
440 sub-gui-install_subtargets-ordered \ |
405 sub-sql-install_subtargets-ordered \ |
|
406 sub-script-install_subtargets-ordered \ |
|
407 sub-testlib-install_subtargets-ordered \ |
|
408 sub-qt3support-install_subtargets-ordered \ |
441 sub-qt3support-install_subtargets-ordered \ |
409 sub-dbus-install_subtargets-ordered \ |
|
410 sub-uic3-install_subtargets-ordered \ |
442 sub-uic3-install_subtargets-ordered \ |
411 sub-opengl-install_subtargets-ordered \ |
443 sub-opengl-install_subtargets-ordered \ |
412 sub-xmlpatterns-install_subtargets-ordered \ |
444 sub-xmlpatterns-install_subtargets-ordered \ |
|
445 sub-multimedia-install_subtargets-ordered \ |
413 sub-svg-install_subtargets-ordered \ |
446 sub-svg-install_subtargets-ordered \ |
414 sub-webkit-install_subtargets-ordered \ |
447 sub-script-install_subtargets-ordered \ |
415 sub-scripttools-install_subtargets-ordered \ |
448 sub-declarative-install_subtargets-ordered \ |
416 sub-plugins-install_subtargets-ordered" |
449 sub-scripttools-install_subtargets-ordered \ |
|
450 sub-plugins-install_subtargets-ordered \ |
|
451 sub-imports-install_subtargets-ordered \ |
|
452 sub-translations-install_subtargets-ordered" |
|
453 |
417 %if "%{with_tools}" == "yes" |
454 %if "%{with_tools}" == "yes" |
418 targets="$targets sub-tools-install_subtargets-ordered sub-tools-qdoc3-install_subtargets-ordered" |
455 targets="$targets sub-tools-install_subtargets-ordered sub-tools-qdoc3-install_subtargets-ordered" |
419 %endif |
456 %endif |
420 %if "%{with_examples}" == "yes" |
457 %if "%{with_examples}" == "yes" |
421 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered" |
458 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered" |
422 %endif |
459 %endif |
423 targets="$targets install_htmldocs install_qchdocs install_docimages install_qmake install_mkspecs" |
460 targets="$targets install_htmldocs install_qchdocs install_docimages install_qmake install_mkspecs" |
424 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" |
461 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" |
425 |
462 |
426 %if "%{with_shared}" == "yes" |
463 %if "%{with_shared}" == "yes" |
|
464 # # install components only built against shared libs |
|
465 # targets="$targets irgend-was-webkit_subtargets-ordered" |
|
466 |
427 # install shared libs and symlinks |
467 # install shared libs and symlinks |
428 %{l_shtool} mkdir -f -p -m 755 \ |
468 %{l_shtool} mkdir -f -p -m 755 \ |
429 $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
469 $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
430 %{l_tar} cf - dynamic | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
470 %{l_tar} cf - dynamic | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/qt |
431 |
471 |
432 # offer limited support of pkg-config(1) for shared libs |
472 # offer limited support of pkg-config(1) for shared libs |
433 # substitution unfortunately only handles paths with no whitespace |
473 # substitution unfortunately only handles paths with no whitespace |
434 %{l_shtool} subst \ |
474 %{l_shtool} subst \ |
435 -e "s;[^\t ][^\t ]*qt-x11-opensource-src-%{version};%{l_prefix};g" \ |
475 -e "s;-L[^\t ][^\t ]*qt-everywhere-opensource-src-%{version};-L%{l_prefix};g" \ |
436 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/pkgconfig/* |
476 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/pkgconfig/* |
437 |
477 |
438 # explain nonstandard shared library placement |
478 # explain nonstandard shared library placement |
439 ( echo "This OpenPKG Qt build is using the with_shared option." |
479 ( echo "This OpenPKG Qt build is using the with_shared option." |
440 echo "" |
480 echo "" |
451 echo "%{l_prefix}/lib/qt/dynamic/pkgconfig." |
491 echo "%{l_prefix}/lib/qt/dynamic/pkgconfig." |
452 ) >$RPM_BUILD_ROOT%{l_prefix}/lib/qt/README |
492 ) >$RPM_BUILD_ROOT%{l_prefix}/lib/qt/README |
453 |
493 |
454 # remove temporary dynamic link paths |
494 # remove temporary dynamic link paths |
455 %{l_shtool} subst \ |
495 %{l_shtool} subst \ |
456 -e "s;-L\([\t ]*\)[^\t ][^\t ]*qt-x11-opensource-src-%{version}\(/[^\t ][^\t ]*\);-L\1%{l_prefix}\2;g" \ |
496 -e "s;-L\([\t ]*\)[^\t ][^\t ]*qt-everywhere-opensource-src-%{version}\(/[^\t ][^\t ]*\);-L\1%{l_prefix}\2;g" \ |
457 -e "s;\([\t ][\t ]*\)[^\t ][^\t ]*\(qt-x11-opensource-src-%{version}.*\);\1/tmp/\2;" \ |
497 -e "s;\([\t ][\t ]*\)[^\t ][^\t ]*\(qt-everywhere-opensource-src-%{version}.*\);\1/tmp/\2;" \ |
458 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \ |
498 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.prl \ |
459 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la |
499 $RPM_BUILD_ROOT%{l_prefix}/lib/qt/dynamic/*.la |
460 %endif |
500 %endif |
461 |
501 |
462 # determine internal file listing |
502 # determine internal file listing |