qt/qt.spec

changeset 77
f126a78c2705
parent 29
cc49f73ee7de
child 86
78e7deb1d6ab
equal deleted inserted replaced
3:e30a8d5300f1 4:35a7d7334900
31 Distribution: MSvB Recherche Production 31 Distribution: MSvB Recherche Production
32 Class: EVAL 32 Class: EVAL
33 Group: Development 33 Group: Development
34 License: GPL 34 License: GPL
35 Version: 4.4.3 35 Version: 4.4.3
36 Release: 20081215 36 Release: 20090106
37 37
38 # build options 38 # build options
39 %option with_tools yes 39 %option with_tools yes
40 %option with_mysql no
41 %option with_pgsql no
40 %option with_shared no 42 %option with_shared no
41 %option with_examples no 43 %option with_examples no
42 44
43 # list of sources 45 # list of sources
44 Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz 46 Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz
52 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender 54 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender
53 BuildPreReq: openssl, zlib, libiconv, sqlite, dbus 55 BuildPreReq: openssl, zlib, libiconv, sqlite, dbus
54 PreReq: openssl, zlib, libiconv, sqlite, dbus 56 PreReq: openssl, zlib, libiconv, sqlite, dbus
55 BuildPreReq: fontconfig, freetype 57 BuildPreReq: fontconfig, freetype
56 PreReq: fontconfig, freetype 58 PreReq: fontconfig, freetype
59 %if "%{with_mysql}" == "yes"
60 BuildPreReq: mysql
61 PreReq: mysql
62 %endif
63 %if "%{with_pgsql}" == "yes"
64 BuildPreReq: postgresql
65 PreReq: postgresql
66 %endif
57 AutoReq: no 67 AutoReq: no
58 AutoReqProv: no 68 AutoReqProv: no
59 Provides: QTSDK 69 Provides: QTSDK
60 70
61 %description 71 %description
127 config.tests/unix/psql/psql.pro 137 config.tests/unix/psql/psql.pro
128 %{l_shtool} subst \ 138 %{l_shtool} subst \
129 -e 's;^mac:\(LIBS\);\1;' \ 139 -e 's;^mac:\(LIBS\);\1;' \
130 config.tests/unix/iconv/iconv.pro 140 config.tests/unix/iconv/iconv.pro
131 %{l_shtool} subst \ 141 %{l_shtool} subst \
142 -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \
143 src/sql/drivers/drivers.pri
144 %{l_shtool} subst \
132 -e 's;^\(QMAKE_INCDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/include;' \ 145 -e 's;^\(QMAKE_INCDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/include;' \
133 -e 's;^\(QMAKE_LIBDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/lib;' \ 146 -e 's;^\(QMAKE_LIBDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/lib;' \
134 -e "s;^\(QMAKE_INCDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \ 147 -e "s;^\(QMAKE_INCDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \
135 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ 148 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \
136 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ 149 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \
187 -demosdir %{l_prefix}/share/qt/demos \ 200 -demosdir %{l_prefix}/share/qt/demos \
188 -release \ 201 -release \
189 -shared \ 202 -shared \
190 -platform $platcomp \ 203 -platform $platcomp \
191 -no-sql-ibase \ 204 -no-sql-ibase \
205 %if "%{with_mysql}" == "yes"
192 -qt-sql-mysql \ 206 -qt-sql-mysql \
207 %else
208 -no-sql-mysql \
209 %endif
210 %if "%{with_pgsql}" == "yes"
211 -qt-sql-psql \
212 %else
213 -no-sql-psql \
214 %endif
193 -no-sql-odbc \ 215 -no-sql-odbc \
194 -no-sql-psql \ 216 -system-sqlite \
217 -qt-sql-sqlite \
195 -no-sql-sqlite2 \ 218 -no-sql-sqlite2 \
196 -qt-sql-sqlite \
197 -system-sqlite \
198 -openssl-linked \ 219 -openssl-linked \
199 -xmlpatterns \ 220 -xmlpatterns \
200 -svg \ 221 -svg \
201 -no-webkit \ 222 -no-webkit \
202 -system-zlib \ 223 -system-zlib \
256 -demosdir %{l_prefix}/share/qt/demos \ 277 -demosdir %{l_prefix}/share/qt/demos \
257 -release \ 278 -release \
258 -static \ 279 -static \
259 -platform $platcomp \ 280 -platform $platcomp \
260 -no-sql-ibase \ 281 -no-sql-ibase \
282 %if "%{with_mysql}" == "yes"
261 -qt-sql-mysql \ 283 -qt-sql-mysql \
284 %else
285 -no-sql-mysql \
286 %endif
287 %if "%{with_pgsql}" == "yes"
288 -qt-sql-psql \
289 %else
290 -no-sql-psql \
291 %endif
262 -no-sql-odbc \ 292 -no-sql-odbc \
263 -no-sql-psql \ 293 -system-sqlite \
294 -qt-sql-sqlite \
264 -no-sql-sqlite2 \ 295 -no-sql-sqlite2 \
265 -qt-sql-sqlite \
266 -system-sqlite \
267 -openssl-linked \ 296 -openssl-linked \
268 -xmlpatterns \ 297 -xmlpatterns \
269 -svg \ 298 -svg \
270 -no-webkit \ 299 -no-webkit \
271 -system-zlib \ 300 -system-zlib \

mercurial