]>
Commit | Line | Data |
---|---|---|
0ac25589 | 1 | # TODO: use system sqlite |
7f2a2d73 JB |
2 | # |
3 | # Conditional build: | |
0ebb7751 | 4 | %bcond_with dlopen_gl # dlopen libGL.so and libXmu.so instead of direct linking (NOTE: should dlopen by soname, not *.so like it does now!) |
91e76425 | 5 | %bcond_with nas # enable NAS audio support |
0a5f57a5 | 6 | %bcond_with single # enable single-threaded libraries |
91e76425 JB |
7 | %bcond_without static_libs # don't build static libraries |
8 | %bcond_without cups # disable CUPS support | |
5c878990 JB |
9 | %bcond_without mysql # don't build MySQL plugin |
10 | %bcond_without odbc # don't build unixODBC plugin | |
11 | %bcond_without pgsql # don't build PostgreSQL plugin | |
09680661 | 12 | %bcond_without designer # don't build designer (it takes long) |
5c878990 | 13 | %bcond_without sqlite # don't build SQLite plugin |
0ac25589 | 14 | %bcond_without ibase # don't build ibase (InterBase/Firebird) plugin |
0a5f57a5 | 15 | %bcond_without pch # don't enable pch in qmake |
09680661 | 16 | # |
14f99f05 | 17 | %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc |
caadae0f JB |
18 | %undefine with_ibase |
19 | %endif | |
c247478b ER |
20 | %define with_sql 1 |
21 | %{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine with_sql}}}}} | |
0d479a26 | 22 | |
66b71d49 | 23 | %define ver 3.3.8.d |
aba31651 | 24 | |
f299c0ae | 25 | Summary: The Qt3 GUI application framework |
e2f55516 ER |
26 | Summary(es.UTF-8): Biblioteca para ejecutar aplicaciones GUI Qt |
27 | Summary(pl.UTF-8): Biblioteka Qt3 do tworzenia GUI | |
28 | Summary(pt_BR.UTF-8): Estrutura para rodar aplicações GUI Qt | |
102afdb1 | 29 | Name: qt |
175e2054 | 30 | Version: %{ver} |
9c6483d3 | 31 | Release: 6 |
89cde098 | 32 | Epoch: 6 |
cdcfc119 | 33 | License: QPL v1, GPL v2 or GPL v3 |
102afdb1 | 34 | Group: X11/Libraries |
66b71d49 AM |
35 | Source0: http://mirror.ets.kth.se/trinity/releases/3.5.13/dependencies/qt3-%{version}.tar.gz |
36 | # Source0-md5: 78dc675e84aed595375449818cbb589a | |
0deb0bc7 AM |
37 | Source1: %{name}config.desktop |
38 | Source2: designer.desktop | |
39 | Source3: assistant.desktop | |
40 | Source4: linguist.desktop | |
41 | Source5: designer.png | |
42 | Source6: assistant.png | |
43 | Source7: linguist.png | |
9433c91b ER |
44 | # generated using notes from kdebase-SuSE/qtkdeintegration/README |
45 | Source8: qtkdeintegration_x11.cpp | |
46 | Source9: qtkdeintegration_x11_p.h | |
78fc78c5 | 47 | Patch1: %{name}-FHS.patch |
48 | Patch2: %{name}-qmake-nostatic.patch | |
49 | Patch3: %{name}-disable_tutorials.patch | |
50 | Patch4: %{name}-locale.patch | |
51 | Patch5: %{name}-make_use_of_locale.patch | |
f67b43ac | 52 | Patch6: %{name}-qmake-opt.patch |
8038d6dc | 53 | Patch7: %{name}-locale-charmap.patch |
f67b43ac | 54 | Patch8: %{name}-gcc34.patch |
5a0b0a25 | 55 | Patch9: %{name}-support-cflags-with-commas.patch |
83a6337a | 56 | # for troll only |
f67b43ac | 57 | Patch10: %{name}-antialias.patch |
66b71d49 AM |
58 | Patch11: %{name}-x11-free-quiet.patch |
59 | Patch12: %{name}-fvisibility.patch | |
60 | Patch13: qt-buildkey-fixed.patch | |
61 | Patch14: %{name}-odbc.patch | |
62 | Patch15: qt-3.3.8.d-libpng15-1.patch | |
4648f688 | 63 | URL: http://www.trolltech.com/products/qt/ |
095cd2e6 | 64 | %{?with_ibase:BuildRequires: Firebird-devel >= 1.5.0} |
ebcb871a | 65 | BuildRequires: OpenGL-GLU-devel |
c8ea7660 | 66 | %{?with_cups:BuildRequires: cups-devel} |
1a041547 | 67 | BuildRequires: flex |
2cec2206 | 68 | BuildRequires: freetype-devel >= 1:2.0.0 |
96a64d31 | 69 | %{?with_pch:BuildRequires: gcc >= 5:3.4.0} |
05f3458e | 70 | BuildRequires: giflib-devel |
193cb4cc | 71 | BuildRequires: libjpeg-devel |
6b400510 | 72 | BuildRequires: libmng-devel >= 1.0.0 |
175e2054 | 73 | BuildRequires: libpng-devel >= 2:1.0.8 |
91908b4c | 74 | BuildRequires: libstdc++-devel |
c8ea7660 | 75 | %{?with_mysql:BuildRequires: mysql-devel} |
c65780d7 JB |
76 | %{?with_nas:BuildRequires: nas-devel} |
77 | BuildRequires: perl-base | |
c8ea7660 JB |
78 | %{?with_pgsql:BuildRequires: postgresql-backend-devel} |
79 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
14f99f05 | 80 | BuildRequires: rpmbuild(macros) >= 1.213 |
80f0ee98 | 81 | BuildRequires: sed >= 4.0 |
d2ce5e27 | 82 | %{?with_sqlite:BuildRequires: sqlite-devel} |
b18bc3b8 | 83 | %{?with_odbc:BuildRequires: unixODBC-devel} |
ebcb871a JB |
84 | BuildRequires: xorg-lib-libSM-devel |
85 | BuildRequires: xorg-lib-libXcursor-devel | |
86 | BuildRequires: xorg-lib-libXext-devel | |
ebcb871a | 87 | BuildRequires: xorg-lib-libXft-devel |
f97fa28a | 88 | BuildRequires: xorg-lib-libXinerama-devel |
ebcb871a JB |
89 | BuildRequires: xorg-lib-libXmu-devel |
90 | BuildRequires: xorg-lib-libXrandr-devel | |
91 | BuildRequires: xorg-lib-libXrender-devel | |
12740484 | 92 | BuildRequires: zlib-devel |
2cec2206 | 93 | Requires: freetype >= 1:2.0.0 |
095cd2e6 | 94 | Requires: libmng >= 1.0.0 |
e70c6d7b | 95 | Obsoletes: qt-extensions |
34cf9981 | 96 | Obsoletes: qt-utils |
095cd2e6 JB |
97 | Conflicts: kdelibs <= 8:3.2-0.030602.1 |
98 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
96a64d31 | 99 | |
2bc76f46 JR |
100 | %define Werror_cflags %{nil} |
101 | ||
6ca8111c | 102 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
396080ef | 103 | %define specflags -fno-strict-aliasing |
658932ff | 104 | |
6625eb4f | 105 | # <begin main library description> |
106 | ||
4814077d | 107 | %description |
6625eb4f | 108 | Qt is a complete C++ application development framework, which includes |
109 | a class library and tools for multiplatform development and | |
110 | internationalization. Using Qt, a single source code tree can build | |
111 | applications that run natively on different platforms (Windows, | |
112 | Unix/Linux, Mac OS X, embedded Linux). | |
113 | ||
114 | Qt has a rich set of standard widgets, and lets you write custom | |
115 | controls. It encapsulates four different platform-specific APIs, and | |
116 | the APIs for file-handling, networking, process-handling, threading, | |
c977a8cf | 117 | database access, etc. Qt now also has Motif migration support and |
118 | Netscape LiveConnect plugin. | |
23786777 | 119 | |
c977a8cf | 120 | This package contains the shared, multi-threaded, Linux version of the |
121 | Qt library, the style plugins and translation files for Qt. Please | |
122 | install qt-st if you need the single-threaded version of this library | |
123 | (which isn't usually necessary). | |
4814077d | 124 | |
a0529e0f | 125 | %description -l es.UTF-8 |
c977a8cf | 126 | Qt es un completo framework de desarrollo de aplicaciones en C++, el |
127 | que incluye una biblioteca de clases y unas herramientas para el | |
128 | desarrollo multiplataforma e internacionalizado. Usando Qt, un | |
a0529e0f | 129 | genérico árbol de código fuente se puede usar para construir |
c977a8cf | 130 | aplicaciones que puedan ejecutarse nativamente en varias plataformas |
131 | (Windows, Unix/Linux, Mac OS X, Linux embebido). | |
132 | ||
a0529e0f | 133 | Qt provee un rico conjunto de componentes estándares y le permite |
c977a8cf | 134 | escribir unos propios. Encapsula cuatro APIs diferentes dependientes |
a0529e0f JR |
135 | de la plataforma y también APIs para el manejo de ficheros, la red, el |
136 | manejo de los procesos e hilos, acceso a bases de datos, etc. También | |
137 | está incluido soporte de migración de Motif y un plugin para Netscape | |
c977a8cf | 138 | LiveConnect. |
139 | ||
a0529e0f JR |
140 | Este paquete contiene la versión compartida multi-hilvanada de la |
141 | biblioteca Qt, los plugin de estilo y ficheros de traducción para Qt. | |
142 | Instálese qt-st si necesita la versión mono-hilvanada de esta | |
c977a8cf | 143 | biblioteca (lo cual normalmente no es necesario). |
23786777 | 144 | |
a0529e0f | 145 | %description -l pl.UTF-8 |
6625eb4f | 146 | Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w |
a0529e0f JR |
147 | języku C++, w którego skład wchodzi biblioteka z klasami oraz |
148 | wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji. | |
149 | Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na | |
150 | różnych platformach (Windows, Unix/Linux, Mac OS X). | |
151 | ||
152 | Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale | |
153 | pozwala również na pisanie własnych elementów. Łączy w sposób | |
154 | niewidoczny dla programisty interfejsy programowania różnych systemów, | |
155 | tworząc w ten sposób jeden interfejs dla obsługi plików, sieci, | |
156 | procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie | |
157 | na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z | |
6625eb4f | 158 | wykorzystaniem Netscape LiveConnect. |
159 | ||
a0529e0f JR |
160 | Ten pakiet zawiera współdzieloną, wielowątkową, linuksową wersję |
161 | biblioteki Qt, wtyczki ze stylami oraz pliki tłumaczeń Qt. Zainstaluj | |
162 | qt-st jeśli potrzebujesz wersji jednowątkowej tej biblioteki (co | |
c977a8cf | 163 | zwykle nie jest konieczne). |
4cd84ab1 | 164 | |
a0529e0f JR |
165 | %description -l pt_BR.UTF-8 |
166 | Contém as bibliotecas compartilhadas necessárias para rodar aplicações | |
cbd58aa3 | 167 | Qt, bem como os arquivos README. |
23786777 | 168 | |
4814077d | 169 | %package devel |
6625eb4f | 170 | Summary: Development files for the Qt GUI toolkit |
e2f55516 ER |
171 | Summary(es.UTF-8): Archivos de inclusión necesaria para compilar aplicaciones Qt |
172 | Summary(pl.UTF-8): Pliki nagłówkowe, przykłady i dokumentacja do biblioteki | |
173 | Summary(pt_BR.UTF-8): Arquivos de inclusão necessária para compilar aplicações Qt | |
fe876ed3 | 174 | Group: X11/Development/Libraries |
19aacacc | 175 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0ebb7751 | 176 | %{!?with_dlopen_gl:Requires: OpenGL-devel} |
2cec2206 | 177 | Requires: freetype-devel >= 1:2.0.0 |
cc8d0e63 | 178 | Requires: libjpeg-devel |
095cd2e6 | 179 | Requires: libmng-devel >= 1.0.0 |
cc8d0e63 | 180 | Requires: libpng-devel |
3c6c9d4b | 181 | Requires: libstdc++-devel |
ebcb871a JB |
182 | Requires: xorg-lib-libSM-devel |
183 | Requires: xorg-lib-libXcursor-devel | |
184 | Requires: xorg-lib-libXext-devel | |
ebcb871a | 185 | Requires: xorg-lib-libXft-devel |
f97fa28a | 186 | Requires: xorg-lib-libXinerama-devel |
ebcb871a JB |
187 | Requires: xorg-lib-libXmu-devel |
188 | Requires: xorg-lib-libXrandr-devel | |
189 | Requires: xorg-lib-libXrender-devel | |
f4f4a0ff | 190 | Requires: zlib-devel |
f586349c | 191 | Conflicts: qt2-devel |
4814077d | 192 | |
193 | %description devel | |
6625eb4f | 194 | This package contains the Qt development tools: the metaobjects |
195 | compiler (moc) and the user interface compiler (uic); Qt include | |
196 | files, pkgconfig helpers and tools for preserving compatibility | |
197 | between versions of Qt. | |
198 | ||
a0529e0f JR |
199 | %description devel -l pl.UTF-8 |
200 | Ten pakiet zawiera narzędzia programistyczne Qt: kompilator | |
201 | metaobiektów (moc), kompilator interfejsu użytkownika (uic); pliki | |
202 | nagłówkowe, wsparcie dla pkgconfig oraz narzędzia ułatwiające | |
203 | zachowanie kompatybilności niezależnie od wersji Qt. | |
4cd84ab1 | 204 | |
f299c0ae | 205 | %package static |
c65780d7 | 206 | Summary: Qt static library |
e2f55516 | 207 | Summary(pl.UTF-8): Biblioteka statyczna Qt |
f299c0ae | 208 | Group: X11/Development/Libraries |
bdfce653 | 209 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
f299c0ae AM |
210 | |
211 | %description static | |
6625eb4f | 212 | Qt is a complete C++ application development framework, which includes |
213 | a class library and tools for multiplatform development and | |
214 | internationalization. Using Qt, a single source code tree can build | |
215 | applications that run natively on different platforms (Windows, | |
216 | Unix/Linux, Mac OS X, embedded Linux). | |
217 | ||
218 | Qt has a rich set of standard widgets, and lets you write custom | |
219 | controls. It encapsulates four different platform-specific APIs, and | |
220 | the APIs for file-handling, networking, process-handling, threading, | |
221 | database access, etc. Qt now also has Motif migration oraz Netscape | |
222 | LiveConnect plugin. | |
223 | ||
224 | This package contains the static, multi-threaded, linux version of the | |
225 | Qt library. | |
226 | ||
a0529e0f | 227 | %description static -l pl.UTF-8 |
6625eb4f | 228 | Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w |
a0529e0f JR |
229 | języku C++, w którego skład wchodzi biblioteka z klasami oraz |
230 | wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji. | |
231 | Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na | |
232 | różnych platformach (Windows, Unix/Linux, Mac OS X). | |
233 | ||
234 | Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale | |
235 | pozwala również na pisanie własnych elementów. Łączy w sposób | |
236 | niewidoczny dla programisty interfejsy programowania różnych systemów, | |
237 | tworząc w ten sposób jeden interfejs dla obsługi plików, sieci, | |
238 | procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie | |
239 | na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z | |
6625eb4f | 240 | wykorzystaniem Netscape LiveConnect. |
241 | ||
a0529e0f | 242 | Ten pakiet zawiera statyczną, wielowątkową, linuksową wersję |
6625eb4f | 243 | biblioteki Qt. |
f299c0ae | 244 | |
bdfce653 | 245 | %package doc |
19aacacc | 246 | Summary: Qt Documentation in HTML format |
e2f55516 | 247 | Summary(pl.UTF-8): Dokumentacja Qt w formacie HTML |
0c4d432d | 248 | Group: X11/Development/Libraries |
d7184201 | 249 | Obsoletes: qt-doc-html |
0c4d432d | 250 | |
bdfce653 | 251 | %description doc |
0c4d432d | 252 | Qt documentation in HTML format. |
253 | ||
a0529e0f | 254 | %description doc -l pl.UTF-8 |
0c4d432d | 255 | Dokumentacja qt w formacie HTML. |
256 | ||
bdfce653 | 257 | %package man |
19aacacc | 258 | Summary: Qt man pages |
e2f55516 | 259 | Summary(pl.UTF-8): Qt - strony man |
bdfce653 | 260 | Group: X11/Development/Libraries |
d7184201 | 261 | Obsoletes: qt-doc-man |
bdfce653 | 262 | |
263 | %description man | |
264 | Qt documentation in man pages format. | |
265 | ||
a0529e0f | 266 | %description man -l pl.UTF-8 |
19aacacc | 267 | Dokumentacja Qt w formacie stron man. |
bdfce653 | 268 | |
a201f985 | 269 | %package examples |
6625eb4f | 270 | Summary: Example programs bundled with Qt |
e2f55516 ER |
271 | Summary(pl.UTF-8): Ćwiczenia i przykłady do Qt |
272 | Summary(pt_BR.UTF-8): Programas exemplo desenvolvidos com o Qt | |
a201f985 | 273 | Group: X11/Development/Libraries |
bdfce653 | 274 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
831bc245 | 275 | |
a201f985 | 276 | %description examples |
6625eb4f | 277 | Example programs bundled with Qt version. |
831bc245 | 278 | |
a0529e0f JR |
279 | %description examples -l pl.UTF-8 |
280 | Ćwiczenia/przykłady dołączone do Qt. | |
831bc245 | 281 | |
a0529e0f JR |
282 | %description examples -l pt_BR.UTF-8 |
283 | Programas exemplo para o Qt versão. | |
6625eb4f | 284 | |
285 | # <end main library desc> | |
286 | ||
287 | # <start multithreaded plugins desc> | |
23786777 | 288 | |
5c878990 | 289 | %package plugin-ibase |
805d7290 | 290 | Summary: Database plugin for InterBase/Firebird Qt support |
e2f55516 ER |
291 | Summary(pl.UTF-8): Wtyczka InterBase/Firebird do Qt |
292 | Summary(pt_BR.UTF-8): Plugin de suporte a InterBase/Firebird para Qt | |
805d7290 | 293 | Group: X11/Libraries |
294 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
095cd2e6 | 295 | Requires: Firebird-lib >= 1.5.0 |
caadae0f | 296 | Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release} |
5c878990 JB |
297 | |
298 | %description plugin-ibase | |
6625eb4f | 299 | This package contains a multi-thread enabled plugin for accessing |
300 | Interbase/Firebird database via the QSql classes. | |
5c878990 | 301 | |
a0529e0f JR |
302 | %description plugin-ibase -l pl.UTF-8 |
303 | Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 304 | korzystanie z baz danych Interbase/Firebird poprzez klasy QSql. |
5c878990 | 305 | |
a0529e0f | 306 | %description plugin-ibase -l pt_BR.UTF-8 |
5c878990 JB |
307 | Plugin de suporte a InterBase/Firebird para Qt. |
308 | ||
bdfce653 | 309 | %package plugin-mysql |
c65780d7 | 310 | Summary: Database plugin for MySQL Qt support |
e2f55516 ER |
311 | Summary(pl.UTF-8): Wtyczka MySQL do Qt |
312 | Summary(pt_BR.UTF-8): Plugin de suporte a MySQL para Qt | |
50f34d85 | 313 | Group: X11/Libraries |
bdfce653 | 314 | Requires: %{name} = %{epoch}:%{version}-%{release} |
caadae0f | 315 | Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release} |
d7184201 | 316 | Obsoletes: qt-plugins-mysql |
50f34d85 | 317 | |
bdfce653 | 318 | %description plugin-mysql |
6625eb4f | 319 | This package contains a multi-thread enabled plugin for accessing |
320 | MySQL database via the QSql classes. | |
50f34d85 | 321 | |
a0529e0f JR |
322 | %description plugin-mysql -l pl.UTF-8 |
323 | Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 324 | korzystanie z baz danych MySQL poprzez klasy QSql. |
23786777 | 325 | |
a0529e0f | 326 | %description plugin-mysql -l pt_BR.UTF-8 |
c65780d7 | 327 | Plugin de suporte a MySQL para Qt. |
50f34d85 | 328 | |
5c878990 JB |
329 | %package plugin-odbc |
330 | Summary: Database plugin for ODBC Qt support | |
e2f55516 ER |
331 | Summary(pl.UTF-8): Wtyczka ODBC do Qt |
332 | Summary(pt_BR.UTF-8): Plugin de suporte a ODBC para Qt | |
5c878990 JB |
333 | Group: X11/Libraries |
334 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
caadae0f | 335 | Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release} |
5c878990 JB |
336 | Obsoletes: qt-plugins-odbc |
337 | ||
338 | %description plugin-odbc | |
6625eb4f | 339 | This package contains a multi-thread enabled plugin for accessing |
340 | unixODBC services via the QSql classes. | |
5c878990 | 341 | |
a0529e0f JR |
342 | %description plugin-odbc -l pl.UTF-8 |
343 | Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej | |
344 | korzystanie z usług unixODBC poprzez klasy QSql. | |
5c878990 | 345 | |
a0529e0f | 346 | %description plugin-odbc -l pt_BR.UTF-8 |
5c878990 JB |
347 | Plugin de suporte a ODBC para Qt. |
348 | ||
bdfce653 | 349 | %package plugin-psql |
c65780d7 | 350 | Summary: Database plugin for PostgreSQL Qt support |
e2f55516 ER |
351 | Summary(pl.UTF-8): Wtyczka PostgreSQL do Qt |
352 | Summary(pt_BR.UTF-8): Plugin de suporte a PostgreSQL para Qt | |
50f34d85 | 353 | Group: X11/Libraries |
bdfce653 | 354 | Requires: %{name} = %{epoch}:%{version}-%{release} |
caadae0f | 355 | Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release} |
d7184201 | 356 | Obsoletes: qt-plugins-psql |
50f34d85 | 357 | |
bdfce653 | 358 | %description plugin-psql |
6625eb4f | 359 | This package contains a multi-thread enabled plugin for accessing |
360 | PostgreSQL database via the QSql classes. | |
361 | ||
a0529e0f | 362 | %description plugin-psql -l es.UTF-8 |
7356c944 | 363 | Plugin de suporte a PostgreSQL para Qt. |
50f34d85 | 364 | |
a0529e0f JR |
365 | %description plugin-psql -l pl.UTF-8 |
366 | Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 367 | korzystanie z baz danych PostgreSQL poprzez klasy QSql. |
23786777 | 368 | |
d2ce5e27 | 369 | %package plugin-sqlite |
805d7290 | 370 | Summary: Database plugin for SQLite Qt support |
e2f55516 ER |
371 | Summary(pl.UTF-8): Wtyczka SQLite do Qt |
372 | Summary(pt_BR.UTF-8): Plugin de suporte a SQLite para Qt | |
805d7290 | 373 | Group: X11/Libraries |
374 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
caadae0f | 375 | Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release} |
d2ce5e27 | 376 | |
377 | %description plugin-sqlite | |
6625eb4f | 378 | This package contains a multi-thread enabled plugin for using the |
379 | SQLite library (which allows to acces virtually any SQL database) via | |
380 | the QSql classes. | |
d2ce5e27 | 381 | |
a0529e0f JR |
382 | %description plugin-sqlite -l pl.UTF-8 |
383 | Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 384 | korzystanie z baz danych PostgreSQL poprzez klasy QSql. |
d2ce5e27 | 385 | |
a0529e0f | 386 | %description plugin-sqlite -l pt_BR.UTF-8 |
19aacacc | 387 | Plugin de suporte a SQLite para Qt. |
6625eb4f | 388 | |
19aacacc | 389 | # <end multithreaded plugins desc> |
6625eb4f | 390 | |
391 | # <begin single threaded desc> | |
d2ce5e27 | 392 | |
c65780d7 JB |
393 | %package st |
394 | Summary: Single-threaded Qt library | |
e2f55516 | 395 | Summary(pl.UTF-8): Jednowątkowa wersja biblioteki Qt |
c65780d7 JB |
396 | Group: X11/Libraries |
397 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
398 | ||
399 | %description st | |
6625eb4f | 400 | Qt is a complete C++ application development framework, which includes |
401 | a class library and tools for multiplatform development and | |
402 | internationalization. Using Qt, a single source code tree can build | |
403 | applications that run natively on different platforms (Windows, | |
404 | Unix/Linux, Mac OS X, embedded Linux). | |
405 | ||
406 | Qt has a rich set of standard widgets, and lets you write custom | |
407 | controls. It encapsulates four different platform-specific APIs, and | |
408 | the APIs for file-handling, networking, process-handling, threading, | |
409 | database access, etc. Qt now also has Motif migration oraz Netscape | |
410 | LiveConnect plugin. | |
411 | ||
412 | This package contains the shared, single-threaded, linux version of | |
413 | the Qt library and single-threaded styles for Qt. This version is | |
414 | deprecated, please do not install it unless you explicitly need to. | |
c65780d7 | 415 | |
a0529e0f | 416 | %description st -l pl.UTF-8 |
6625eb4f | 417 | Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w |
a0529e0f JR |
418 | języku C++, w którego skład wchodzi biblioteka z klasami oraz |
419 | wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji. | |
420 | Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na | |
421 | różnych platformach (Windows, Unix/Linux, Mac OS X). | |
422 | ||
423 | Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale | |
424 | pozwala również na pisanie własnych elementów. Łączy w sposób | |
425 | niewidoczny dla programisty interfejsy programowania różnych systemów, | |
426 | tworząc w ten sposób jeden interfejs dla obsługi plików, sieci, | |
427 | procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie | |
428 | na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z | |
6625eb4f | 429 | wykorzystaniem Netscape LiveConnect. |
430 | ||
a0529e0f JR |
431 | Ten pakiet zawiera współdzieloną, jednowątkową, linuksową wersję |
432 | biblioteki Qt oraz jednowątkowe wtyczki ze stylami. Ta wersja nie jest | |
433 | już wspierana i nie zaleca się jej instalowania bez wyraźnej potrzeby. | |
c65780d7 JB |
434 | |
435 | %package st-devel | |
436 | Summary: Development files for single-threaded Qt library | |
e2f55516 | 437 | Summary(pl.UTF-8): Pliki programistyczne dla jednowątkowej biblioteki Qt |
c65780d7 JB |
438 | Group: X11/Development/Libraries |
439 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
440 | Requires: %{name}-st = %{epoch}:%{version}-%{release} | |
441 | ||
442 | %description st-devel | |
6625eb4f | 443 | This package contains the single threaded |
c65780d7 | 444 | |
a0529e0f JR |
445 | %description st-devel -l pl.UTF-8 |
446 | Pliki programistyczne dla jednowątkowej biblioteki Qt. | |
c65780d7 JB |
447 | |
448 | %package st-static | |
449 | Summary: Single-threaded Qt static libraries | |
e2f55516 | 450 | Summary(pl.UTF-8): Jednowątkowa statyczna biblioteka Qt |
c65780d7 JB |
451 | Group: X11/Development/Libraries |
452 | Requires: %{name}-st-devel = %{epoch}:%{version}-%{release} | |
453 | ||
454 | %description st-static | |
6625eb4f | 455 | Qt is a complete C++ application development framework, which includes |
456 | a class library and tools for multiplatform development and | |
457 | internationalization. Using Qt, a single source code tree can build | |
458 | applications that run natively on different platforms (Windows, | |
459 | Unix/Linux, Mac OS X, embedded Linux). | |
460 | ||
461 | Qt has a rich set of standard widgets, and lets you write custom | |
462 | controls. It encapsulates four different platform-specific APIs, and | |
463 | the APIs for file-handling, networking, process-handling, threading, | |
464 | database access, etc. Qt now also has Motif migration oraz Netscape | |
465 | LiveConnect plugin. | |
466 | ||
467 | This package contains the static, single-threaded, linux version of | |
468 | the Qt library and single-threaded styles for Qt. This version is | |
469 | deprecated, please do not install it unless you explicitly need to. | |
c65780d7 | 470 | |
a0529e0f | 471 | %description st-static -l pl.UTF-8 |
6625eb4f | 472 | Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w |
a0529e0f JR |
473 | języku C++, w którego skład wchodzi biblioteka z klasami oraz |
474 | wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji. | |
475 | Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na | |
476 | różnych platformach (Windows, Unix/Linux, Mac OS X). | |
477 | ||
478 | Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale | |
479 | pozwala również na pisanie własnych elementów. Łączy w sposób | |
480 | niewidoczny dla programisty interfejsy programowania różnych systemów, | |
481 | tworząc w ten sposób jeden interfejs dla obsługi plików, sieci, | |
482 | procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie | |
483 | na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z | |
6625eb4f | 484 | wykorzystaniem Netscape LiveConnect. |
485 | ||
a0529e0f JR |
486 | Ten pakiet zawiera współdzieloną, jednowątkową, linuksową wersję |
487 | biblioteki Qt oraz jednowątkowe wtyczki ze stylami. Ta wersja nie jest | |
488 | już wspierana i nie zaleca się jej instalowania bez wyraźnej potrzeby. | |
c65780d7 | 489 | |
5c878990 | 490 | %package st-plugin-ibase |
805d7290 | 491 | Summary: Database plugin for InterBase/Firebird support in single-threaded Qt |
e2f55516 | 492 | Summary(pl.UTF-8): Wtyczka InterBase/Firebird do jednowątkowej wersji Qt |
805d7290 | 493 | Group: X11/Libraries |
494 | Requires: %{name}-st = %{epoch}:%{version}-%{release} | |
095cd2e6 | 495 | Requires: Firebird-lib >= 1.5.0 |
805d7290 | 496 | Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release} |
5c878990 JB |
497 | |
498 | %description st-plugin-ibase | |
6625eb4f | 499 | This package contains a single-thread plugin for accessing |
500 | InterBase/Firebird database via the QSql classes. | |
5c878990 | 501 | |
a0529e0f JR |
502 | %description st-plugin-ibase -l pl.UTF-8 |
503 | Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 504 | korzystanie z baz danych InterBase/Firebird poprzez klasy QSql. |
5c878990 | 505 | |
c65780d7 JB |
506 | %package st-plugin-mysql |
507 | Summary: Database plugin for MySQL support in single-threaded Qt | |
e2f55516 | 508 | Summary(pl.UTF-8): Wtyczka MySQL do jednowątkowej wersji Qt |
c65780d7 JB |
509 | Group: X11/Libraries |
510 | Requires: %{name}-st = %{epoch}:%{version}-%{release} | |
511 | Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release} | |
512 | ||
513 | %description st-plugin-mysql | |
6625eb4f | 514 | This package contains a single-thread plugin for accessing MySQL |
515 | database via the QSql classes. | |
c65780d7 | 516 | |
a0529e0f JR |
517 | %description st-plugin-mysql -l pl.UTF-8 |
518 | Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 519 | korzystanie z baz danych MySQL poprzez klasy QSql. |
c65780d7 | 520 | |
5c878990 JB |
521 | %package st-plugin-odbc |
522 | Summary: Database plugin for ODBC support in single-threaded Qt | |
e2f55516 | 523 | Summary(pl.UTF-8): Wtyczka ODBC do jednowątkowej wersji Qt |
5c878990 JB |
524 | Group: X11/Libraries |
525 | Requires: %{name}-st = %{epoch}:%{version}-%{release} | |
526 | Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release} | |
d2ce5e27 | 527 | |
5c878990 | 528 | %description st-plugin-odbc |
6625eb4f | 529 | This package contains a single-thread enabled plugin for accessing |
530 | unixODBC services via the QSql classes. | |
d2ce5e27 | 531 | |
a0529e0f JR |
532 | %description st-plugin-odbc -l pl.UTF-8 |
533 | Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej | |
534 | korzystanie z usług unixODBC poprzez klasy QSql. | |
d2ce5e27 | 535 | |
c65780d7 JB |
536 | %package st-plugin-psql |
537 | Summary: Database plugin for PostgreSQL support in single-threaded Qt | |
e2f55516 ER |
538 | Summary(pl.UTF-8): Wtyczka PostgreSQL do jednowątkowej wersji Qt |
539 | Summary(pt_BR.UTF-8): Plugin de suporte a PostgreSQL para Qt | |
c65780d7 JB |
540 | Group: X11/Libraries |
541 | Requires: %{name}-st = %{epoch}:%{version}-%{release} | |
542 | Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release} | |
543 | ||
544 | %description st-plugin-psql | |
6625eb4f | 545 | This package contains a single-thread plugin for accessing PostgreSQL |
546 | database via the QSql classes. | |
c65780d7 | 547 | |
a0529e0f JR |
548 | %description st-plugin-psql -l pl.UTF-8 |
549 | Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 550 | korzystanie z baz danych PostgreSQL poprzez klasy QSql. |
c65780d7 | 551 | |
d2ce5e27 | 552 | %package st-plugin-sqlite |
805d7290 | 553 | Summary: Database plugin for SQLite support in single-threaded Qt |
e2f55516 | 554 | Summary(pl.UTF-8): Wtyczka SQLite do jednowątkowej wersji Qt |
805d7290 | 555 | Group: X11/Libraries |
556 | Requires: %{name}-st = %{epoch}:%{version}-%{release} | |
557 | Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release} | |
d2ce5e27 | 558 | |
559 | %description st-plugin-sqlite | |
6625eb4f | 560 | This package contains a single-thread plugin for using the SQLite |
561 | library (which allows to acces virtually any SQL database) | |
d2ce5e27 | 562 | |
a0529e0f JR |
563 | %description st-plugin-sqlite -l pl.UTF-8 |
564 | Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej | |
6625eb4f | 565 | korzystanie z baz danych PostgreSQL poprzez klasy QSql. |
155beaf2 | 566 | |
6625eb4f | 567 | %package linguist |
568 | Summary: Translation helper for Qt | |
e2f55516 | 569 | Summary(pl.UTF-8): Aplikacja ułatwiająca tłumaczenie aplikacji oparty o Qt |
6625eb4f | 570 | Group: X11/Development/Tools |
19aacacc JB |
571 | Requires: %{name} = %{epoch}:%{version}-%{release} |
572 | Conflicts: qt-devel < 6:3.3.2-3 | |
6625eb4f | 573 | |
574 | %description linguist | |
575 | This program provides an interface that shortens and helps systematize | |
576 | the process of translating GUIs. Qt Linguist takes all of the text of | |
577 | a UI that will be shown to the user, and presents it to a human | |
578 | translator in a simple window. When one UI text is translated, the | |
579 | program automatically progresses to the next, until they are all | |
580 | completed. | |
581 | ||
a0529e0f JR |
582 | %description linguist -l pl.UTF-8 |
583 | Ten program oferuje interfejs znacznie przyśpieszający proces | |
584 | tłumaczenia interfejsu użytkownika. Zbiera wszystkie teksty | |
585 | przeznaczone do tłumaczenia i przedstawia w łatwym w obsłudze oknie. | |
586 | Gdy jeden z nich jest już przetłumaczony, automatycznie przechodzi do | |
587 | następnego, aż wszystkie będą przetłumaczone. | |
6625eb4f | 588 | |
589 | %package assistant | |
590 | Summary: Qt documentation browser | |
e2f55516 | 591 | Summary(pl.UTF-8): Przeglądarka dokumentacji Qt |
6625eb4f | 592 | Group: X11/Development/Tools |
ecdb1693 | 593 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2cec2206 | 594 | Requires: %{name}-doc |
19aacacc | 595 | Conflicts: qt-devel < 6:3.3.2-3 |
155beaf2 | 596 | |
6625eb4f | 597 | %description assistant |
598 | Qt Assistant is a tool for browsing on-line documentation with | |
599 | indexing, bookmarks and full-text search. | |
155beaf2 | 600 | |
a0529e0f JR |
601 | %description assistant -l pl.UTF-8 |
602 | Qt Assistant to narzędzie do przeglądania dokumentacji z możliwością | |
603 | indeksowania, dodawania zakładek i pełnotekstowego wyszukiwania. | |
155beaf2 | 604 | |
6625eb4f | 605 | %package -n qmake |
606 | Summary: Qt makefile generator | |
e2f55516 | 607 | Summary(pl.UTF-8): Generator plików makefile dla aplikacji Qt |
0c4d432d | 608 | Group: X11/Development/Tools |
19aacacc | 609 | Conflicts: qt-devel < 6:3.3.2-3 |
0c4d432d | 610 | |
6625eb4f | 611 | %description -n qmake |
612 | A powerful makefile generator. It can create makefiles on any platform | |
613 | from a simple .pro definitions file. | |
0c4d432d | 614 | |
a0529e0f JR |
615 | %description -n qmake -l pl.UTF-8 |
616 | Rozbudowany generator plików makefile. Potrafi tworzyć pliki makefile | |
617 | na każdej platformie na podstawie łatwego w przygotowaniu pliku .pro. | |
0c4d432d | 618 | |
13980c2c | 619 | %package -n qtconfig |
19aacacc | 620 | Summary: Qt widgets configuration tool |
e2f55516 | 621 | Summary(pl.UTF-8): Narzędzie do konfigurowania widgetów Qt |
13980c2c | 622 | Group: X11/Applications |
623 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
624 | ||
625 | %description -n qtconfig | |
19aacacc | 626 | A tool for configuring look and behavior of Qt widgets. |
13980c2c | 627 | |
a0529e0f JR |
628 | %description -n qtconfig -l pl.UTF-8 |
629 | Narzędie do konfiguracji wyglądu i zachowania widgetów Qt. | |
13980c2c | 630 | |
9c0c174c | 631 | %package designer |
19aacacc | 632 | Summary: IDE used for GUI designing with Qt library |
e2f55516 | 633 | Summary(pl.UTF-8): IDE służące do projektowania GUI za pomocą biblioteki Qt |
805d7290 | 634 | Group: X11/Applications |
635 | Requires: %{name}-designer-libs = %{epoch}:%{version}-%{release} | |
9c0c174c | 636 | |
637 | %description designer | |
19aacacc | 638 | An advanced tool used for GUI designing with Qt library. |
9c0c174c | 639 | |
a0529e0f JR |
640 | %description designer -l pl.UTF-8 |
641 | Zaawansowane narzędzie służące do projektowania interfejsu graficznego | |
642 | za pomocą biblioteki Qt. | |
9c0c174c | 643 | |
644 | %package designer-libs | |
19aacacc | 645 | Summary: Libraries IDE used for GUI designing with Qt library |
e2f55516 | 646 | Summary(pl.UTF-8): Biblioteki do IDE służącego do projektowania GUI za pomocą biblioteki Qt |
805d7290 | 647 | Group: X11/Applications |
19aacacc | 648 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9c0c174c | 649 | |
650 | %description designer-libs | |
6625eb4f | 651 | Libraries used by the Qt GUI Designer. |
9c0c174c | 652 | |
a0529e0f JR |
653 | %description designer-libs -l pl.UTF-8 |
654 | Biblioteki wykorzystywane przez narzędzie projektowania interfejsu | |
6625eb4f | 655 | graficznego - Qt Designer. |
9c0c174c | 656 | |
3c43cb43 | 657 | %prep |
66b71d49 | 658 | %setup -q -n qt3 |
78fc78c5 | 659 | %patch1 -p1 |
660 | %patch2 -p1 | |
ada87089 | 661 | %patch3 -p1 |
050c8a71 | 662 | %patch4 -p1 |
0d479a26 | 663 | %patch5 -p1 |
7d0b5851 | 664 | %patch6 -p1 |
8038d6dc | 665 | %patch7 -p1 |
61cd571b | 666 | %patch8 -p1 |
5a0b0a25 | 667 | %patch9 -p1 |
f67b43ac | 668 | %patch10 -p1 |
66b71d49 AM |
669 | %patch11 -p1 |
670 | %patch12 -p0 | |
671 | %patch13 -p1 | |
672 | %patch14 -p1 | |
673 | %patch15 -p1 | |
9433c91b ER |
674 | |
675 | # copy qt kde integration files | |
676 | cp %{SOURCE8} %{SOURCE9} src/kernel | |
677 | cp %{SOURCE9} include/private | |
072f7228 | 678 | |
bdfce653 | 679 | # change QMAKE_CFLAGS_RELEASE to build |
680 | # properly optimized libs | |
6dce9c26 ER |
681 | cp mkspecs/linux-g++/qmake.conf{,.orig} |
682 | %{__sed} -i -e ' | |
59d140fb | 683 | s|/usr/lib|%{_libdir}|; |
ebcb871a JB |
684 | s|/usr/X11R6/lib|/usr/%{_lib}|; |
685 | s|/usr/X11R6/include|/usr/include|; | |
9ac4d467 | 686 | s|(QTDIR)/lib|(QTDIR)/%{_lib}|; |
6dce9c26 ER |
687 | s|QMAKE_RPATH\s*=.*|QMAKE_RPATH =| |
688 | s|QMAKE_STRIP\s*=.*|QMAKE_STRIP =| | |
689 | s|QMAKE_STRIPFLAGS_LIB\s*+=.*|QMAKE_STRIPFLAGS_LIB =| | |
690 | s|QMAKE_LINK\s*=.*g++|QMAKE_LINK = %{__cxx}| | |
691 | s|QMAKE_LINK_SHLIB\s*=.*g++|QMAKE_LINK_SHLIB = %{__cxx}| | |
692 | s|QMAKE_CC\s*=.*gcc|QMAKE_CC = %{__cc}| | |
693 | s|QMAKE_CXX\s*=.*g++|QMAKE_CXX = %{__cxx}| | |
694 | s|QMAKE_CFLAGS\s*=.*-pipe|QMAKE_CFLAGS\t=\t%{rpmcflags} -pipe| | |
695 | s|QMAKE_CFLAGS_RELEASE\s*=.*|QMAKE_CFLAGS_RELEASE\t=\t%{rpmcflags}| | |
696 | s|QMAKE_CFLAGS_DEBUG\s*=.*|QMAKE_CFLAGS_DEBUG\t=\t%{debugcflags}| | |
697 | s|QMAKE_CXXFLAGS_RELEASE\s*=.*|QMAKE_CXXFLAGS_RELEASE\t=\t%{rpmcxxflags}| | |
698 | s|QMAKE_CXXFLAGS_DEBUG\s*=.*|QMAKE_CXXFLAGS_DEBUG\t=\t%{debugcflags}| | |
699 | s|QMAKE_LFLAGS_RELEASE\s*=.*|QMAKE_LFLAGS_RELEASE\t=\t%{rpmldflags}| | |
700 | s|QMAKE_LFLAGS_DEBUG\s*=.*|QMAKE_LFLAGS_DEBUG\t=\t%{rpmldflags}| | |
701 | ' mkspecs/linux-g++/qmake.conf | |
399dcb05 | 702 | |
0ac25589 JB |
703 | # default ODBC headers are used (from unixODBC), not iodbc ones; so link with unixODBC not libiodbc |
704 | %{__sed} -i -e 's/-liodbc/-lodbc/' src/sql/qt_sql.pri | |
705 | %{__sed} -i -e 's/-liodbc/-lodbc/' plugins/src/sqldrivers/odbc/odbc.pro | |
706 | ||
072f7228 | 707 | %build |
6dce9c26 | 708 | export QTDIR=$(pwd) |
072f7228 | 709 | export PATH=$QTDIR/bin:$PATH |
58e78d5b | 710 | export LD_LIBRARY_PATH=$QTDIR/%{_lib}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} |
bdfce653 | 711 | |
c247478b | 712 | %if "%{_lib}" != "lib" |
b31d224d | 713 | ln -sf lib "%{_lib}" |
c247478b | 714 | %endif |
7f1f092b | 715 | |
b2356d61 | 716 | # pass OPTFLAGS to build qmake itself with optimization |
d0a8a2ad | 717 | export OPTFLAGS="%{rpmcxxflags}" |
bdfce653 | 718 | |
719 | ################################## | |
720 | # DEFAULT OPTIONS FOR ALL BUILDS # | |
721 | ################################## | |
722 | ||
723 | DEFAULTOPT=" \ | |
9433c91b ER |
724 | %if "%{_lib}" != "lib" |
725 | -DUSE_LIB64_PATHES \ | |
726 | %endif | |
2f7c8673 | 727 | -DQT_CLEAN_NAMESPACE \ |
af60b6f1 ER |
728 | -release \ |
729 | -buildkey pld-linux \ | |
7f1f092b | 730 | -verbose \ |
bdfce653 | 731 | -prefix %{_prefix} \ |
59d140fb | 732 | -libdir %{_libdir} \ |
b31d224d | 733 | -L%{_libdir} \ |
96a64d31 | 734 | -headerdir %{_includedir}/qt \ |
bdfce653 | 735 | -datadir %{_datadir}/qt \ |
736 | -docdir %{_docdir}/%{name}-doc \ | |
2d96e6ce | 737 | -sysconfdir %{_sysconfdir}/qt \ |
383f28b1 | 738 | -translationdir %{_datadir}/locale/ \ |
ecb2e88f | 739 | -fast \ |
bdfce653 | 740 | -qt-gif \ |
741 | -system-libjpeg \ | |
742 | -system-libmng \ | |
743 | -system-libpng \ | |
744 | -system-zlib \ | |
745 | -no-exceptions \ | |
13980c2c | 746 | -ipv6 \ |
96a64d31 | 747 | -I%{_includedir}/postgresql/server \ |
748 | -I%{_includedir}/mysql \ | |
b31d224d | 749 | %{!?with_cups:-no}-cups \ |
c8ea7660 | 750 | %{?with_nas:-system-nas-sound} \ |
0ebb7751 | 751 | %{?with_dlopen_gl:-dlopen-opengl} \ |
21bdf306 | 752 | %{?with_pch:-pch} \ |
bdfce653 | 753 | %{?debug:-debug}" |
754 | ||
7f1f092b | 755 | ################################## |
756 | # OPTIONS FOR STATIC-{ST,MT} # | |
757 | ################################## | |
bdfce653 | 758 | |
91e76425 | 759 | %if %{with static_libs} |
bdfce653 | 760 | STATICOPT=" \ |
90dfad28 | 761 | -qt-imgfmt-jpeg \ |
762 | -qt-imgfmt-mng \ | |
bdfce653 | 763 | -qt-imgfmt-png \ |
0ac25589 | 764 | %{?with_ibase:-qt-sql-ibase} \ |
c8ea7660 JB |
765 | %{?with_mysql:-qt-sql-mysql} \ |
766 | %{?with_odbc:-qt-sql-odbc} \ | |
767 | %{?with_pgsql:-qt-sql-psql} \ | |
d2ce5e27 | 768 | %{?with_sqlite:-qt-sql-sqlite} \ |
bdfce653 | 769 | -static" |
770 | %endif | |
771 | ||
7f1f092b | 772 | ################################## |
0ac25589 | 773 | # STATIC SINGLE-THREAD # |
7f1f092b | 774 | ################################## |
bdfce653 | 775 | |
91e76425 | 776 | %if %{with static_libs} && %{with single} |
bdfce653 | 777 | ./configure \ |
778 | $DEFAULTOPT \ | |
779 | $STATICOPT \ | |
90dfad28 | 780 | <<_EOF_ |
f299c0ae AM |
781 | yes |
782 | _EOF_ | |
bdfce653 | 783 | # Do not build tutorial and examples. Provide them as sources. |
90dfad28 | 784 | %{__make} symlinks src-qmake src-moc sub-src |
f299c0ae | 785 | |
90dfad28 | 786 | # This will not remove previously compiled libraries. |
787 | %{__make} clean | |
bdfce653 | 788 | %endif |
f299c0ae | 789 | |
7f1f092b | 790 | ################################## |
0ac25589 | 791 | # STATIC MULTI-THREAD # |
7f1f092b | 792 | ################################## |
bdfce653 | 793 | |
91e76425 | 794 | %if %{with static_libs} |
59637552 | 795 | ./configure \ |
f299c0ae | 796 | $DEFAULTOPT \ |
bdfce653 | 797 | $STATICOPT \ |
5c1641dd | 798 | -thread \ |
90dfad28 | 799 | <<_EOF_ |
a201f985 | 800 | yes |
801 | _EOF_ | |
dc644c89 | 802 | |
bdfce653 | 803 | # Do not build tutorial and examples. Provide them as sources. |
fe9924a7 | 804 | %{__make} symlinks src-qmake src-moc sub-src |
25722d9b | 805 | |
90dfad28 | 806 | # This will not remove previously compiled libraries. |
bdfce653 | 807 | %{__make} clean |
808 | %endif | |
90dfad28 | 809 | |
7f1f092b | 810 | ################################## |
811 | # OPTIONS FOR SHARED-{ST,MT} # | |
812 | ################################## | |
113d2b94 | 813 | |
bdfce653 | 814 | SHAREDOPT=" \ |
90dfad28 | 815 | -plugin-imgfmt-jpeg \ |
816 | -plugin-imgfmt-mng \ | |
bdfce653 | 817 | -plugin-imgfmt-png \ |
c8ea7660 JB |
818 | %{?with_mysql:-plugin-sql-mysql} \ |
819 | %{?with_odbc:-plugin-sql-odbc} \ | |
820 | %{?with_pgsql:-plugin-sql-psql} \ | |
d2ce5e27 | 821 | %{?with_sqlite:-plugin-sql-sqlite} \ |
822 | %{?with_ibase:-plugin-sql-ibase} \ | |
bdfce653 | 823 | -plugin-style-cde \ |
824 | -plugin-style-compact \ | |
825 | -plugin-style-motif \ | |
826 | -plugin-style-motifplus \ | |
827 | -plugin-style-platinum \ | |
828 | -plugin-style-sgi \ | |
829 | -plugin-style-windows" | |
e2b120b3 | 830 | |
7f1f092b | 831 | ################################## |
f97fa28a | 832 | # SHARED SINGLE-THREAD # |
7f1f092b | 833 | ################################## |
bdfce653 | 834 | |
c8ea7660 | 835 | %if %{with single} |
bdfce653 | 836 | # workaround for some nasty bug to avoid |
837 | # linking plugins statically with -lqt-mt | |
59d140fb | 838 | rm -f %{_lib}/libqt-mt.prl |
bdfce653 | 839 | |
840 | ./configure \ | |
841 | $DEFAULTOPT \ | |
842 | $SHAREDOPT \ | |
843 | -plugindir %{_libdir}/qt/plugins-st \ | |
90dfad28 | 844 | <<_EOF_ |
f299c0ae AM |
845 | yes |
846 | _EOF_ | |
847 | ||
bdfce653 | 848 | # Do not build tutorial and examples. Provide them as sources. |
fe9924a7 | 849 | %{__make} symlinks src-qmake src-moc sub-src |
89cde098 | 850 | |
b5276b5b | 851 | # Do not make tools, only plugins. |
072f7228 | 852 | %{__make} -C plugins/src sub-imageformats sub-sqldrivers sub-styles |
6ca8111c | 853 | |
ada87089 | 854 | # This will not remove previously compiled libraries. But WILL remove |
855 | # plugins. And even if they weren't removed, they would be overwritten | |
856 | # by next compilation. So they must be backed up. | |
89cde098 | 857 | rm -rf plugins-st |
ada87089 | 858 | mkdir plugins-st |
ecb2e88f | 859 | cp -R plugins/{imageformats,styles} plugins-st |
c247478b | 860 | %{?with_sql:cp -R plugins/sqldrivers plugins-st} |
bdfce653 | 861 | %{__make} clean |
ecb2e88f | 862 | %endif |
863 | ||
7f1f092b | 864 | ################################## |
f97fa28a | 865 | # SHARED MULTI-THREAD # |
7f1f092b | 866 | ################################## |
dc644c89 | 867 | |
90dfad28 | 868 | ./configure \ |
869 | $DEFAULTOPT \ | |
bdfce653 | 870 | $SHAREDOPT \ |
5c1641dd | 871 | -thread \ |
bdfce653 | 872 | -plugindir %{_libdir}/qt/plugins-mt \ |
90dfad28 | 873 | <<_EOF_ |
874 | yes | |
875 | _EOF_ | |
4814077d | 876 | |
648721c1 | 877 | %if %{without designer} |
13980c2c | 878 | grep -v designer tools/tools.pro > tools/tools.pro.1 |
879 | mv tools/tools.pro{.1,} | |
9c0c174c | 880 | %{__make} -C tools/designer/uic \ |
fd7cc1f6 | 881 | UIC="LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 $QTDIR/bin/uic -L $QTDIR/plugins" |
13980c2c | 882 | %endif |
883 | ||
90dfad28 | 884 | # Do not build tutorial and examples. Provide them as sources. |
bdfce653 | 885 | #%%{__make} symlinks src-qmake src-moc sub-src sub-tools |
848a71fb SS |
886 | # with __make -jN we can got (making qmake_image_collection.o): |
887 | # cc1plus: error: designercore: No such file or directory | |
888 | # cc1plus: error: one or more PCH files were found, but they were invalid | |
889 | # cc1plus: error: use -Winvalid-pch for more information | |
f82ecf8d | 890 | %{__make} -j1 sub-tools \ |
fd7cc1f6 | 891 | UIC="LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 $QTDIR/bin/uic -L $QTDIR/plugins" |
bdfce653 | 892 | |
13980c2c | 893 | %if %{with designer} |
c65780d7 | 894 | cd tools/designer/designer |
b5276b5b | 895 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease designer_de.ts |
896 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease designer_fr.ts | |
13980c2c | 897 | %endif |
b5276b5b | 898 | cd $QTDIR/tools/assistant |
899 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease assistant_de.ts | |
900 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease assistant_fr.ts | |
901 | cd $QTDIR/tools/linguist/linguist | |
902 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease linguist_de.ts | |
903 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease linguist_fr.ts | |
9718c442 | 904 | cd $QTDIR/translations/ |
0f3c951c | 905 | for i in *.ts; do |
b935b421 | 906 | LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease ${i} |
9718c442 | 907 | done |
908 | cd - | |
4814077d | 909 | |
7f1f092b | 910 | ##make -C extensions/nsplugin/src |
911 | ||
90dfad28 | 912 | %install |
913 | rm -rf $RPM_BUILD_ROOT | |
dc644c89 | 914 | |
b984108e | 915 | export QTDIR=$(pwd) |
f299c0ae | 916 | |
5c1641dd PG |
917 | %{__make} install \ |
918 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
c8ea7660 | 919 | |
bdfce653 | 920 | install -d \ |
2d96e6ce | 921 | $RPM_BUILD_ROOT%{_sysconfdir}/qt \ |
f67b43ac | 922 | $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/{crypto,network} \ |
c8ea7660 | 923 | %{?with_single:$RPM_BUILD_ROOT%{_libdir}/qt/plugins-st/network} \ |
bdfce653 | 924 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}/lib \ |
925 | $RPM_BUILD_ROOT%{_mandir}/man{1,3} \ | |
13980c2c | 926 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
e2b120b3 | 927 | |
b984108e | 928 | install -p bin/{findtr,qt20fix,qtrename140} \ |
bdfce653 | 929 | tools/{msg2qm/msg2qm,mergetr/mergetr} \ |
89cde098 | 930 | $RPM_BUILD_ROOT%{_bindir} |
82d42c9f | 931 | |
91e76425 | 932 | %if %{with static_libs} |
b984108e | 933 | cp -a %{_lib}/libqt*.a $RPM_BUILD_ROOT%{_libdir} |
d530c414 | 934 | %endif |
90dfad28 | 935 | |
c8ea7660 | 936 | %if %{with single} |
b984108e ER |
937 | install -p %{_lib}/libqt.so.*.*.* $RPM_BUILD_ROOT%{_libdir} |
938 | ln -sf libqt.so.%{ver} $RPM_BUILD_ROOT%{_libdir}/libqt.so | |
939 | cp -a %{_lib}/qt.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
c8ea7660 | 940 | cp -R plugins-st/* $RPM_BUILD_ROOT%{_libdir}/qt/plugins-st |
bdfce653 | 941 | %endif |
ada87089 | 942 | |
b984108e | 943 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
9d8dcc22 | 944 | |
13980c2c | 945 | %if %{with designer} |
0deb0bc7 AM |
946 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/designer.desktop |
947 | install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir} | |
13980c2c | 948 | %endif |
9d8dcc22 | 949 | |
0deb0bc7 | 950 | install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir} |
caadae0f | 951 | install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir} |
f67b43ac | 952 | |
0deb0bc7 | 953 | install %{SOURCE6} %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir} |
242b6743 | 954 | |
b984108e | 955 | cp -a tools/qtconfig/images/appicon.png \ |
242b6743 | 956 | $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig.png |
957 | ||
b984108e ER |
958 | %if %{without designer} |
959 | install -p bin/uic $RPM_BUILD_ROOT%{_bindir} | |
d2ce5e27 | 960 | %endif |
961 | ||
e3737ad6 | 962 | # Because trolltech fails to think. |
b935b421 | 963 | rm -rf $RPM_BUILD_ROOT%{_bindir}/qmake |
b984108e | 964 | install -p qmake/qmake $RPM_BUILD_ROOT%{_bindir}/qmake |
242b6743 | 965 | |
b984108e ER |
966 | cp -a doc/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
967 | cp -a doc/man/man3/*.3qt $RPM_BUILD_ROOT%{_mandir}/man3 | |
ada87089 | 968 | |
bdfce653 | 969 | cp -dpR examples tutorial $RPM_BUILD_ROOT%{_examplesdir}/%{name} |
cbd58aa3 | 970 | |
89cde098 | 971 | mv $RPM_BUILD_ROOT{%{_libdir}/*.prl,%{_examplesdir}/%{name}/lib} |
ada87089 | 972 | |
af60b6f1 ER |
973 | %{__sed} -i -e ' |
974 | # From now QMAKE_INCDIR_QT becomes %{_includedir}/qt | |
975 | s|\(QMAKE_INCDIR_QT\s*=\s*\$(QTDIR)/include\)|\1/qt| | |
976 | # Remove ccache if any | |
977 | /QMAKE_\(CC\|CXX\|LINK\)/s|ccache ||; | |
978 | ' $RPM_BUILD_ROOT%{_datadir}/qt/mkspecs/linux-g++/qmake.conf | |
979 | rm $RPM_BUILD_ROOT%{_datadir}/qt/mkspecs/linux-g++/qmake.conf.orig | |
bdfce653 | 980 | |
47f3c2af | 981 | # We provide qt style classes as plugins, |
982 | # so make corresponding changes to the qconfig.h. | |
771a1d24 | 983 | chmod u+w $RPM_BUILD_ROOT%{_includedir}/qt/qconfig.h |
33067f1c | 984 | |
96a64d31 | 985 | cat >> $RPM_BUILD_ROOT%{_includedir}/qt/qconfig.h << EOF |
47f3c2af | 986 | |
987 | /* All of these style classes we provide as plugins */ | |
988 | #define QT_NO_STYLE_CDE | |
989 | #define QT_NO_STYLE_COMPACT | |
990 | #define QT_NO_STYLE_MOTIF | |
991 | #define QT_NO_STYLE_MOTIFPLUS | |
992 | #define QT_NO_STYLE_PLATINUM | |
993 | #define QT_NO_STYLE_SGI | |
994 | #define QT_NO_STYLE_WINDOWS | |
bdfce653 | 995 | |
47f3c2af | 996 | EOF |
997 | ||
0f3c951c ER |
998 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/{ar,ca,cs,de,es,fr,he,it,ja,nb,pt,pt_BR,ru,sk,zh_CN,zh_TW}/LC_MESSAGES |
999 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ar.qm,ar/LC_MESSAGES/qt.qm} | |
1000 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ca.qm,ca/LC_MESSAGES/qt.qm} | |
1001 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_cs.qm,cs/LC_MESSAGES/qt.qm} | |
1002 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_de.qm,de/LC_MESSAGES/qt.qm} | |
1003 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_es.qm,es/LC_MESSAGES/qt.qm} | |
1004 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_fr.qm,fr/LC_MESSAGES/qt.qm} | |
1005 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_he.qm,he/LC_MESSAGES/qt.qm} | |
1006 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_it.qm,it/LC_MESSAGES/qt.qm} | |
1007 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ja.qm,ja/LC_MESSAGES/qt.qm} | |
1008 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_nb.qm,nb/LC_MESSAGES/qt.qm} | |
1009 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_pt-br.qm,pt_BR/LC_MESSAGES/qt.qm} | |
1010 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ru.qm,ru/LC_MESSAGES/qt.qm} | |
1011 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_sk.qm,sk/LC_MESSAGES/qt.qm} | |
1012 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_zh-cn.qm,zh_CN/LC_MESSAGES/qt.qm} | |
1013 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_zh-tw.qm,zh_TW/LC_MESSAGES/qt.qm} | |
13980c2c | 1014 | |
13980c2c | 1015 | %if %{with designer} |
b984108e ER |
1016 | cp -a tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm |
1017 | cp -a tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm | |
13980c2c | 1018 | %endif |
bdfce653 | 1019 | |
0f3c951c | 1020 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{assistant_de.qm,de/LC_MESSAGES/assistant.qm} |
b984108e | 1021 | cp -a tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm |
bdfce653 | 1022 | |
b984108e ER |
1023 | cp -a tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm |
1024 | cp -a tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm | |
bdfce653 | 1025 | |
b984108e | 1026 | cp -a tools/linguist/qm2ts/qm2ts.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
7f1f092b | 1027 | |
b984108e | 1028 | find $RPM_BUILD_ROOT -name CVS | xargs rm -rf |
5569f2af | 1029 | |
1030 | cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}/examples | |
b984108e ER |
1031 | for i in $(find -name Makefile); do |
1032 | %{__sed} -i -e "s,$RPM_BUILD_DIR,/usr,g" $i | |
1033 | %{__sed} -i -e "s,examples,src/examples/qt/examples,g" $i | |
5569f2af | 1034 | done |
1035 | ||
1036 | cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}/tutorial | |
b984108e ER |
1037 | for i in $(find -name Makefile); do |
1038 | %{__sed} -i -e "s,$RPM_BUILD_DIR,/usr,g" $i | |
1039 | %{__sed} -i -e "s,examples,src/examples/qt/tutorial,g" $i | |
5569f2af | 1040 | done |
1041 | ||
a5732372 | 1042 | # drop some bad symlink |
b0a094da | 1043 | rm -f $RPM_BUILD_ROOT%{_datadir}/qt/mkspecs/linux-g++/linux-g++ |
5569f2af | 1044 | |
b984108e ER |
1045 | # unwanted symlinks |
1046 | rm $RPM_BUILD_ROOT%{_libdir}/libdesignercore.so.1.0 | |
1047 | rm $RPM_BUILD_ROOT%{_libdir}/libeditor.so.1.0 | |
1048 | rm $RPM_BUILD_ROOT%{_libdir}/libqassistantclient.so.1.0 | |
1049 | rm $RPM_BUILD_ROOT%{_libdir}/libqt-mt.so.3.3 | |
1050 | rm $RPM_BUILD_ROOT%{_libdir}/libqui.so.1.0 | |
1051 | ||
4814077d | 1052 | %clean |
1da927df | 1053 | rm -rf $RPM_BUILD_ROOT |
4814077d | 1054 | |
c977a8cf | 1055 | %post -p /sbin/ldconfig |
7f1f092b | 1056 | %postun -p /sbin/ldconfig |
1057 | ||
1058 | %post st -p /sbin/ldconfig | |
1059 | %postun st -p /sbin/ldconfig | |
fe9924a7 | 1060 | |
5c878990 JB |
1061 | %post designer-libs -p /sbin/ldconfig |
1062 | %postun designer-libs -p /sbin/ldconfig | |
1063 | ||
4814077d | 1064 | %files |
fe876ed3 | 1065 | %defattr(644,root,root,755) |
1da927df | 1066 | %doc FAQ LICENSE.* README* changes* |
7f1f092b | 1067 | %dir %{_sysconfdir}/qt |
0a12e6e0 | 1068 | %attr(755,root,root) %{_libdir}/libqassistantclient.so.*.*.* |
b984108e | 1069 | %attr(755,root,root) %ghost %{_libdir}/libqassistantclient.so.1 |
c65780d7 | 1070 | %attr(755,root,root) %{_libdir}/libqt-mt.so.*.*.* |
b984108e | 1071 | %attr(755,root,root) %ghost %{_libdir}/libqt-mt.so.3 |
f299c0ae | 1072 | %dir %{_libdir}/%{name} |
c65780d7 | 1073 | %dir %{_libdir}/%{name}/plugins-mt |
0ac0c0a4 | 1074 | %dir %{_libdir}/%{name}/plugins-mt/crypto |
1075 | %dir %{_libdir}/%{name}/plugins-mt/imageformats | |
1076 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/imageformats/*.so | |
66b71d49 AM |
1077 | %dir %{_libdir}/%{name}/plugins-mt/inputmethods |
1078 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqimsw-multi.so | |
1079 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqimsw-none.so | |
1080 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqsimple.so | |
1081 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqxim.so | |
c65780d7 | 1082 | %dir %{_libdir}/%{name}/plugins-mt/network |
c247478b | 1083 | %{?with_sql:%dir %{_libdir}/%{name}/plugins-mt/sqldrivers} |
c65780d7 JB |
1084 | %dir %{_libdir}/%{name}/plugins-mt/styles |
1085 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/styles/*.so | |
841dfb75 | 1086 | %dir %{_datadir}/qt |
bdfce653 | 1087 | %lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt.qm |
0f3c951c | 1088 | %lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/qt.qm |
c1b6ab69 | 1089 | %lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/qt.qm |
bdfce653 | 1090 | %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt.qm |
c1b6ab69 | 1091 | %lang(es) %{_datadir}/locale/es/LC_MESSAGES/qt.qm |
bdfce653 | 1092 | %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt.qm |
1093 | %lang(he) %{_datadir}/locale/he/LC_MESSAGES/qt.qm | |
0f3c951c ER |
1094 | %lang(it) %{_datadir}/locale/it/LC_MESSAGES/qt.qm |
1095 | %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt.qm | |
1096 | %lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/qt.qm | |
1097 | %lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/qt.qm | |
bdfce653 | 1098 | %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt.qm |
13980c2c | 1099 | %lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt.qm |
0f3c951c ER |
1100 | %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt.qm |
1101 | %lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/qt.qm | |
bdfce653 | 1102 | |
4814077d | 1103 | %files devel |
c80c8131 | 1104 | %defattr(644,root,root,755) |
dd1952de | 1105 | %attr(755,root,root) %{_bindir}/makeqpf |
13980c2c | 1106 | %attr(755,root,root) %{_bindir}/moc |
dd1952de | 1107 | %attr(755,root,root) %{_bindir}/qembed |
13980c2c | 1108 | %attr(755,root,root) %{_bindir}/qt20fix |
1109 | #%attr(755,root,root) %{_bindir}/qt32castcompat | |
1110 | %attr(755,root,root) %{_bindir}/qtrename140 | |
1111 | %attr(755,root,root) %{_bindir}/uic | |
96a64d31 | 1112 | %{_includedir}/qt |
be291500 | 1113 | %{_libdir}/libqassistantclient.so |
c2cfa9d4 | 1114 | %{_libdir}/libqt-mt.la |
c65780d7 | 1115 | %{_libdir}/libqt-mt.so |
6625eb4f | 1116 | %{_mandir}/man1/moc* |
1117 | %{_mandir}/man1/uic* | |
c65780d7 | 1118 | %{_pkgconfigdir}/qt-mt.pc |
383f28b1 | 1119 | |
6625eb4f | 1120 | %files -n qmake |
1121 | %defattr(644,root,root,755) | |
1122 | %attr(755,root,root) %{_bindir}/qmake | |
1123 | %{_datadir}/qt/mkspecs | |
1124 | ||
91e76425 | 1125 | %if %{with static_libs} |
f299c0ae AM |
1126 | %files static |
1127 | %defattr(644,root,root,755) | |
c65780d7 | 1128 | %{_libdir}/libqt-mt.a |
89cde098 | 1129 | %endif |
a201f985 | 1130 | |
bdfce653 | 1131 | %files doc |
0c4d432d | 1132 | %defattr(644,root,root,755) |
bdfce653 | 1133 | %{_docdir}/%{name}-doc |
0c4d432d | 1134 | |
a201f985 | 1135 | %files examples |
1136 | %defattr(644,root,root,755) | |
1da927df | 1137 | %{_examplesdir}/%{name} |
50f34d85 | 1138 | |
bdfce653 | 1139 | %files man |
1140 | %defattr(644,root,root,755) | |
0ac25589 JB |
1141 | %{_mandir}/man3/Q*.3qt* |
1142 | %{_mandir}/man3/q*.3qt* | |
bdfce653 | 1143 | |
c8ea7660 | 1144 | %if %{with mysql} |
bdfce653 | 1145 | %files plugin-mysql |
50f34d85 | 1146 | %defattr(644,root,root,755) |
0ac25589 | 1147 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlmysql.so |
ea3ab35d | 1148 | %endif |
50f34d85 | 1149 | |
c8ea7660 | 1150 | %if %{with pgsql} |
bdfce653 | 1151 | %files plugin-psql |
50f34d85 | 1152 | %defattr(644,root,root,755) |
0ac25589 | 1153 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlpsql.so |
ea3ab35d | 1154 | %endif |
50f34d85 | 1155 | |
c8ea7660 | 1156 | %if %{with odbc} |
bdfce653 | 1157 | %files plugin-odbc |
50f34d85 | 1158 | %defattr(644,root,root,755) |
0ac25589 | 1159 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlodbc.so |
c65780d7 JB |
1160 | %endif |
1161 | ||
d2ce5e27 | 1162 | %if %{with sqlite} |
1163 | %files plugin-sqlite | |
1164 | %defattr(644,root,root,755) | |
0ac25589 | 1165 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlite.so |
d2ce5e27 | 1166 | %endif |
1167 | ||
1168 | %if %{with ibase} | |
1169 | %files plugin-ibase | |
1170 | %defattr(644,root,root,755) | |
0ac25589 | 1171 | %attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlibase.so |
d2ce5e27 | 1172 | %endif |
1173 | ||
c65780d7 JB |
1174 | %if %{with single} |
1175 | %files st | |
1176 | %defattr(644,root,root,755) | |
1177 | %attr(755,root,root) %{_libdir}/libqt.so.*.*.* | |
1178 | %dir %{_libdir}/%{name}/plugins-st | |
1179 | %dir %{_libdir}/%{name}/plugins-st/network | |
c247478b | 1180 | %{?with_sql:%dir %{_libdir}/%{name}/plugins-st/sqldrivers} |
c65780d7 JB |
1181 | %dir %{_libdir}/%{name}/plugins-st/imageformats |
1182 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/imageformats/*.so | |
1183 | %dir %{_libdir}/%{name}/plugins-st/styles | |
1184 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/styles/*.so | |
1185 | ||
1186 | %files st-devel | |
1187 | %defattr(644,root,root,755) | |
1188 | %attr(755,root,root) %{_libdir}/libqt.so | |
1189 | %{_pkgconfigdir}/qt.pc | |
1190 | ||
91e76425 | 1191 | %if %{with static_libs} |
c65780d7 JB |
1192 | %files st-static |
1193 | %defattr(644,root,root,755) | |
1194 | %{_libdir}/libqt.a | |
1195 | %endif | |
1196 | ||
1197 | %if %{with mysql} | |
1198 | %files st-plugin-mysql | |
1199 | %defattr(644,root,root,755) | |
0ac25589 | 1200 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlmysql.so |
c65780d7 JB |
1201 | %endif |
1202 | ||
1203 | %if %{with pgsql} | |
1204 | %files st-plugin-psql | |
1205 | %defattr(644,root,root,755) | |
0ac25589 | 1206 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlpsql.so |
c65780d7 JB |
1207 | %endif |
1208 | ||
1209 | %if %{with odbc} | |
1210 | %files st-plugin-odbc | |
1211 | %defattr(644,root,root,755) | |
0ac25589 | 1212 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlodbc.so |
c65780d7 | 1213 | %endif |
d2ce5e27 | 1214 | |
1215 | %if %{with sqlite} | |
1216 | %files st-plugin-sqlite | |
1217 | %defattr(644,root,root,755) | |
0ac25589 | 1218 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlite.so |
d2ce5e27 | 1219 | %endif |
1220 | ||
1221 | %if %{with ibase} | |
1222 | %files st-plugin-ibase | |
1223 | %defattr(644,root,root,755) | |
0ac25589 | 1224 | %attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlibase.so |
d2ce5e27 | 1225 | %endif |
ea3ab35d | 1226 | %endif |
0c4d432d | 1227 | |
13980c2c | 1228 | %if %{with designer} |
9c0c174c | 1229 | %files designer-libs |
1230 | %defattr(644,root,root,755) | |
1231 | %attr(755,root,root) %{_libdir}/libdesignercore.so.*.*.* | |
b984108e | 1232 | %attr(755,root,root) %ghost %{_libdir}/libdesignercore.so.1 |
9c0c174c | 1233 | %attr(755,root,root) %{_libdir}/libeditor.so.*.*.* |
b984108e | 1234 | %attr(755,root,root) %ghost %{_libdir}/libeditor.so.1 |
9c0c174c | 1235 | %attr(755,root,root) %{_libdir}/libqui.so.*.*.* |
b984108e | 1236 | %attr(755,root,root) %ghost %{_libdir}/libqui.so.1 |
5c878990 JB |
1237 | %attr(755,root,root) %{_libdir}/libdesignercore.so |
1238 | %attr(755,root,root) %{_libdir}/libeditor.so | |
1239 | %attr(755,root,root) %{_libdir}/libqui.so | |
9c0c174c | 1240 | |
1241 | %files designer | |
1242 | %defattr(644,root,root,755) | |
66b71d49 | 1243 | %attr(755,root,root) %{_bindir}/createcw |
13980c2c | 1244 | %attr(755,root,root) %{_bindir}/designer |
bdfce653 | 1245 | %attr(755,root,root) %{_libdir}/%{name}/plugins-?t/designer/*.so |
859ad9f2 | 1246 | %dir %{_libdir}/%{name}/plugins-?t/designer |
0c4d432d | 1247 | %{_datadir}/qt/designer |
bdfce653 | 1248 | %lang(de) %{_datadir}/locale/de/LC_MESSAGES/designer.qm |
1249 | %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/designer.qm | |
859ad9f2 | 1250 | %{_desktopdir}/designer.desktop |
1251 | %{_pixmapsdir}/designer.png | |
13980c2c | 1252 | %endif |
9c0c174c | 1253 | |
6625eb4f | 1254 | %files assistant |
9c0c174c | 1255 | %defattr(644,root,root,755) |
1256 | %attr(755,root,root) %{_bindir}/assistant | |
9c0c174c | 1257 | %lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm |
1258 | %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/assistant.qm | |
6625eb4f | 1259 | %{_desktopdir}/assistant.desktop |
242b6743 | 1260 | %{_pixmapsdir}/assistant.png |
6625eb4f | 1261 | |
1262 | %files linguist | |
1263 | %defattr(644,root,root,755) | |
1264 | %attr(755,root,root) %{_bindir}/linguist | |
1265 | %attr(755,root,root) %{_bindir}/findtr | |
1266 | %attr(755,root,root) %{_bindir}/lrelease | |
1267 | %attr(755,root,root) %{_bindir}/lupdate | |
1268 | %attr(755,root,root) %{_bindir}/mergetr | |
1269 | %attr(755,root,root) %{_bindir}/qm2ts | |
1270 | %attr(755,root,root) %{_bindir}/msg2qm | |
bdfce653 | 1271 | %lang(de) %{_datadir}/locale/de/LC_MESSAGES/linguist.qm |
1272 | %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/linguist.qm | |
6625eb4f | 1273 | %{_datadir}/qt/phrasebooks |
242b6743 | 1274 | %{_desktopdir}/linguist.desktop |
1275 | %{_pixmapsdir}/linguist.png | |
6625eb4f | 1276 | %{_mandir}/man1/l* |
1277 | %{_mandir}/man1/*qm* | |
1278 | ||
13980c2c | 1279 | %files -n qtconfig |
1280 | %defattr(644,root,root,755) | |
1281 | %attr(755,root,root) %{_bindir}/qtconfig | |
1282 | %{_desktopdir}/qtconfig.desktop | |
1283 | %{_pixmapsdir}/qtconfig.png |