qt/qt.spec

changeset 340
870131689a5c
parent 289
1ff6f25dc4d9
child 341
24888fe4de94
equal deleted inserted replaced
24:53834ed3f9a8 25:10005ed75aff
37 Packager: Michael Schloh von Bennewitz 37 Packager: Michael Schloh von Bennewitz
38 Distribution: MSvB Recherche Production 38 Distribution: MSvB Recherche Production
39 Class: EVAL 39 Class: EVAL
40 Group: Development 40 Group: Development
41 License: GPL 41 License: GPL
42 Version: 4.7.0 42 Version: 4.7.3
43 Release: 20101018 43 Release: 20110514
44 44
45 # build options 45 # build options
46 %option with_tools yes 46 %option with_tools yes
47 %option with_glib no 47 %option with_glib no
48 %option with_mysql no 48 %option with_mysql no
110 fontconflibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig` 110 fontconflibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig`
111 lcmslibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static lcms` 111 lcmslibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static lcms`
112 openssllibs=`%{l_prefix}/bin/pkg-config --libs --static openssl` 112 openssllibs=`%{l_prefix}/bin/pkg-config --libs --static openssl`
113 mysqllibs=`%{l_prefix}/bin/mysql_config --libs` 113 mysqllibs=`%{l_prefix}/bin/mysql_config --libs`
114 114
115 loclibs='' 115 # MSvB In R/D: loclibs=''
116 case "%{l_platform -t}" in 116 # MSvB In R/D: case "%{l_platform -t}" in
117 *-sunos* ) 117 # MSvB In R/D: *-sunos* )
118 loclibs='-lsocket -lnsl' 118 # MSvB In R/D: loclibs='-lsocket -lnsl'
119 ;; 119 # MSvB In R/D: ;;
120 esac 120 # MSvB In R/D: esac
121 ( cd mkspecs/qws 121 ( cd mkspecs/qws
122 for plat in freebsd-generic-g++ macx-generic-g++ solaris-generic-g++; 122 for plat in freebsd-generic-g++ macx-generic-g++ solaris-generic-g++;
123 do 123 do
124 ln -s $plat `echo $plat | %{l_shtool} subst -e 's;\(.*\)-generic-\(.*\);\1-x86-\2;'` 124 ln -s $plat `echo $plat | %{l_shtool} subst -e 's;\(.*\)-generic-\(.*\);\1-x86-\2;'`
125 done 125 done
145 # yes this is needed several times to catch nested occurences of '--cflags' 145 # yes this is needed several times to catch nested occurences of '--cflags'
146 %{l_shtool} subst \ 146 %{l_shtool} subst \
147 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ 147 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \
148 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ 148 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \
149 configure 149 configure
150 # Trolltech Bug:
151 # Glib support cannot be enabled due to functionality tests!
152 # Turn on verbose messaging (-v) to ./configure to see the final report.
153 # Trolltech Bug:
154 # In file included from ../../include/QtGui/private/qgtkstyle_p.h:1,
155 # from kernel/qguiplatformplugin.cpp:63:
156 # ....../qgtkstyle_p.h:69:21: error: gtk/gtk.h: No such file or directory
157 # Workaround resolution:
150 # hack to get back the standard '--cflags' of just Qt_CFLAGS_GLIB 158 # hack to get back the standard '--cflags' of just Qt_CFLAGS_GLIB
159 # Question: Is this needed? QT_LIBS_QGTKSTYLE=`$PKG_CONFIG --libs gobject-2.0 2>/dev/null`
151 %{l_shtool} subst \ 160 %{l_shtool} subst \
152 -e 's;\(QT_CFLAGS_GLIB *=.*PKG_CONFIG.*\) --cflags-only-other ;\1 --cflags ;g' \ 161 -e 's;\(QT_CFLAGS_GLIB *=.*PKG_CONFIG.*\) --cflags-only-other ;\1 --cflags ;g' \
162 -e 's;\(QT_CFLAGS_QGTKSTYLE *=.*PKG_CONFIG.*\) --cflags-only-other ;\1 --cflags ;g' \
153 configure 163 configure
154 %{l_shtool} subst \ 164 # MSvB In R/D: %{l_shtool} subst \
155 -e 's;\(TRY_INCLUDEPATHS = \).*\(\$\$INCLUDEPATH\);\1\2;' \ 165 # MSvB In R/D: -e 's;\(TRY_INCLUDEPATHS = \).*\(\$\$INCLUDEPATH\);\1\2;' \
156 -e 's;/freetype2;/freetype;' \ 166 # MSvB In R/D: -e 's;/freetype2;/freetype;' \
157 config.tests/unix/freetype/freetype.pri 167 # MSvB In R/D: config.tests/unix/freetype/freetype.pri
168 # Trolltech Bug:
169 # /opdv/lib/libmng.a(libmng_cms.o): In function `mnglcms_initlibrary':
170 # libmng_cms.c:(.text+0xa): undefined reference to `cmsErrorAction'
158 %{l_shtool} subst \ 171 %{l_shtool} subst \
159 -e "s;\(LIBS.*=.*-lmng\);\1 $lcmslibs;" \ 172 -e "s;\(LIBS.*=.*-lmng\);\1 $lcmslibs;" \
160 src/gui/image/qmnghandler.pri 173 src/gui/image/qmnghandler.pri
174 # Trolltech Bug:
175 # lib/libQtGui.a(qapplication_x11.o): In function
176 # `qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long)':
177 # qapplication_x11.cpp:(.text+0xec8d): undefined reference to `FcInit'
161 %{l_shtool} subst \ 178 %{l_shtool} subst \
162 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \ 179 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \
163 config.tests/x11/fontconfig/fontconfig.pro 180 config.tests/x11/fontconfig/fontconfig.pro
181 echo "LIBS += `%{l_prefix}/bin/pkg-config --libs-only-L fontconfig`" \
182 >>tools/linguist/linguist/linguist.pro
164 echo 'INCLUDEPATH += /usr/include/wacomcfg' \ 183 echo 'INCLUDEPATH += /usr/include/wacomcfg' \
165 >>src/gui/kernel/x11.pri 184 >>src/gui/kernel/x11.pri
166 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ 185 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \
167 >>src/gui/kernel/x11.pri 186 >>src/gui/kernel/x11.pri
168 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ 187 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \
169 >>src/gui/text/text.pri 188 >>src/gui/text/text.pri
189 # Trolltech Bug:
190 # The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found.
191 # Turn on verbose messaging (-v) to ./configure to see the final report.
170 echo "INCLUDEPATH = `%{l_prefix}/bin/pkg-config --cflags-only-I dbus-1 | %{l_shtool} subst -e 's;\-I;;g'`" \ 192 echo "INCLUDEPATH = `%{l_prefix}/bin/pkg-config --cflags-only-I dbus-1 | %{l_shtool} subst -e 's;\-I;;g'`" \
171 >>config.tests/unix/dbus/dbus.pro 193 >>config.tests/unix/dbus/dbus.pro
172 echo "LIBS = `%{l_prefix}/bin/pkg-config --libs-only-l --static dbus-1`" \ 194 echo "LIBS = `%{l_prefix}/bin/pkg-config --libs-only-l --static dbus-1`" \
173 >>config.tests/unix/dbus/dbus.pro 195 >>config.tests/unix/dbus/dbus.pro
196 # Trolltech Bug:
197 # PostgreSQL support cannot be enabled due to functionality tests!
198 # Turn on verbose messaging (-v) to ./configure to see the final report.
174 %{l_shtool} subst \ 199 %{l_shtool} subst \
175 -e "s;\(LIBS.*= -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \ 200 -e "s;\(LIBS.*= -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \
176 config.tests/unix/psql/psql.pro 201 config.tests/unix/psql/psql.pro
202 # Trolltech Bug:
203 # Iconv support cannot be enabled due to functionality tests!
204 # Turn on verbose messaging (-v) to ./configure to see the final report.
177 %{l_shtool} subst \ 205 %{l_shtool} subst \
178 -e 's;^mac[^:][^:]*:\(LIBS\);\1;' \ 206 -e 's;^mac[^:][^:]*:\(LIBS\);\1;' \
179 config.tests/unix/iconv/iconv.pro 207 config.tests/unix/iconv/iconv.pro
180 uiclibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig lcms` 208 # MSvB Aktualisierung: The uiclibs line is probably an error, remove...
181 %{l_shtool} subst \ 209 # MSvB In R/D: uiclibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig lcms`
182 -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \ 210 # MSvB In R/D: %{l_shtool} subst \
183 -e "s;LIBS .*= \$\$QT_LFLAGS_MYSQL;LIBS += $mysqllibs;" \ 211 # MSvB In R/D: -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \
184 src/sql/drivers/drivers.pri 212 # MSvB In R/D: -e "s;LIBS .*= \$\$QT_LFLAGS_MYSQL;LIBS += $mysqllibs;" \
185 %{l_shtool} subst \ 213 # MSvB In R/D: src/sql/drivers/drivers.pri
186 -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" \ 214 # MSvB In R/D: %{l_shtool} subst \
187 src/corelib/kernel/kernel.pri \ 215 # MSvB In R/D: -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" \
188 src/gui/kernel/kernel.pri 216 # MSvB In R/D: src/corelib/kernel/kernel.pri \
189 %{l_shtool} subst \ 217 # MSvB In R/D: src/gui/kernel/kernel.pri
190 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_PSQL;INCPATH += `pg_config --includedir 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ 218 # MSvB In R/D: %{l_shtool} subst \
191 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_MYSQL;INCPATH += `mysql_config --include 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ 219 # MSvB In R/D: -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_PSQL;INCPATH += `pg_config --includedir 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \
192 -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" \ 220 # MSvB In R/D: -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_MYSQL;INCPATH += `mysql_config --include 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \
193 -e 's;!static:\(!isEmpty(QT_LFLAGS_PSQL)\);\1;' \ 221 # MSvB In R/D: -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" \
194 -e 's;!static:\(LIBS \*= \$\$QT_LFLAGS_PSQL\);\1;' \ 222 # MSvB In R/D: -e 's;!static:\(!isEmpty(QT_LFLAGS_PSQL)\);\1;' \
195 src/plugins/sqldrivers/mysql/mysql.pro \ 223 # MSvB In R/D: -e 's;!static:\(LIBS \*= \$\$QT_LFLAGS_PSQL\);\1;' \
196 src/plugins/sqldrivers/psql/psql.pro \ 224 # MSvB In R/D: src/plugins/sqldrivers/mysql/mysql.pro \
197 src/plugins/sqldrivers/sqlite/sqlite.pro \ 225 # MSvB In R/D: src/plugins/sqldrivers/psql/psql.pro \
198 src/sql/drivers/drivers.pri 226 # MSvB In R/D: src/plugins/sqldrivers/sqlite/sqlite.pro \
227 # MSvB In R/D: src/sql/drivers/drivers.pri
228 # Trolltech Bug:
229 # In file included from qdbusconnectioninterface.cpp:52:0:
230 # qdbus_symbols_p.h:58:23: fatal error: dbus/dbus.h: No such file or directoryIn
231 # file included from qdbusconnection_p.h:70:0, from qdbusconnection.cpp:51:
199 %{l_shtool} subst \ 232 %{l_shtool} subst \
200 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_DBUS;INCPATH += `pkg-config --cflags-only-I dbus-1 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ 233 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_DBUS;INCPATH += `pkg-config --cflags-only-I dbus-1 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \
201 src/dbus/dbus.pro 234 src/dbus/dbus.pro
235 # Trolltech Bug:
236 # All the OpenGL functionality tests failed!
237 # You might need to modify the include and library search paths by
238 # editing QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
239 # /home/mschloh/opwrk/tmp/qt-everywhere-opensource-src-4.7.3/mkspecs/linux-g++-64.
202 %{l_shtool} subst \ 240 %{l_shtool} subst \
203 -e 's;^\(QMAKE_INCDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/include;' \ 241 -e 's;^\(QMAKE_INCDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/include;' \
204 -e 's;^\(QMAKE_LIBDIR[^a-zA-Z0-9=]*=\).*;\1;' \ 242 -e 's;^\(QMAKE_LIBDIR[^a-zA-Z0-9=]*=\).*;\1;' \
205 -e "s;^\(QMAKE_INCDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \ 243 -e 's;^\(QMAKE_INCDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;' \
206 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2;" \ 244 -e 's;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2;' \
207 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ 245 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \
208 mkspecs/qws/*/qmake.conf \ 246 mkspecs/qws/*/qmake.conf \
209 mkspecs/*/*.conf 247 mkspecs/*/*.conf
210 %{l_shtool} subst \ 248 # MSvB In R/D: %{l_shtool} subst \
211 -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \ 249 # MSvB In R/D: -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \
212 src/corelib/corelib.pro 250 # MSvB In R/D: src/corelib/corelib.pro
251 # Trolltech Bug:
252 # In file included from ../JavaScriptCore/runtime/RegExp.h:29:0,
253 # ../JavaScriptCore/yarr/RegexJIT.h: In destructor 'JSC::Yarr::RegexCodeBlock::~RegexCodeBlock()':
254 # ../JavaScriptCore/yarr/RegexJIT.h:63:36: error: 'jsRegExpFree' was not declared in this scope
213 %{l_shtool} subst \ 255 %{l_shtool} subst \
214 -e 's;\(DESTDIR *=\) *\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;' \ 256 -e 's;\(DESTDIR *=\) *\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;' \
215 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro 257 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro
258 # Trolltech Bug:
259 # In file included from ../JavaScriptCore/runtime/RegExp.h:29:0,
260 # ../JavaScriptCore/yarr/RegexJIT.h: In destructor 'JSC::Yarr::RegexCodeBlock::~RegexCodeBlock()':
261 # ../JavaScriptCore/yarr/RegexJIT.h:63:36: error: 'jsRegExpFree' was not declared in this scope
216 %{l_shtool} subst \ 262 %{l_shtool} subst \
217 -e 's;\(pathToJavaScriptCoreOutput *=\) *\$\$ARGS/\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;g' \ 263 -e 's;\(pathToJavaScriptCoreOutput *=\) *\$\$ARGS/\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;g' \
218 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri 264 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri
219 %{l_shtool} subst \ 265 # MSvB In R/D: %{l_shtool} subst \
220 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\).*;\1 %{l_prefix}/include $x11_incdir;" \ 266 # MSvB In R/D: -e "s;^\(QMAKE_INCDIR_X11[^=]*=\).*;\1 %{l_prefix}/include $x11_incdir;" \
221 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\).*;\1 %{l_prefix}/lib $x11_libdir;" \ 267 # MSvB In R/D: -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\).*;\1 %{l_prefix}/lib $x11_libdir;" \
222 mkspecs/qws/solaris*/qmake.conf \ 268 # MSvB In R/D: mkspecs/qws/solaris*/qmake.conf \
223 mkspecs/solaris*/qmake.conf 269 # MSvB In R/D: mkspecs/solaris*/qmake.conf
224 echo "QMAKE_LIBDIR += %{l_prefix}/lib/qt/dynamic" \ 270 # MSvB In R/D: echo "QMAKE_LIBDIR += %{l_prefix}/lib/qt/dynamic" \
225 >>mkspecs/features/shared.prf 271 # MSvB In R/D: >>mkspecs/features/shared.prf
226 %{l_shtool} subst \ 272 # MSvB In R/D: %{l_shtool} subst \
227 -e 's; *\.\./3rdparty/freetype/.*;;g' \ 273 # MSvB In R/D: -e 's; *\.\./3rdparty/freetype/.*;;g' \
228 -e 's;^\( *contains(QT_CONFIG, freetype) {\);\1 LIBS += -lfreetype;' \ 274 # MSvB In R/D: -e 's;^\( *contains(QT_CONFIG, freetype) {\);\1 LIBS += -lfreetype;' \
229 src/gui/text/text.pri 275 # MSvB In R/D: src/gui/text/text.pri
276 # Trolltech Bug:
277 # image/qtiffhandler.cpp:48:20: fatal error: tiffio.h: No such file or directory
278 # compilation terminated.
279 # make[1]: *** [.obj/release-static/qtiffhandler.o] Error 1
230 %{l_shtool} subst \ 280 %{l_shtool} subst \
231 -e 's;\(#include *"\)\(tiffio.h"\);\1tiff/\2;' \ 281 -e 's;\(#include *"\)\(tiffio.h"\);\1tiff/\2;' \
232 src/gui/image/qtiffhandler.cpp 282 src/gui/image/qtiffhandler.cpp
233 %{l_shtool} subst \ 283 # MSvB In R/D: %{l_shtool} subst \
234 -e 's;\(CONFIG[\t ]*+=[\t ]*qt\);\1 x11;' \ 284 # MSvB In R/D: -e 's;\(CONFIG[\t ]*+=[\t ]*qt\);\1 x11;' \
235 tools/qtconfig/qtconfig.pro 285 # MSvB In R/D: tools/qtconfig/qtconfig.pro
236 %{l_shtool} subst \ 286 # MSvB In R/D: %{l_shtool} subst \
237 -e 's;webkit;web-broken-kit;g' \ 287 # MSvB In R/D: -e 's;webkit;web-broken-kit;g' \
238 tools/assistant/tools/assistant/assistant.pro 288 # MSvB In R/D: tools/assistant/tools/assistant/assistant.pro
239 echo "DEFINES += QT_NO_WEBKIT" \ 289 # MSvB In R/D: echo "DEFINES += QT_NO_WEBKIT" \
240 >>tools/assistant/tools/assistant/assistant.pro 290 # MSvB In R/D: >>tools/assistant/tools/assistant/assistant.pro
241 %{l_shtool} subst \ 291 # MSvB In R/D: %{l_shtool} subst \
242 -e "s;Qt.s Classes;All Classes;" \ 292 # MSvB In R/D: -e "s;Qt.s Classes;All Classes;" \
243 tools/assistant/tools/assistant/doc/assistant.qdoc \ 293 # MSvB In R/D: tools/assistant/tools/assistant/doc/assistant.qdoc \
244 tools/qdoc3/doc/qdoc-manual.qdoc \ 294 # MSvB In R/D: tools/qdoc3/doc/qdoc-manual.qdoc \
245 tools/qdoc3/doc/files/qt.qdocconf \ 295 # MSvB In R/D: tools/qdoc3/doc/files/qt.qdocconf \
246 tools/qdoc3/test/qt-build-docs.qdocconf \ 296 # MSvB In R/D: tools/qdoc3/test/qt-build-docs.qdocconf \
247 tools/qdoc3/test/qt.qdocconf 297 # MSvB In R/D: tools/qdoc3/test/qt.qdocconf
248 298
249 %build 299 %build
250 # protect against sloppy code inclusion of all unused subprojects 300 # protect against sloppy code inclusion of all unused subprojects
301 # MSvB In R/D: ce-compat clucene des easing harfbuzz javascriptcore md4 md5 s60 sha1 webkit xorg zlib_dependency.pri
251 (cd src/3rdparty && rm -rf [^cdehjmswxz]* sql* win* zlib zlib.pri) || exit $? 302 (cd src/3rdparty && rm -rf [^cdehjmswxz]* sql* win* zlib zlib.pri) || exit $?
252 303
253 # detect which platform for which to build 304 # detect which platform for which to build
254 case "%{l_platform -t}" in 305 case "%{l_platform -t}" in
255 sun4[uv]-sunos* | amd64-sunos* ) platcomp="solaris-g++-64" ;; 306 sun4[uv]-sunos* | amd64-sunos* ) platcomp="solaris-g++-64" ;;
289 -datadir %{l_prefix}/share/qt \ 340 -datadir %{l_prefix}/share/qt \
290 -translationdir %{l_prefix}/share/qt/translations \ 341 -translationdir %{l_prefix}/share/qt/translations \
291 -sysconfdir %{l_prefix}/etc/qt \ 342 -sysconfdir %{l_prefix}/etc/qt \
292 -examplesdir %{l_prefix}/share/qt/examples \ 343 -examplesdir %{l_prefix}/share/qt/examples \
293 -demosdir %{l_prefix}/share/qt/demos \ 344 -demosdir %{l_prefix}/share/qt/demos \
345 %if 0
346 # Build time Qt definitions should predominate,
347 # otherwise foreign definitions cause errors like:
348 #
349 # g++ -c -I/foreign/include [...] animation/qguivariantanimation.cpp
350 # .moc/release-shared/moc_qnamespace.cpp:426:16: error: 'WA_LockPortraitOrientation' is not a member of 'Qt'
351 # .moc/release-shared/moc_qnamespace.cpp:427:16: error: 'WA_LockLandscapeOrientation' is not a member of 'Qt'
352 # .moc/release-shared/moc_qnamespace.cpp:428:16: error: 'WA_AutoOrientation' is not a member of 'Qt'
353 # .moc/release-shared/moc_qnamespace.cpp:440:16: error: 'AA_S60DisablePartialScreenInputMode' is not a member of 'Qt'
354 #
355 # Other problems include flawed definitions polluting (C|CXX)FLAGS
356 # and overriding the correct definitions in CPPFLAGS. Variables
357 # like QMAKE_(C|CXX)FLAGS exhibit this problem as well.
358 #
359 # The work around is to force a Qt dist include path in (C|CXX)FLAGS.
360 %endif
361 -I$RPM_BUILD_DIR/qt-everywhere-opensource-src-%{version}/include \
294 -release \ 362 -release \
295 -shared \ 363 -shared \
296 -platform $platcomp \ 364 -platform $platcomp \
365 -s60 \
366 -qt-style-s60 \
297 -no-sql-ibase \ 367 -no-sql-ibase \
298 %if "%{with_glib}" == "yes" 368 %if "%{with_glib}" == "yes"
299 -glib \ 369 -glib \
300 %else 370 %else
301 -no-glib \ 371 -no-glib \
399 -datadir %{l_prefix}/share/qt \ 469 -datadir %{l_prefix}/share/qt \
400 -translationdir %{l_prefix}/share/qt/translations \ 470 -translationdir %{l_prefix}/share/qt/translations \
401 -sysconfdir %{l_prefix}/etc/qt \ 471 -sysconfdir %{l_prefix}/etc/qt \
402 -examplesdir %{l_prefix}/share/qt/examples \ 472 -examplesdir %{l_prefix}/share/qt/examples \
403 -demosdir %{l_prefix}/share/qt/demos \ 473 -demosdir %{l_prefix}/share/qt/demos \
474 %if 0
475 # Build time Qt definitions should predominate,
476 # otherwise foreign definitions cause errors like:
477 #
478 # g++ -c -I/foreign/include [...] animation/qguivariantanimation.cpp
479 # .moc/release-shared/moc_qnamespace.cpp:426:16: error: 'WA_LockPortraitOrientation' is not a member of 'Qt'
480 # .moc/release-shared/moc_qnamespace.cpp:427:16: error: 'WA_LockLandscapeOrientation' is not a member of 'Qt'
481 # .moc/release-shared/moc_qnamespace.cpp:428:16: error: 'WA_AutoOrientation' is not a member of 'Qt'
482 # .moc/release-shared/moc_qnamespace.cpp:440:16: error: 'AA_S60DisablePartialScreenInputMode' is not a member of 'Qt'
483 #
484 # Other problems include flawed definitions polluting (C|CXX)FLAGS
485 # and overriding the correct definitions in CPPFLAGS. Variables
486 # like QMAKE_(C|CXX)FLAGS exhibit this problem as well.
487 #
488 # The work around is to force a Qt dist include path in (C|CXX)FLAGS.
489 %endif
490 -I$RPM_BUILD_DIR/qt-everywhere-opensource-src-%{version}/include \
404 -release \ 491 -release \
405 -static \ 492 -static \
406 -platform $platcomp \ 493 -platform $platcomp \
494 -s60 \
495 -qt-style-s60 \
407 -no-sql-ibase \ 496 -no-sql-ibase \
408 %if "%{with_glib}" == "yes" 497 %if "%{with_glib}" == "yes"
409 -glib \ 498 -glib \
410 %else 499 %else
411 -no-glib \ 500 -no-glib \
575 #%define _includedocs 1 664 #%define _includedocs 1
576 # echo %{_excludedocs} 665 # echo %{_excludedocs}
577 # echo %{_includedocs} 666 # echo %{_includedocs}
578 # 667 #
579 ## Doesn't work as expected, because it seems that OpenPKG too mercilessly 668 ## Doesn't work as expected, because it seems that OpenPKG too mercilessly
580 ## removes RPM readi1ng of the %docdir keyword in rpm.patch.feature. 669 ## removes RPM reading of the %docdir keyword in rpm.patch.feature.
581 # %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 670 # %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
582 # %{l_files_std} \ 671 # %{l_files_std} \
583 # '%docdir %{l_prefix}/share/pkg/doc' 672 # '%docdir %{l_prefix}/share/pkg/doc'
584 # 673 #
585 ## Doesn't work as expected, because the rpmtool(1) marks 674 ## Doesn't work as expected, because the rpmtool(1) marks

mercurial