]>
Commit | Line | Data |
---|---|---|
07c22e07 JB |
1 | # TODO: separate more plugins? (think of qxcb when there are more commonly used platforms) |
2 | # | |
51df396b | 3 | # Conditional build: |
9452387a | 4 | %bcond_with static_libs # static libraries [incomplete support in .spec] |
51df396b WF |
5 | # -- features |
6 | %bcond_without cups # CUPS printing support | |
9452387a | 7 | %bcond_without directfb # DirectFB platform support |
51df396b WF |
8 | %bcond_without gtk # GTK+ theme integration |
9 | %bcond_without pch # pch (pre-compiled headers) in qmake | |
9452387a | 10 | %bcond_without tslib # tslib support |
51df396b | 11 | # -- databases |
9452387a | 12 | %bcond_without freetds # TDS (Sybase/MS SQL) plugin |
51df396b WF |
13 | %bcond_without mysql # MySQL plugin |
14 | %bcond_without odbc # unixODBC plugin | |
15 | %bcond_without pgsql # PostgreSQL plugin | |
9452387a | 16 | %bcond_without sqlite2 # SQLite2 plugin |
51df396b | 17 | %bcond_without sqlite3 # SQLite3 plugin |
51df396b | 18 | %bcond_without ibase # ibase (InterBase/Firebird) plugin |
9452387a JB |
19 | %bcond_with db2 # DB2 support |
20 | %bcond_with oracle # OCI (Oracle) support | |
51df396b WF |
21 | # -- SIMD CPU instructions |
22 | %bcond_with sse # use SSE instructions in gui/painting module | |
23 | %bcond_with sse2 # use SSE2 instructions | |
24 | %bcond_with sse3 # use SSE3 instructions (since: Intel middle Pentium4, AMD Athlon64) | |
25 | %bcond_with ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano) | |
26 | %bcond_with sse41 # use SSE4.1 instructions (Intel since middle Core2) | |
27 | %bcond_with sse42 # use SSE4.2 instructions (the same) | |
9452387a JB |
28 | %bcond_with avx # use AVX instructions (Intel since Sandy Bridge, AMD since Bulldozer) |
29 | %bcond_with avx2 # use AVX2 instructions (Intel since Haswell) | |
51df396b WF |
30 | |
31 | %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc | |
32 | %undefine with_ibase | |
33 | %endif | |
34 | %ifarch athlon | |
35 | %define with_3dnow 1 | |
36 | %endif | |
37 | %ifarch athlon pentium3 pentium4 %{x8664} | |
38 | %define with_mmx 1 | |
39 | %endif | |
40 | %ifarch pentium3 pentium4 %{x8664} | |
41 | %define with_sse 1 | |
42 | %endif | |
43 | %ifarch pentium4 %{x8664} | |
44 | %define with_sse2 1 | |
45 | %endif | |
51df396b WF |
46 | |
47 | %define icu_abi 52 | |
48 | %define next_icu_abi %(echo $((%{icu_abi} + 1))) | |
49 | ||
50 | %define orgname qtbase | |
9452387a JB |
51 | Summary: Qt5 - base components |
52 | Summary(pl.UTF-8): Biblioteka Qt5 - podstawowe komponenty | |
51df396b WF |
53 | Name: qt5-%{orgname} |
54 | Version: 5.2.0 | |
03a8fa04 | 55 | Release: 3 |
1600b17a ER |
56 | # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details |
57 | License: LGPLv2 with exceptions or GPLv3 with exceptions | |
51df396b WF |
58 | Group: X11/Libraries |
59 | Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz | |
60 | # Source0-md5: c94bbaf1bb7f0f4a32d2caa7501416e1 | |
61 | URL: http://qt-project.org/ | |
9452387a | 62 | %{?with_directfb:BuildRequires: DirectFB-devel} |
51df396b WF |
63 | %{?with_ibase:BuildRequires: Firebird-devel} |
64 | BuildRequires: Mesa-libOpenVG-devel | |
51df396b WF |
65 | BuildRequires: OpenGL-devel |
66 | BuildRequires: alsa-lib-devel | |
9452387a | 67 | %{?with_gtk:BuildRequires: atk-devel} |
51df396b | 68 | %{?with_cups:BuildRequires: cups-devel} |
9452387a | 69 | BuildRequires: dbus-devel >= 1.2 |
51df396b | 70 | BuildRequires: fontconfig-devel |
9452387a | 71 | %{?with_freetds:BuildRequires: freetds-devel} |
51df396b WF |
72 | BuildRequires: freetype-devel >= 1:2.0.0 |
73 | %{?with_pch:BuildRequires: gcc >= 5:4.0} | |
5b8dc449 | 74 | BuildRequires: gdb |
51df396b | 75 | BuildRequires: glib2-devel >= 2.0.0 |
9452387a | 76 | %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.18} |
51df396b | 77 | # see dependency on libicu version below |
51df396b | 78 | BuildRequires: libicu-devel < %{next_icu_abi} |
1600b17a | 79 | BuildRequires: libicu-devel >= %{icu_abi} |
51df396b | 80 | BuildRequires: libjpeg-devel |
51df396b WF |
81 | BuildRequires: libpng-devel >= 2:1.0.8 |
82 | BuildRequires: libstdc++-devel | |
9452387a | 83 | BuildRequires: libxcb-devel >= 1.5 |
51df396b | 84 | %{?with_mysql:BuildRequires: mysql-devel} |
eb485fb3 | 85 | BuildRequires: openssl-devel |
9452387a | 86 | BuildRequires: pcre16-devel >= 8.30 |
51df396b WF |
87 | BuildRequires: pkgconfig |
88 | %{?with_pgsql:BuildRequires: postgresql-backend-devel} | |
89 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
90 | BuildRequires: pulseaudio-devel >= 0.9.10 | |
91 | BuildRequires: rpmbuild(macros) >= 1.654 | |
51df396b | 92 | BuildRequires: sed >= 4.0 |
9452387a | 93 | %{?with_sqlite2:BuildRequires: sqlite-devel} |
51df396b | 94 | %{?with_sqlite3:BuildRequires: sqlite3-devel} |
1600b17a | 95 | BuildRequires: tar >= 1:1.22 |
9452387a | 96 | %{?with_tslib:BuildRequires: tslib-devel} |
5b8dc449 | 97 | BuildRequires: udev-devel |
51df396b | 98 | %{?with_odbc:BuildRequires: unixODBC-devel >= 2.3.0} |
5b8dc449 ER |
99 | BuildRequires: xcb-util-image-devel |
100 | BuildRequires: xcb-util-keysyms-devel | |
101 | BuildRequires: xcb-util-renderutil-devel | |
102 | BuildRequires: xcb-util-wm-devel | |
51df396b | 103 | BuildRequires: xorg-lib-libSM-devel |
9452387a | 104 | BuildRequires: xorg-lib-libX11-devel |
51df396b WF |
105 | BuildRequires: xorg-lib-libXcursor-devel |
106 | BuildRequires: xorg-lib-libXext-devel | |
107 | BuildRequires: xorg-lib-libXfixes-devel | |
108 | BuildRequires: xorg-lib-libXi-devel | |
109 | BuildRequires: xorg-lib-libXinerama-devel | |
110 | BuildRequires: xorg-lib-libXrandr-devel | |
111 | BuildRequires: xorg-lib-libXrender-devel | |
9452387a | 112 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.2.0 |
1600b17a | 113 | BuildRequires: xz |
51df396b WF |
114 | BuildRequires: zlib-devel |
115 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
116 | ||
51df396b WF |
117 | %define specflags -fno-strict-aliasing |
118 | ||
9452387a | 119 | %define qt5dir %{_libdir}/qt5 |
51df396b WF |
120 | |
121 | %description | |
1600b17a ER |
122 | Qt is a software toolkit for developing applications. |
123 | ||
9452387a JB |
124 | This package contains base components, like Core, Network or Xml. |
125 | ||
126 | %description -l pl.UTF-8 | |
127 | Qt to programowy toolkit do tworzenia aplikacji. | |
128 | ||
129 | Ten pakiet zawiera podstawowe komponenty, takie jak Core, Network czy | |
130 | Xml. | |
51df396b | 131 | |
eb485fb3 JB |
132 | %package -n Qt5Bootstrap-devel |
133 | Summary: Qt5 Bootstrap library - development files | |
134 | Summary(pl.UTF-8): Biblioteka Qt5 Bootstrap - pliki programistyczne | |
135 | Group: Development/Libraries | |
58f72d3f WF |
136 | # for (subset of) Qt5Core headers |
137 | Requires: Qt5Core-devel = %{version}-%{release} | |
eb485fb3 JB |
138 | Requires: zlib-devel |
139 | ||
140 | %description -n Qt5Bootstrap-devel | |
141 | Qt5 Bootstrap library (minimal part of Qt5 Core) - development files. | |
142 | ||
143 | %description -n Qt5Bootstrap-devel -l pl.UTF-8 | |
144 | Biblioteka Qt5 Bootstrap (minimalna część Qt5 Core) - pliki | |
145 | programistyczne. | |
146 | ||
147 | %package -n Qt5Concurrent | |
148 | Summary: Qt5 Concurrent library | |
149 | Summary(pl.UTF-8): Biblioteka Qt5 Concurrent | |
150 | Group: Libraries | |
151 | Requires: Qt5Core = %{version}-%{release} | |
152 | ||
153 | %description -n Qt5Concurrent | |
154 | The Qt5 Concurrent library provides high-level APIs that make it | |
155 | possible to write multi-threaded programs without using low-level | |
156 | threading primitives. | |
157 | ||
158 | %description -n Qt5Concurrent -l pl.UTF-8 | |
159 | Biblioteka Qt5 Concurrent udostępnia wysokopoziomowe API umożliwiające | |
160 | pisanie wielowątkowych programów bez wykorzystywania niskopoziomowych | |
161 | elementów związanych z wątkami. | |
162 | ||
163 | %package -n Qt5Concurrent-devel | |
164 | Summary: Qt5 Concurrent library - development files | |
165 | Summary(pl.UTF-8): Biblioteka Qt5 Concurrent - pliki programistyczne | |
166 | Group: Development/Libraries | |
167 | Requires: Qt5Concurrent = %{version}-%{release} | |
168 | Requires: Qt5Core-devel = %{version}-%{release} | |
169 | ||
170 | %description -n Qt5Concurrent-devel | |
171 | Header files for Qt5 Concurrent library. | |
172 | ||
173 | %description -n Qt5Concurrent-devel -l pl.UTF-8 | |
174 | Pliki nagłówkowe biblioteki Qt5 Concurrent. | |
175 | ||
176 | %package -n Qt5Core | |
177 | Summary: Qt5 Core library | |
178 | Summary(pl.UTF-8): Biblioteka Qt5 Core | |
179 | Group: Libraries | |
180 | Requires: pcre16 >= 8.30 | |
181 | Obsoletes: qt5-qtbase | |
182 | ||
183 | %description -n Qt5Core | |
184 | Qt5 Core library provides core non-GUI functionality. | |
185 | ||
186 | %description -n Qt5Core -l pl.UTF-8 | |
187 | Biblioteka Qt5 Core zawiera podstawową funkcjonalność nie związaną z | |
188 | graficznym interfejsem użytkownika (GUI). | |
189 | ||
190 | %package -n Qt5Core-devel | |
191 | Summary: Qt5 Core library - development files | |
192 | Summary(pl.UTF-8): Biblioteka Qt5 Core - pliki programistyczne | |
193 | Group: Development/Libraries | |
194 | Requires: Qt5Core = %{version}-%{release} | |
195 | Requires: glib2-devel >= 2.0 | |
196 | Requires: libicu-devel | |
197 | Requires: pcre16-devel >= 8.30 | |
198 | Requires: zlib-devel | |
199 | Obsoletes: qt5-qtbase-devel | |
200 | ||
201 | %description -n Qt5Core-devel | |
202 | Header files for Qt5 Core library. | |
203 | ||
204 | %description -n Qt5Core-devel -l pl.UTF-8 | |
205 | Pliki nagłówkowe biblioteki Qt5 Core. | |
206 | ||
207 | %package -n Qt5DBus | |
208 | Summary: Qt5 DBus library | |
209 | Summary(pl.UTF-8): Biblioteka Qt5 DBus | |
210 | Group: Libraries | |
211 | Requires: Qt5Core = %{version}-%{release} | |
212 | Requires: dbus-libs >= 1.2 | |
213 | ||
214 | %description -n Qt5DBus | |
215 | The Qt5 D-Bus library is a Unix-only library that you can use to | |
216 | perform Inter-Process Communication using the D-Bus protocol. | |
217 | ||
218 | %description -n Qt5DBus -l pl.UTF-8 | |
219 | Biblioteka Qt5 D-Bus to wyłącznie uniksowa biblioteka pozwalająca na | |
220 | komunikację międzyprocesową (IPC) przy użyciu protokołu D-Bus. | |
221 | ||
222 | %package -n Qt5DBus-devel | |
223 | Summary: Qt5 DBus library - development files | |
224 | Summary(pl.UTF-8): Biblioteka Qt5 DBus - pliki programistyczne | |
225 | Group: Development/Libraries | |
226 | Requires: Qt5Core-devel = %{version}-%{release} | |
227 | Requires: Qt5DBus = %{version}-%{release} | |
228 | Requires: dbus-devel >= 1.2 | |
229 | ||
230 | %description -n Qt5DBus-devel | |
231 | Header files for Qt5 DBus library. | |
232 | ||
233 | %description -n Qt5DBus-devel -l pl.UTF-8 | |
234 | Pliki nagłówkowe biblioteki Qt5 DBus. | |
235 | ||
236 | %package -n Qt5Gui | |
237 | Summary: Qt5 Gui library | |
238 | Summary(pl.UTF-8): Biblioteka Qt5 Gui | |
239 | Group: Libraries | |
240 | Requires: Qt5Core = %{version}-%{release} | |
07c22e07 JB |
241 | # for: |
242 | # - ibus platforminputcontext plugin | |
243 | # - qxcb platform plugin | |
244 | Requires: Qt5DBus = %{version}-%{release} | |
eb485fb3 JB |
245 | |
246 | %description -n Qt5Gui | |
247 | The Qt5 GUI library provides the basic enablers for graphical | |
248 | applications written with Qt 5. | |
249 | ||
250 | %description -n Qt5Gui -l pl | |
251 | Biblioteka Qt5 Gui udostępnia podstawową funkcjonalność dla | |
252 | graficznych aplikacji napisanych z użyciem Qt 5. | |
253 | ||
07c22e07 JB |
254 | %package -n Qt5Gui-generic-tslib |
255 | Summary: Qt5 Gui generic input plugin for TSlib (touchscreen panel events) | |
256 | Summary(pl.UTF-8): Ogólna wtyczka wejścia Qt5 Gui z TSlib (zdarzeń z paneli dotykowych) | |
257 | Group: Libraries | |
258 | Requires: Qt5Gui = %{version}-%{release} | |
259 | ||
260 | %description -n Qt5Gui-generic-tslib | |
261 | Qt5 Gui generic input plugin for TSlib (touchscreen panel events). | |
262 | ||
263 | %description -n Qt5Gui-generic-tslib -l pl.UTF-8 | |
264 | Ogólna wtyczka wejścia Qt5 Gui z TSlib (zdarzeń z paneli dotykowych). | |
265 | ||
266 | %package -n Qt5Gui-platform-directfb | |
267 | Summary: Qt5 Gui platform plugin for DirectFB | |
268 | Summary(pl.UTF-8): Wtyczka platformy Qt5 Gui dla DirectFB | |
269 | Group: Libraries | |
270 | Requires: Qt5Gui = %{version}-%{release} | |
271 | ||
272 | %description -n Qt5Gui-platform-directfb | |
273 | Qt5 Gui platform plugin for DirectFB. | |
274 | ||
275 | %description -n Qt5Gui-platform-directfb -l pl.UTF-8 | |
276 | Wtyczka platformy Qt5 Gui dla DirectFB. | |
277 | ||
278 | %package -n Qt5Gui-platform-kms | |
279 | Summary: Qt5 Gui platform plugin for KMS | |
280 | Summary(pl.UTF-8): Wtyczka platformy Qt5 Gui dla KMS | |
281 | Group: Libraries | |
282 | Requires: Qt5Gui = %{version}-%{release} | |
283 | ||
284 | %description -n Qt5Gui-platform-kms | |
285 | Qt5 Gui platform plugin for KMS. | |
286 | ||
287 | %description -n Qt5Gui-platform-kms -l pl.UTF-8 | |
288 | Wtyczka platformy Qt5 Gui dla KMS. | |
289 | ||
290 | %package -n Qt5Gui-platform-egl | |
291 | Summary: Qt5 Gui platform plugins for EGL | |
292 | Summary(pl.UTF-8): Wtyczki platform Qt5 Gui dla EGL | |
293 | Group: Libraries | |
294 | Requires: Qt5Gui = %{version}-%{release} | |
295 | ||
296 | %description -n Qt5Gui-platform-egl | |
297 | Qt5 Gui platform plugins for EGL. | |
298 | ||
299 | %description -n Qt5Gui-platform-egl -l pl.UTF-8 | |
300 | Wtyczki platform Qt5 Gui dla EGL. | |
301 | ||
302 | %package -n Qt5Gui-platformtheme-gtk2 | |
303 | Summary: Qt5 Gui platform theme plugin for GTK+ 2.x | |
304 | Summary(pl.UTF-8): Wtyczka motywów platform Qt5 Gui dla GTK+ 2.x | |
305 | Group: Libraries | |
306 | Requires: Qt5Gui = %{version}-%{release} | |
307 | ||
308 | %description -n Qt5Gui-platformtheme-gtk2 | |
309 | Qt5 Gui platform theme plugin for GTK+ 2.x. | |
310 | ||
311 | %description -n Qt5Gui-platformtheme-gtk2 -l pl.UTF-8 | |
312 | Wtyczka motywów platform Qt5 Gui dla GTK+ 2.x. | |
313 | ||
eb485fb3 JB |
314 | %package -n Qt5Gui-devel |
315 | Summary: Qt5 Gui library - development files | |
316 | Summary(pl.UTF-8): Biblioteka Qt5 Gui - pliki programistyczne | |
317 | Group: Development/Libraries | |
318 | Requires: OpenGL-devel | |
319 | Requires: Qt5Core-devel = %{version}-%{release} | |
320 | Requires: Qt5Gui = %{version}-%{release} | |
321 | Requires: libpng-devel | |
322 | ||
323 | %description -n Qt5Gui-devel | |
324 | Header files for Qt5 Gui library. | |
325 | ||
326 | %description -n Qt5Gui-devel -l pl.UTF-8 | |
327 | Pliki nagłówkowe biblioteki Qt5 Gui. | |
328 | ||
329 | %package -n Qt5Network | |
330 | Summary: Qt5 Network library | |
331 | Summary(pl.UTF-8): Biblioteka Qt5 Network | |
332 | Group: Libraries | |
333 | Requires: Qt5Core = %{version}-%{release} | |
07c22e07 JB |
334 | # for bearer plugins (qconnman, qnm): |
335 | Requires: Qt5DBus = %{version}-%{release} | |
eb485fb3 JB |
336 | |
337 | %description -n Qt5Network | |
338 | The Qt5 Network library provides classes to make network programming | |
339 | easier and portable. | |
340 | ||
341 | %description -n Qt5Network -l pl.UTF-8 | |
342 | Biblioteka Qt5 Network udostępnia klasy czyniące programowanie | |
343 | sieciowe łatwiejszym i przenośnym. | |
344 | ||
345 | %package -n Qt5Network-devel | |
346 | Summary: Qt5 Network library - development files | |
347 | Summary(pl.UTF-8): Biblioteka Qt5 Network - pliki programistyczne | |
348 | Group: Development/Libraries | |
349 | Requires: Qt5Core-devel = %{version}-%{release} | |
350 | Requires: Qt5Network = %{version}-%{release} | |
351 | Requires: openssl-devel | |
352 | ||
353 | %description -n Qt5Network-devel | |
354 | Header files for Qt5 Network library. | |
355 | ||
356 | %description -n Qt5Network-devel -l pl.UTF-8 | |
357 | Pliki nagłówkowe biblioteki Qt5 Network. | |
358 | ||
359 | %package -n Qt5OpenGL | |
360 | Summary: Qt5 OpenGL library | |
361 | Summary(pl.UTF-8): Biblioteka Qt5 OpenGL | |
362 | Group: Libraries | |
363 | Requires: Qt5Core = %{version}-%{release} | |
364 | Requires: Qt5Gui = %{version}-%{release} | |
365 | Requires: Qt5Widgets = %{version}-%{release} | |
366 | ||
367 | %description -n Qt5OpenGL | |
368 | The Qt5 OpenGL library offers classes that make it easy to use OpenGL | |
369 | in Qt 5 applications. | |
370 | ||
371 | %description -n Qt5OpenGL -l pl.UTF-8 | |
372 | Biblioteka Qt5 OpenGL oferuje klasy ułatwiające wykorzystywanie | |
373 | OpenGL-a w aplikacjach Qt 5. | |
374 | ||
375 | %package -n Qt5OpenGL-devel | |
376 | Summary: Qt5 OpenGL library - development files | |
377 | Summary(pl.UTF-8): Biblioteka Qt5 OpenGL - pliki programistyczne | |
378 | Group: Development/Libraries | |
379 | Requires: OpenGL-devel | |
380 | Requires: Qt5Core-devel = %{version}-%{release} | |
381 | Requires: Qt5Gui-devel = %{version}-%{release} | |
382 | Requires: Qt5OpenGL = %{version}-%{release} | |
383 | Requires: Qt5Widgets-devel = %{version}-%{release} | |
384 | ||
385 | %description -n Qt5OpenGL-devel | |
386 | Header files for Qt5 OpenGL library. | |
387 | ||
388 | %description -n Qt5OpenGL-devel -l pl.UTF-8 | |
389 | Pliki nagłówkowe biblioteki Qt5 OpenGL. | |
390 | ||
391 | %package -n Qt5OpenGLExtensions-devel | |
392 | Summary: Qt5 OpenGLExtensions library - development files | |
393 | Summary(pl.UTF-8): Biblioteka Qt5 OpenGLExtensions - pliki programistyczne | |
394 | Group: Development/Libraries | |
395 | Requires: OpenGL-devel | |
396 | Requires: Qt5Core-devel = %{version}-%{release} | |
397 | Requires: Qt5Gui-devel = %{version}-%{release} | |
398 | ||
399 | %description -n Qt5OpenGLExtensions-devel | |
400 | Qt5 OpenGLExtensions library (development files). | |
401 | ||
402 | %description -n Qt5OpenGLExtensions-devel -l pl.UTF-8 | |
403 | Biblioteka Qt5 OpenGL Extensions - obsługa rozszerzeń OpenGL (pliki | |
404 | programistyczne). | |
405 | ||
406 | %package -n Qt5PlatformSupport-devel | |
407 | Summary: Qt5 PlatformSupport library - development files | |
408 | Summary(pl.UTF-8): Biblioteka Qt5 PlatformSupport - pliki programistyczne | |
51df396b | 409 | Group: X11/Development/Libraries |
eb485fb3 JB |
410 | Requires: OpenGL-devel |
411 | Requires: Qt5Core-devel = %{version}-%{release} | |
412 | Requires: Qt5DBus-devel = %{version}-%{release} | |
413 | Requires: Qt5Gui-devel = %{version}-%{release} | |
414 | Requires: fontconfig-devel | |
415 | Requires: freetype-devel | |
416 | Requires: xorg-lib-libX11-devel | |
417 | Requires: xorg-lib-libXrender-devel | |
418 | Requires: xorg-lib-libXext-devel | |
419 | Requires: udev-devel | |
420 | ||
421 | %description -n Qt5PlatformSupport-devel | |
422 | Qt5 PlatformSupport library (development files). | |
423 | ||
424 | %description -n Qt5OpenGLExtensions-devel -l pl.UTF-8 | |
425 | Biblioteka Qt5 PlatformSupport - obsługa platformy (pliki | |
426 | programistyczne). | |
427 | ||
428 | %package -n Qt5PrintSupport | |
429 | Summary: Qt5 PrintSupport library | |
430 | Summary(pl.UTF-8): Biblioteka Qt5 PrintSupport | |
431 | Group: Libraries | |
432 | Requires: Qt5Core = %{version}-%{release} | |
433 | Requires: Qt5Gui = %{version}-%{release} | |
434 | Requires: Qt5Widgets = %{version}-%{release} | |
435 | ||
436 | %description -n Qt5PrintSupport | |
437 | The Qt5 PrintSupport library provides classes to make printing easier | |
438 | and portable. | |
439 | ||
440 | %description -n Qt5PrintSupport -l pl.UTF-8 | |
441 | Biblioteka Qt5 PrintSupport udostępnia klasy czyniące drukowanie | |
442 | łatwiejszym i bardziej przenośnym. | |
443 | ||
444 | %package -n Qt5PrintSupport-devel | |
445 | Summary: Qt5 PrintSupport library - development files | |
446 | Summary(pl.UTF-8): Biblioteka Qt5 PrintSupport - pliki programistyczne | |
447 | Group: Development/Libraries | |
448 | Requires: OpenGL-devel | |
449 | Requires: Qt5Core-devel = %{version}-%{release} | |
450 | Requires: Qt5Gui-devel = %{version}-%{release} | |
451 | Requires: Qt5PrintSupport = %{version}-%{release} | |
452 | Requires: Qt5Widgets-devel = %{version}-%{release} | |
453 | ||
454 | %description -n Qt5PrintSupport-devel | |
455 | Header files for Qt5 PrintSupport library. | |
456 | ||
457 | %description -n Qt5PrintSupport-devel -l pl.UTF-8 | |
458 | Pliki nagłówkowe biblioteki Qt5 PrintSupport. | |
459 | ||
460 | %package -n Qt5Sql | |
461 | Summary: Qt5 Sql library | |
462 | Summary(pl.UTF-8): Biblioteka Qt5 Sql | |
463 | Group: Libraries | |
464 | Requires: Qt5Core = %{version}-%{release} | |
465 | ||
466 | %description -n Qt5Sql | |
467 | The Qt5 Sql library provides a driver layer, SQL API layer, and a user | |
468 | interface layer for SQL databases. | |
469 | ||
470 | %description -n Qt5Sql -l pl.UTF-8 | |
471 | Biblioteka Qt5 Sql udostępnia warstwę sterowników, warstwę API SQL | |
472 | oraz warstwę interfejsu użytkownika dla baz danych SQL. | |
473 | ||
474 | %package -n Qt5Sql-devel | |
475 | Summary: Qt5 Sql library - development files | |
476 | Summary(pl.UTF-8): Biblioteka Qt5 Sql - pliki programistyczne | |
477 | Group: Development/Libraries | |
478 | Requires: Qt5Core-devel = %{version}-%{release} | |
479 | Requires: Qt5Sql = %{version}-%{release} | |
480 | ||
481 | %description -n Qt5Sql-devel | |
482 | Header files for Qt5 Sql library. | |
483 | ||
484 | %description -n Qt5Sql-devel -l pl.UTF-8 | |
485 | Pliki nagłówkowe biblioteki Qt5 Sql. | |
51df396b | 486 | |
07c22e07 JB |
487 | %package -n Qt5Sql-sqldriver-db2 |
488 | Summary: Qt5 Sql driver for IBM DB2 database | |
489 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych IBM DB2 | |
490 | Group: Libraries | |
491 | Requires: Qt5Sql = %{version}-%{release} | |
492 | ||
493 | %description -n Qt5Sql-sqldriver-db2 | |
494 | Qt5 Sql driver for IBM DB2 database. | |
495 | ||
496 | %description -n Qt5Sql-sqldriver-db2 -l pl.UTF-8 | |
497 | Sterownik Qt5 Sql dla bazy danych IBM DB2. | |
498 | ||
499 | %package -n Qt5Sql-sqldriver-ibase | |
500 | Summary: Qt5 Sql driver for Firebird/InterBase database | |
501 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych Firebird/InterBase | |
502 | Group: Libraries | |
503 | Requires: Qt5Sql = %{version}-%{release} | |
504 | ||
505 | %description -n Qt5Sql-sqldriver-ibase | |
506 | Qt5 Sql driver for Firebird/InterBase database. | |
507 | ||
508 | %description -n Qt5Sql-sqldriver-ibase -l pl.UTF-8 | |
509 | Sterownik Qt5 Sql dla bazy danych Firebird/InterBase. | |
510 | ||
511 | %package -n Qt5Sql-sqldriver-sqlite3 | |
512 | Summary: Qt5 Sql driver for SQLite 3.x database | |
513 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych SQLite 3.x | |
514 | Group: Libraries | |
515 | Requires: Qt5Sql = %{version}-%{release} | |
516 | ||
517 | %description -n Qt5Sql-sqldriver-sqlite3 | |
518 | Qt5 Sql driver for SQLite 3.x database. | |
519 | ||
520 | %description -n Qt5Sql-sqldriver-sqlite3 -l pl.UTF-8 | |
521 | Sterownik Qt5 Sql dla bazy danych SQLite 3.x. | |
522 | ||
523 | %package -n Qt5Sql-sqldriver-sqlite2 | |
524 | Summary: Qt5 Sql driver for SQLite 2.x database | |
525 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych SQLite 2.x | |
526 | Group: Libraries | |
527 | Requires: Qt5Sql = %{version}-%{release} | |
528 | ||
529 | %description -n Qt5Sql-sqldriver-sqlite2 | |
530 | Qt5 Sql driver for SQLite 2.x database. | |
531 | ||
532 | %description -n Qt5Sql-sqldriver-sqlite2 -l pl.UTF-8 | |
533 | Sterownik Qt5 Sql dla bazy danych SQLite 2.x. | |
534 | ||
535 | %package -n Qt5Sql-sqldriver-mysql | |
536 | Summary: Qt5 Sql driver for MySQL database | |
537 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych MySQL | |
538 | Group: Libraries | |
539 | Requires: Qt5Sql = %{version}-%{release} | |
540 | ||
541 | %description -n Qt5Sql-sqldriver-mysql | |
542 | Qt5 Sql driver for MySQL database. | |
543 | ||
544 | %description -n Qt5Sql-sqldriver-mysql -l pl.UTF-8 | |
545 | Sterownik Qt5 Sql dla bazy danych MySQL. | |
546 | ||
547 | %package -n Qt5Sql-sqldriver-oci | |
548 | Summary: Qt5 Sql driver for Oracle database (using OCI interface) | |
549 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych Oracle (wykorzystujący interfejs OCI) | |
550 | Group: Libraries | |
551 | Requires: Qt5Sql = %{version}-%{release} | |
552 | ||
553 | %description -n Qt5Sql-sqldriver-oci | |
554 | Qt5 Sql driver for Oracle database (using OCI interface). | |
555 | ||
556 | %description -n Qt5Sql-sqldriver-oci -l pl.UTF-8 | |
557 | Sterownik Qt5 Sql dla bazy danych Oracle (wykorzystujący interfejs | |
558 | OCI). | |
559 | ||
560 | %package -n Qt5Sql-sqldriver-odbc | |
561 | Summary: Qt5 Sql driver for ODBC databases | |
562 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla baz danych ODBC | |
563 | Group: Libraries | |
564 | Requires: Qt5Sql = %{version}-%{release} | |
565 | ||
566 | %description -n Qt5Sql-sqldriver-odbc | |
567 | Qt5 Sql driver for ODBC databases. | |
568 | ||
569 | %description -n Qt5Sql-sqldriver-odbc -l pl.UTF-8 | |
570 | Sterownik Qt5 Sql dla baz danych ODBC. | |
571 | ||
572 | %package -n Qt5Sql-sqldriver-pgsql | |
573 | Summary: Qt5 Sql driver for PostgreSQL database | |
574 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych PostgreSQL | |
575 | Group: Libraries | |
576 | Requires: Qt5Sql = %{version}-%{release} | |
577 | ||
578 | %description -n Qt5Sql-sqldriver-pgsql | |
579 | Qt5 Sql driver for PostgreSQL database. | |
580 | ||
581 | %description -n Qt5Sql-sqldriver-pgsql -l pl.UTF-8 | |
582 | Sterownik Qt5 Sql dla bazy danych PostgreSQL. | |
583 | ||
584 | %package -n Qt5Sql-sqldriver-tds | |
585 | Summary: Qt5 Sql driver for Sybase/MS SQL database (using TDS interface) | |
586 | Summary(pl.UTF-8): Sterownik Qt5 Sql dla bazy danych Sybase/MS SQL (wykorzystujący interfejs TDS) | |
587 | Group: Libraries | |
588 | Requires: Qt5Sql = %{version}-%{release} | |
589 | ||
590 | %description -n Qt5Sql-sqldriver-tds | |
591 | Qt5 Sql driver for Sybase/MS SQL database (using TDS interface). | |
592 | ||
593 | %description -n Qt5Sql-sqldriver-tds -l pl.UTF-8 | |
594 | Sterownik Qt5 Sql dla bazy danych Sybase/MS SQL (wykorzystujący | |
595 | interfejs TDS). | |
596 | ||
eb485fb3 JB |
597 | %package -n Qt5Test |
598 | Summary: Qt5 Test library | |
599 | Summary(pl.UTF-8): Biblioteka Qt5 Test | |
600 | Group: Libraries | |
601 | Requires: Qt5Core = %{version}-%{release} | |
9452387a | 602 | |
eb485fb3 JB |
603 | %description -n Qt5Test |
604 | The Qt5 Test library provides classes for unit testing Qt 5 | |
605 | applications and libraries. | |
606 | ||
607 | %description -n Qt5Test -l pl.UTF-8 | |
608 | Biblioteka Qt5 Test udostępnia klasy do testów jednostkowych aplikacji | |
609 | oraz bibliotek Qt 5. | |
610 | ||
611 | %package -n Qt5Test-devel | |
612 | Summary: Qt5 Test library - development files | |
613 | Summary(pl.UTF-8): Biblioteka Qt5 Test - pliki programistyczne | |
614 | Group: Development/Libraries | |
615 | Requires: Qt5Core-devel = %{version}-%{release} | |
616 | Requires: Qt5Test = %{version}-%{release} | |
617 | ||
618 | %description -n Qt5Test-devel | |
619 | Header files for Qt5 Test library. | |
620 | ||
621 | %description -n Qt5Test-devel -l pl.UTF-8 | |
622 | Pliki nagłówkowe biblioteki Qt5 Test. | |
623 | ||
624 | %package -n Qt5Widgets | |
625 | Summary: Qt5 Widgets library | |
626 | Summary(pl.UTF-8): Biblioteka Qt5 Widgets | |
627 | Group: X11/Libraries | |
628 | Requires: Qt5Core = %{version}-%{release} | |
629 | Requires: Qt5Gui = %{version}-%{release} | |
630 | ||
631 | %description -n Qt5Widgets | |
632 | The Qt5 Widgets library extends Qt 5 GUI with C++ widget | |
07c22e07 JB |
633 | functionality. This package contains also qtaccessiblewidgets plugin |
634 | for Qt5 Gui library. | |
eb485fb3 JB |
635 | |
636 | %description -n Qt5Widgets -l pl.UTF-8 | |
637 | Biblioteka Qt5 Widgets rozszerza graficzny interfejs Qt 5 o | |
07c22e07 JB |
638 | funkcjonalność widgetów C++. Pakiet zawiera także wtyczkę |
639 | qtaccessiblewidgets dla biblioteki Qt5 Gui. | |
eb485fb3 JB |
640 | |
641 | %package -n Qt5Widgets-devel | |
642 | Summary: Qt5 Widgets library - development files | |
643 | Summary(pl.UTF-8): Biblioteka Qt5 Widgets - pliki programistyczne | |
644 | Group: X11/Development/Libraries | |
645 | Requires: OpenGL-devel | |
646 | Requires: Qt5Core-devel = %{version}-%{release} | |
647 | Requires: Qt5Gui-devel = %{version}-%{release} | |
648 | Requires: Qt5Widgets = %{version}-%{release} | |
649 | Requires: xorg-lib-libX11-devel | |
650 | Requires: xorg-lib-libXext-devel | |
651 | ||
652 | %description -n Qt5Widgets-devel | |
653 | Header files for Qt5 Widgets library. | |
654 | ||
655 | %description -n Qt5Widgets-devel -l pl.UTF-8 | |
656 | Pliki nagłówkowe biblioteki Qt5 Widgets. | |
657 | ||
658 | %package -n Qt5Xml | |
659 | Summary: Qt5 Xml library | |
660 | Summary(pl.UTF-8): Biblioteka Qt5 Xml | |
661 | Group: Libraries | |
662 | Requires: Qt5Core = %{version}-%{release} | |
663 | ||
664 | %description -n Qt5Xml | |
665 | The Qt5 Xml library provides C++ implementations of the SAX and DOM | |
666 | standards for XML. | |
667 | ||
668 | %description -n Qt5Xml -l pl.UTF-8 | |
669 | Biblioteka Qt5 Xml udostępnia implementację w C++ standardów SAX oraz | |
670 | DOM dla formatu XML. | |
671 | ||
672 | %package -n Qt5Xml-devel | |
673 | Summary: Qt5 Xml library - development files | |
674 | Summary(pl.UTF-8): Biblioteka Qt5 Xml - pliki programistyczne | |
675 | Group: Development/Libraries | |
676 | Requires: Qt5Core-devel = %{version}-%{release} | |
677 | Requires: Qt5Xml = %{version}-%{release} | |
678 | ||
679 | %description -n Qt5Xml-devel | |
680 | Header files for Qt5 Xml library. | |
681 | ||
682 | %description -n Qt5Xml-devel -l pl.UTF-8 | |
683 | Pliki nagłówkowe biblioteki Qt5 Xml. | |
51df396b | 684 | |
66205aa8 JB |
685 | %package -n qt5-doc-common |
686 | Summary: Common part of Qt5 documentation | |
687 | Summary(pl.UTF-8): Część wspólna dokumentacji do Qt5 | |
688 | Group: Documentation | |
689 | %if "%{_rpmversion}" >= "5" | |
690 | BuildArch: noarch | |
691 | %endif | |
692 | ||
693 | %description -n qt5-doc-common | |
694 | Common part of Qt5 documentation, global for all components. | |
695 | ||
696 | %description -n qt5-doc-common -l pl.UTF-8 | |
697 | Część wspólna dokumentacji do Qt5 ("global", dla wszystkich | |
698 | elementów). | |
699 | ||
b18d64cc | 700 | %package doc |
9452387a JB |
701 | Summary: Documentation for Qt5 application framework base components |
702 | Summary(pl.UTF-8): Dokumentacja do podstawowych komponentów szkieletu aplikacji Qt5 | |
b18d64cc | 703 | Group: Documentation |
66205aa8 | 704 | Requires: qt5-doc-common = %{version}-%{release} |
168d1e38 ER |
705 | %if "%{_rpmversion}" >= "5" |
706 | BuildArch: noarch | |
707 | %endif | |
b18d64cc WF |
708 | |
709 | %description doc | |
9452387a JB |
710 | Documentation for Qt5 application framework base components. |
711 | ||
712 | %description doc -l pl.UTF-8 | |
713 | Dokumentacja do podstawowych komponentów szkieletu aplikacji Qt5. | |
b18d64cc | 714 | |
51df396b | 715 | %package examples |
9452387a JB |
716 | Summary: Examples for Qt5 application framework base components |
717 | Summary(pl.UTF-8): Przykłady do podstawowych komponentów szkieletu aplikacji Qt5 | |
51df396b | 718 | Group: X11/Development/Libraries |
168d1e38 ER |
719 | %if "%{_rpmversion}" >= "5" |
720 | BuildArch: noarch | |
721 | %endif | |
51df396b WF |
722 | |
723 | %description examples | |
9452387a JB |
724 | Examples for Qt5 application framework base components. |
725 | ||
726 | %description examples -l pl.UTF-8 | |
727 | Przykłady do podstawowych komponentów szkieletu aplikacji Qt5. | |
728 | ||
729 | %package -n qt5-build | |
730 | Summary: Qt5 build tools | |
731 | Summary(pl.UTF-8): Narzędzia do budowania dla Qt4 | |
732 | Group: Development/Tools | |
9452387a JB |
733 | |
734 | %description -n qt5-build | |
735 | This package includes the Qt resource compiler (rcc), meta objects | |
736 | compiler (moc), user interface compiler (uic) etc. | |
737 | ||
738 | %description -n qt5-build -l pl.UTF-8 | |
739 | Ten pakiet zawiera kompilator zasobów Qt (rcc), kompilator | |
740 | metaobiektów (moc), kompilator interfejsów użytkownika (uic) i podobne | |
741 | narzędzia. | |
742 | ||
743 | %package -n qt5-qmake | |
744 | Summary: Qt5 makefile generator | |
745 | Summary(pl.UTF-8): Generator plików makefile dla aplikacji Qt5 | |
746 | Group: Development/Tools | |
747 | ||
748 | %description -n qt5-qmake | |
749 | Qt5 makefile generator. | |
750 | ||
751 | %description -n qt5-qmake -l pl.UTF-8 | |
752 | Generator plików makefile dla aplikacji Qt5. | |
51df396b WF |
753 | |
754 | %prep | |
755 | %setup -q -n %{orgname}-opensource-src-%{version} | |
756 | ||
eb485fb3 | 757 | %{__sed} -i -e 's,usr/X11R6/,usr/,g' mkspecs/linux-g++-64/qmake.conf |
51df396b WF |
758 | |
759 | # change QMAKE FLAGS to build | |
760 | %{__sed} -i -e ' | |
9452387a JB |
761 | s|^\(QMAKE_COMPILER *\)=.*gcc|\1= %{__cc}|; |
762 | s|^\(QMAKE_CC *\)=.*gcc|\1= %{__cc}|; | |
763 | s|^\(QMAKE_CXX *\)=.*g++|\1= %{__cxx}|; | |
764 | s|^QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO .*|QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -g %{rpmcppflags} %{rpmcflags}|; | |
765 | s|^QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO .*|QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -g %{rpmcppflags} %{rpmcxxflags}|; | |
51df396b | 766 | ' mkspecs/common/g++-base.conf |
51df396b | 767 | %{__sed} -i -e ' |
9452387a JB |
768 | s|^\(QMAKE_CFLAGS_RELEASE *\)+=.*|\1+= %{rpmcppflags} %{rpmcflags}|; |
769 | s|^\(QMAKE_CXXFLAGS_RELEASE *\)+=.*|\1+= %{rpmcppflags} %{rpmcxxflags}|; | |
770 | s|^\(QMAKE_CFLAGS_DEBUG *\)+=.*|\1+= %{debugcflags}|; | |
771 | s|^\(QMAKE_CXXFLAGS_DEBUG *\)+=.*|\1+= %{debugcflags}|; | |
772 | s|^\(QMAKE_LFLAGS *\)+=.*|\1+= %{rpmldflags}|; | |
773 | ' mkspecs/common/gcc-base.conf | |
51df396b | 774 | |
9452387a | 775 | # define QMAKE_STRIP to true, so we get useful -debuginfo pkgs |
51df396b | 776 | %{__sed} -i -e ' |
9452387a | 777 | s|^\(QMAKE_STRIP *\)=.*|\1= :|; |
51df396b WF |
778 | ' mkspecs/common/linux.conf |
779 | ||
780 | %build | |
781 | # pass OPTFLAGS to build qmake itself with optimization | |
782 | export OPTFLAGS="%{rpmcflags}" | |
783 | export PATH=$PWD/bin:$PATH | |
784 | ||
9452387a | 785 | # DEFAULT OPTIONS FOR ALL BUILDS |
51df396b WF |
786 | COMMONOPT=" \ |
787 | -confirm-license \ | |
788 | -opensource \ | |
789 | -verbose \ | |
9452387a JB |
790 | %{?debug:-debug} \ |
791 | %{!?debug:-release} \ | |
792 | -prefix %{qt5dir} \ | |
793 | -bindir %{qt5dir}/bin \ | |
51df396b WF |
794 | -docdir %{_docdir}/qt5-doc \ |
795 | -headerdir %{_includedir}/qt5 \ | |
796 | -libdir %{_libdir} \ | |
9452387a | 797 | -plugindir %{qt5dir}/plugins \ |
51df396b | 798 | -datadir %{_datadir}/qt5 \ |
9452387a | 799 | -translationdir %{_localedir} \ |
51df396b WF |
800 | -sysconfdir %{_sysconfdir}/qt5 \ |
801 | -examplesdir %{_examplesdir}/qt5 \ | |
9452387a JB |
802 | %if %{with mysql} |
803 | -I/usr/include/mysql \ | |
804 | %endif | |
805 | %if %{with pgsql} | |
806 | -I/usr/include/postgresql/server \ | |
807 | %endif | |
808 | -%{!?with_cups:no-}cups \ | |
809 | -%{!?with_directfb:no-}directfb \ | |
810 | -dbus-linked \ | |
811 | -fontconfig \ | |
51df396b | 812 | -glib \ |
9452387a JB |
813 | -%{!?with_gtk:no-}gtkstyle \ |
814 | -iconv \ | |
815 | -icu \ | |
816 | -largefile \ | |
817 | -nis \ | |
51df396b | 818 | -no-rpath \ |
9452387a | 819 | -no-separate-debug-info \ |
51df396b WF |
820 | %{!?with_sse:-no-sse} \ |
821 | %{!?with_sse2:-no-sse2} \ | |
822 | %{!?with_sse3:-no-sse3} \ | |
823 | %{!?with_ssse3:-no-ssse3} \ | |
824 | %{!?with_sse41:-no-sse4.1} \ | |
825 | %{!?with_sse42:-no-sse4.2} \ | |
826 | %{!?with_avx:-no-avx} \ | |
9452387a JB |
827 | %{!?with_avx2:-no-avx2} \ |
828 | -openssl-linked \ | |
829 | -optimized-qmake \ | |
830 | -%{!?with_pch:no-}pch \ | |
51df396b | 831 | -reduce-relocations \ |
9452387a | 832 | -sm \ |
51df396b WF |
833 | -system-freetype \ |
834 | -system-libjpeg \ | |
835 | -system-libpng \ | |
836 | -system-pcre \ | |
9452387a | 837 | -system-sqlite \ |
51df396b WF |
838 | -system-xcb \ |
839 | -system-xkbcommon \ | |
840 | -system-zlib \ | |
9452387a | 841 | %{?with_tslib:-tslib} \ |
51df396b | 842 | -xcursor \ |
9452387a | 843 | -xfixes \ |
51df396b | 844 | -xinerama \ |
9452387a | 845 | -xinput2 \ |
51df396b | 846 | -xkb \ |
9452387a | 847 | -xrandr \ |
51df396b | 848 | -xrender \ |
9452387a | 849 | -xshape" |
51df396b | 850 | |
9452387a | 851 | # STATIC |
51df396b WF |
852 | %if %{with static_libs} |
853 | OPT=" \ | |
9452387a JB |
854 | --sql-db2=%{?with_db2:qt}%{!?with_db2:no} \ |
855 | --sql-ibase=%{?with_ibase:qt}%{!?with_ibase:no} \ | |
856 | --sql-mysql=%{?with_mysql:qt}%{!?with_mysql:no} \ | |
857 | --sql-oci=%{?with_oracle:qt}%{!?with_oracle:no} \ | |
858 | --sql-odbc=%{?with_odbc:qt}%{!?with_odbc:no} \ | |
859 | --sql-psql=%{?with_pgsql:qt}%{!?with_pgsql:no} \ | |
860 | --sql-sqlite2=%{?with_sqlite2:qt}%{!?with_sqlite2:no} \ | |
861 | --sql-sqlite=%{?with_sqlite3:qt}%{!?with_sqlite3:no} \ | |
862 | --sql-tds=%{?with_freetds:qt}%{!?with_freetds:no} \ | |
51df396b WF |
863 | -static" |
864 | ||
865 | ./configure $COMMONOPT $OPT | |
866 | ||
867 | %{__make} -C src | |
51df396b WF |
868 | if [ ! -d staticlib ]; then |
869 | mkdir staticlib | |
870 | cp -a lib/*.a staticlib | |
871 | fi | |
872 | %{__make} distclean | |
873 | %endif | |
51df396b | 874 | |
9452387a | 875 | # SHARED |
51df396b | 876 | OPT=" \ |
9452387a JB |
877 | --sql-db2=%{?with_db2:plugin}%{!?with_db2:no} \ |
878 | --sql-ibase=%{?with_ibase:plugin}%{!?with_ibase:no} \ | |
879 | --sql-mysql=%{?with_mysql:plugin}%{!?with_mysql:no} \ | |
880 | --sql-oci=%{?with_oracle:plugin}%{!?with_oracle:no} \ | |
881 | --sql-odbc=%{?with_odbc:plugin}%{!?with_odbc:no} \ | |
882 | --sql-psql=%{?with_pgsql:plugin}%{!?with_pgsql:no} \ | |
883 | --sql-sqlite2=%{?with_sqlite2:plugin}%{!?with_sqlite2:no} \ | |
884 | --sql-sqlite=%{?with_sqlite3:plugin}%{!?with_sqlite3:no} \ | |
885 | --sql-tds=%{?with_freetds:plugin}%{!?with_freetds:no} \ | |
51df396b WF |
886 | -shared" |
887 | ||
888 | ./configure $COMMONOPT $OPT | |
889 | ||
890 | %{__make} | |
9452387a JB |
891 | |
892 | # use just built qdoc instead of requiring already installed qt5-build | |
893 | wd="$(pwd)" | |
716869f9 | 894 | %{__sed} -i -e 's|%{qt5dir}/bin/qdoc|LD_LIBRARY_PATH='${wd}'/lib$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} '${wd}'/bin/qdoc|' src/*/Makefile qmake/Makefile.qmake-docs |
9452387a JB |
895 | # build only HTML docs (qch docs require qhelpgenerator) |
896 | %{__make} html_docs | |
51df396b WF |
897 | |
898 | %install | |
899 | rm -rf $RPM_BUILD_ROOT | |
9452387a | 900 | install -d $RPM_BUILD_ROOT{/etc/qt5,%{_bindir},%{_pkgconfigdir}} |
51df396b WF |
901 | |
902 | %{__make} install \ | |
903 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
904 | ||
9452387a JB |
905 | %{__make} install_html_docs \ |
906 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
51df396b | 907 | |
9452387a JB |
908 | # kill unnecessary -L%{_libdir} from *.la, *.prl, *.pc |
909 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ | |
910 | $RPM_BUILD_ROOT%{_libdir}/*.{la,prl} \ | |
911 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
51df396b | 912 | |
9452387a JB |
913 | # useless symlinks |
914 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.? | |
915 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
916 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
51df396b WF |
917 | |
918 | # install tools | |
9452387a JB |
919 | install bin/findtr $RPM_BUILD_ROOT%{qt5dir}/bin |
920 | # symlinks in system bin dir | |
51df396b | 921 | cd $RPM_BUILD_ROOT%{_bindir} |
51df396b | 922 | ln -sf ../%{_lib}/qt5/bin/findtr findtr-qt5 |
51df396b WF |
923 | ln -sf ../%{_lib}/qt5/bin/moc moc-qt5 |
924 | ln -sf ../%{_lib}/qt5/bin/qmake qmake-qt5 | |
51df396b WF |
925 | ln -sf ../%{_lib}/qt5/bin/uic uic-qt5 |
926 | ln -sf ../%{_lib}/qt5/bin/rcc rcc-qt5 | |
51df396b WF |
927 | ln -sf ../%{_lib}/qt5/bin/qdbuscpp2xml qdbuscpp2xml-qt5 |
928 | ln -sf ../%{_lib}/qt5/bin/qdbusxml2cpp qdbusxml2cpp-qt5 | |
929 | ln -sf ../%{_lib}/qt5/bin/qdoc qdoc-qt5 | |
51df396b WF |
930 | cd - |
931 | ||
932 | # Prepare some files list | |
933 | ifecho() { | |
66205aa8 | 934 | r="$RPM_BUILD_ROOT$2" |
51df396b WF |
935 | if [ -d "$r" ]; then |
936 | echo "%%dir $2" >> $1.files | |
937 | elif [ -x "$r" ] ; then | |
938 | echo "%%attr(755,root,root) $2" >> $1.files | |
939 | elif [ -f "$r" ]; then | |
940 | echo "$2" >> $1.files | |
941 | else | |
942 | echo "Error generation $1 files list!" | |
943 | echo "$r: no such file or directory!" | |
944 | return 1 | |
945 | fi | |
946 | } | |
66205aa8 JB |
947 | ifecho_tree() { |
948 | ifecho $1 $2 | |
949 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
950 | ifecho $1 $2/$f | |
951 | done | |
952 | } | |
51df396b WF |
953 | |
954 | echo "%defattr(644,root,root,755)" > examples.files | |
66205aa8 JB |
955 | ifecho_tree examples %{_examplesdir}/qt5/dbus |
956 | ifecho_tree examples %{_examplesdir}/qt5/gestures | |
957 | ifecho_tree examples %{_examplesdir}/qt5/gui | |
958 | ifecho_tree examples %{_examplesdir}/qt5/ipc | |
959 | ifecho_tree examples %{_examplesdir}/qt5/json | |
960 | ifecho_tree examples %{_examplesdir}/qt5/network | |
961 | ifecho_tree examples %{_examplesdir}/qt5/opengl | |
962 | ifecho_tree examples %{_examplesdir}/qt5/qpa | |
963 | ifecho_tree examples %{_examplesdir}/qt5/qtconcurrent | |
964 | ifecho_tree examples %{_examplesdir}/qt5/qtestlib | |
965 | ifecho_tree examples %{_examplesdir}/qt5/sql | |
966 | ifecho_tree examples %{_examplesdir}/qt5/threads | |
967 | ifecho_tree examples %{_examplesdir}/qt5/tools | |
968 | ifecho_tree examples %{_examplesdir}/qt5/touch | |
969 | ifecho_tree examples %{_examplesdir}/qt5/widgets | |
970 | ifecho_tree examples %{_examplesdir}/qt5/xml | |
51df396b WF |
971 | |
972 | %clean | |
973 | rm -rf $RPM_BUILD_ROOT | |
974 | ||
eb485fb3 JB |
975 | %post -n Qt5Concurrent -p /sbin/ldconfig |
976 | %postun -n Qt5Concurrent -p /sbin/ldconfig | |
977 | ||
978 | %post -n Qt5Core -p /sbin/ldconfig | |
979 | %postun -n Qt5Core -p /sbin/ldconfig | |
51df396b | 980 | |
eb485fb3 JB |
981 | %post -n Qt5DBus -p /sbin/ldconfig |
982 | %postun -n Qt5DBus -p /sbin/ldconfig | |
983 | ||
984 | %post -n Qt5Gui -p /sbin/ldconfig | |
985 | %postun -n Qt5Gui -p /sbin/ldconfig | |
986 | ||
987 | %post -n Qt5Network -p /sbin/ldconfig | |
988 | %postun -n Qt5Network -p /sbin/ldconfig | |
989 | ||
990 | %post -n Qt5OpenGL -p /sbin/ldconfig | |
991 | %postun -n Qt5OpenGL -p /sbin/ldconfig | |
992 | ||
993 | %post -n Qt5PrintSupport -p /sbin/ldconfig | |
994 | %postun -n Qt5PrintSupport -p /sbin/ldconfig | |
995 | ||
996 | %post -n Qt5Sql -p /sbin/ldconfig | |
997 | %postun -n Qt5Sql -p /sbin/ldconfig | |
998 | ||
999 | %post -n Qt5Test -p /sbin/ldconfig | |
1000 | %postun -n Qt5Test -p /sbin/ldconfig | |
1001 | ||
1002 | %post -n Qt5Widgets -p /sbin/ldconfig | |
1003 | %postun -n Qt5Widgets -p /sbin/ldconfig | |
1004 | ||
1005 | %post -n Qt5Xml -p /sbin/ldconfig | |
1006 | %postun -n Qt5Xml -p /sbin/ldconfig | |
1007 | ||
1008 | %files -n Qt5Bootstrap-devel | |
1009 | %defattr(644,root,root,755) | |
1010 | # static-only | |
1011 | %{_libdir}/libQt5Bootstrap.a | |
1012 | %{_libdir}/libQt5Bootstrap.prl | |
1013 | %{_pkgconfigdir}/Qt5Bootstrap.pc | |
66205aa8 | 1014 | %{qt5dir}/mkspecs/modules/qt_lib_bootstrap_private.pri |
eb485fb3 JB |
1015 | |
1016 | %files -n Qt5Concurrent | |
51df396b | 1017 | %defattr(644,root,root,755) |
9452387a JB |
1018 | %attr(755,root,root) %{_libdir}/libQt5Concurrent.so.*.*.* |
1019 | %attr(755,root,root) %ghost %{_libdir}/libQt5Concurrent.so.5 | |
eb485fb3 JB |
1020 | |
1021 | %files -n Qt5Concurrent-devel | |
1022 | %defattr(644,root,root,755) | |
1023 | %attr(755,root,root) %{_libdir}/libQt5Concurrent.so | |
1024 | %{_libdir}/libQt5Concurrent.prl | |
1025 | %{_includedir}/qt5/QtConcurrent | |
1026 | %{_pkgconfigdir}/Qt5Concurrent.pc | |
1027 | %{_libdir}/cmake/Qt5Concurrent | |
66205aa8 JB |
1028 | %{qt5dir}/mkspecs/modules/qt_lib_concurrent.pri |
1029 | %{qt5dir}/mkspecs/modules/qt_lib_concurrent_private.pri | |
eb485fb3 JB |
1030 | |
1031 | %files -n Qt5Core | |
1032 | %defattr(644,root,root,755) | |
9452387a JB |
1033 | %attr(755,root,root) %{_libdir}/libQt5Core.so.*.*.* |
1034 | %attr(755,root,root) %ghost %{_libdir}/libQt5Core.so.5 | |
51df396b | 1035 | %dir /etc/qt5 |
9452387a JB |
1036 | %dir %{qt5dir} |
1037 | %dir %{qt5dir}/bin | |
66205aa8 JB |
1038 | %dir %{qt5dir}/mkspecs |
1039 | %dir %{qt5dir}/mkspecs/modules | |
9452387a | 1040 | %dir %{qt5dir}/plugins |
eb485fb3 JB |
1041 | |
1042 | %files -n Qt5Core-devel | |
1043 | %defattr(644,root,root,755) | |
1044 | %attr(755,root,root) %{_libdir}/libQt5Core.so | |
1045 | %{_libdir}/libQt5Core.prl | |
1046 | %dir %{_includedir}/qt5 | |
1047 | %{_includedir}/qt5/QtCore | |
1048 | %{_pkgconfigdir}/Qt5Core.pc | |
1049 | %{_libdir}/cmake/Qt5 | |
1050 | %{_libdir}/cmake/Qt5Core | |
66205aa8 JB |
1051 | %{qt5dir}/mkspecs/modules/qt_lib_core.pri |
1052 | %{qt5dir}/mkspecs/modules/qt_lib_core_private.pri | |
eb485fb3 JB |
1053 | |
1054 | %files -n Qt5DBus | |
1055 | %defattr(644,root,root,755) | |
1056 | %attr(755,root,root) %{_libdir}/libQt5DBus.so.*.*.* | |
1057 | %attr(755,root,root) %ghost %{_libdir}/libQt5DBus.so.5 | |
1058 | ||
1059 | %files -n Qt5DBus-devel | |
1060 | %defattr(644,root,root,755) | |
1061 | %attr(755,root,root) %{_libdir}/libQt5DBus.so | |
1062 | %{_libdir}/libQt5DBus.prl | |
1063 | %{_includedir}/qt5/QtDBus | |
1064 | %{_pkgconfigdir}/Qt5DBus.pc | |
1065 | %{_libdir}/cmake/Qt5DBus | |
66205aa8 JB |
1066 | %{qt5dir}/mkspecs/modules/qt_lib_dbus.pri |
1067 | %{qt5dir}/mkspecs/modules/qt_lib_dbus_private.pri | |
eb485fb3 JB |
1068 | |
1069 | %files -n Qt5Gui | |
1070 | %defattr(644,root,root,755) | |
1071 | %attr(755,root,root) %{_libdir}/libQt5Gui.so.*.*.* | |
1072 | %attr(755,root,root) %ghost %{_libdir}/libQt5Gui.so.5 | |
49014eb2 | 1073 | # loaded from src/gui/accessible/qaccessible.cpp |
9452387a | 1074 | %dir %{qt5dir}/plugins/accessible |
49014eb2 | 1075 | # loaded from src/gui/kernel/qgenericpluginfactory.cpp |
9452387a | 1076 | %dir %{qt5dir}/plugins/generic |
0bac8e29 | 1077 | # R: udev-libs (by all qevdev* plugins) |
9452387a JB |
1078 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevkeyboardplugin.so |
1079 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevmouseplugin.so | |
1080 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevtabletplugin.so | |
1081 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqevdevtouchplugin.so | |
49014eb2 | 1082 | # loaded from src/gui/image/qimage{reader,writer}.cpp |
9452387a JB |
1083 | %dir %{qt5dir}/plugins/imageformats |
1084 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqgif.so | |
1085 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqico.so | |
0bac8e29 | 1086 | # R: libjpeg |
9452387a | 1087 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqjpeg.so |
49014eb2 | 1088 | # loaded from src/gui/kernel/qplatforminputcontextfactory.cpp |
9452387a | 1089 | %dir %{qt5dir}/plugins/platforminputcontexts |
0bac8e29 | 1090 | # R: libxkbcommon |
9452387a | 1091 | %attr(755,root,root) %{qt5dir}/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so |
0bac8e29 | 1092 | # R: Qt5DBus |
9452387a | 1093 | %attr(755,root,root) %{qt5dir}/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so |
49014eb2 | 1094 | # loaded from src/gui/kernel/qplatformintegrationfactory.cpp |
9452387a | 1095 | %dir %{qt5dir}/plugins/platforms |
0bac8e29 | 1096 | # R: fontconfig freetype udev-libs |
9452387a JB |
1097 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqlinuxfb.so |
1098 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqminimal.so | |
0bac8e29 | 1099 | # R: freetype libX11 libXrender |
9452387a | 1100 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqoffscreen.so |
0bac8e29 | 1101 | # R: Qt5DBus libxcb xcb-* xorg-* ... |
9452387a | 1102 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqxcb.so |
49014eb2 | 1103 | # loaded from src/gui/kernel/qplatformthemefactory.cpp |
9452387a | 1104 | %dir %{qt5dir}/plugins/platformthemes |
07c22e07 JB |
1105 | |
1106 | %if %{with tslib} | |
1107 | %files -n Qt5Gui-generic-tslib | |
1108 | %defattr(644,root,root,755) | |
1109 | # R: tslib | |
1110 | %attr(755,root,root) %{qt5dir}/plugins/generic/libqtslibplugin.so | |
1111 | %endif | |
1112 | ||
1113 | %if %{with directfb} | |
1114 | %files -n Qt5Gui-platform-directfb | |
1115 | %defattr(644,root,root,755) | |
1116 | # R: DirectFB fontconfig freetype | |
1117 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqdirectfb.so | |
1118 | %endif | |
1119 | ||
1120 | %if %{with kms} | |
1121 | # TODO; requires GLESv2 instead of GL | |
1122 | %files -n Qt5Gui-platform-kms | |
1123 | %defattr(644,root,root,755) | |
1124 | # R: EGL GLESv2 libdrm libgbm udev-libs | |
1125 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqkms.so | |
1126 | %endif | |
1127 | ||
1128 | %if %{with egl} | |
1129 | # TODO; requires GLESv2 instead of GL | |
1130 | %files -n Qt5Gui-platform-egl | |
1131 | %defattr(644,root,root,755) | |
1132 | # R: egl fontconfig freetype (for two following) | |
1133 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqeglfs.so | |
1134 | %attr(755,root,root) %{qt5dir}/plugins/platforms/libqminimalegl.so | |
1135 | %endif | |
1136 | ||
9452387a | 1137 | %if %{with gtk} |
07c22e07 JB |
1138 | %files -n Qt5Gui-platformtheme-gtk2 |
1139 | %defattr(644,root,root,755) | |
0bac8e29 | 1140 | # R: gtk+2 |
9452387a JB |
1141 | %attr(755,root,root) %{qt5dir}/plugins/platformthemes/libqgtk2.so |
1142 | %endif | |
eb485fb3 JB |
1143 | |
1144 | %files -n Qt5Gui-devel | |
1145 | %defattr(644,root,root,755) | |
1146 | %attr(755,root,root) %{_libdir}/libQt5Gui.so | |
1147 | %{_libdir}/libQt5Gui.prl | |
1148 | %{_includedir}/qt5/QtGui | |
1149 | %{_pkgconfigdir}/Qt5Gui.pc | |
1150 | %{_libdir}/cmake/Qt5Gui | |
66205aa8 JB |
1151 | %{qt5dir}/mkspecs/modules/qt_lib_gui.pri |
1152 | %{qt5dir}/mkspecs/modules/qt_lib_gui_private.pri | |
eb485fb3 JB |
1153 | |
1154 | %files -n Qt5Network | |
1155 | %defattr(644,root,root,755) | |
1156 | %attr(755,root,root) %{_libdir}/libQt5Network.so.*.*.* | |
1157 | %attr(755,root,root) %ghost %{_libdir}/libQt5Network.so.5 | |
1158 | # loaded from src/network/bearer/qnetworkconfigmanager_p.cpp | |
1159 | %dir %{qt5dir}/plugins/bearer | |
0bac8e29 | 1160 | # R: Qt5DBus |
eb485fb3 JB |
1161 | %attr(755,root,root) %{qt5dir}/plugins/bearer/libqconnmanbearer.so |
1162 | %attr(755,root,root) %{qt5dir}/plugins/bearer/libqgenericbearer.so | |
0bac8e29 | 1163 | # R: Qt5DBus |
eb485fb3 JB |
1164 | %attr(755,root,root) %{qt5dir}/plugins/bearer/libqnmbearer.so |
1165 | ||
1166 | %files -n Qt5Network-devel | |
1167 | %defattr(644,root,root,755) | |
1168 | %attr(755,root,root) %{_libdir}/libQt5Network.so | |
1169 | %{_libdir}/libQt5Network.prl | |
1170 | %{_includedir}/qt5/QtNetwork | |
1171 | %{_pkgconfigdir}/Qt5Network.pc | |
1172 | %{_libdir}/cmake/Qt5Network | |
66205aa8 JB |
1173 | %{qt5dir}/mkspecs/modules/qt_lib_network.pri |
1174 | %{qt5dir}/mkspecs/modules/qt_lib_network_private.pri | |
eb485fb3 JB |
1175 | |
1176 | %files -n Qt5OpenGL | |
1177 | %defattr(644,root,root,755) | |
1178 | %attr(755,root,root) %{_libdir}/libQt5OpenGL.so.*.*.* | |
1179 | %attr(755,root,root) %ghost %{_libdir}/libQt5OpenGL.so.5 | |
1180 | ||
1181 | %files -n Qt5OpenGL-devel | |
1182 | %defattr(644,root,root,755) | |
1183 | %attr(755,root,root) %{_libdir}/libQt5OpenGL.so | |
1184 | %{_libdir}/libQt5OpenGL.prl | |
1185 | %{_includedir}/qt5/QtOpenGL | |
1186 | %{_pkgconfigdir}/Qt5OpenGL.pc | |
1187 | %{_libdir}/cmake/Qt5OpenGL | |
66205aa8 JB |
1188 | %{qt5dir}/mkspecs/modules/qt_lib_opengl.pri |
1189 | %{qt5dir}/mkspecs/modules/qt_lib_opengl_private.pri | |
eb485fb3 JB |
1190 | |
1191 | %files -n Qt5OpenGLExtensions-devel | |
1192 | %defattr(644,root,root,755) | |
1193 | # static-only | |
1194 | %{_libdir}/libQt5OpenGLExtensions.a | |
1195 | %{_libdir}/libQt5OpenGLExtensions.prl | |
1196 | %{_includedir}/qt5/QtOpenGLExtensions | |
1197 | %{_pkgconfigdir}/Qt5OpenGLExtensions.pc | |
1198 | %{_libdir}/cmake/Qt5OpenGLExtensions | |
66205aa8 JB |
1199 | %{qt5dir}/mkspecs/modules/qt_lib_openglextensions.pri |
1200 | %{qt5dir}/mkspecs/modules/qt_lib_openglextensions_private.pri | |
eb485fb3 JB |
1201 | |
1202 | %files -n Qt5PlatformSupport-devel | |
1203 | %defattr(644,root,root,755) | |
1204 | # static-only | |
1205 | %{_libdir}/libQt5PlatformSupport.a | |
1206 | %{_libdir}/libQt5PlatformSupport.prl | |
1207 | %{_includedir}/qt5/QtPlatformSupport | |
1208 | %{_pkgconfigdir}/Qt5PlatformSupport.pc | |
66205aa8 | 1209 | %{qt5dir}/mkspecs/modules/qt_lib_platformsupport_private.pri |
eb485fb3 JB |
1210 | |
1211 | %files -n Qt5PrintSupport | |
1212 | %defattr(644,root,root,755) | |
1213 | %attr(755,root,root) %{_libdir}/libQt5PrintSupport.so.*.*.* | |
1214 | %attr(755,root,root) %ghost %{_libdir}/libQt5PrintSupport.so.5 | |
49014eb2 | 1215 | # loaded from src/printsupport/kernel/qplatformprintplugin.cpp |
9452387a JB |
1216 | %dir %{qt5dir}/plugins/printsupport |
1217 | %if %{with cups} | |
1218 | %attr(755,root,root) %{qt5dir}/plugins/printsupport/libcupsprintersupport.so | |
1219 | %endif | |
eb485fb3 JB |
1220 | |
1221 | %files -n Qt5PrintSupport-devel | |
1222 | %defattr(644,root,root,755) | |
1223 | %attr(755,root,root) %{_libdir}/libQt5PrintSupport.so | |
1224 | %{_libdir}/libQt5PrintSupport.prl | |
1225 | %{_includedir}/qt5/QtPrintSupport | |
1226 | %{_pkgconfigdir}/Qt5PrintSupport.pc | |
1227 | %{_libdir}/cmake/Qt5PrintSupport | |
66205aa8 JB |
1228 | %{qt5dir}/mkspecs/modules/qt_lib_printsupport.pri |
1229 | %{qt5dir}/mkspecs/modules/qt_lib_printsupport_private.pri | |
eb485fb3 JB |
1230 | |
1231 | %files -n Qt5Sql | |
1232 | %defattr(644,root,root,755) | |
1233 | %attr(755,root,root) %{_libdir}/libQt5Sql.so.*.*.* | |
1234 | %attr(755,root,root) %ghost %{_libdir}/libQt5Sql.so.5 | |
49014eb2 | 1235 | # loaded from src/sql/kernel/qsqldatabase.cpp |
9452387a | 1236 | %dir %{qt5dir}/plugins/sqldrivers |
07c22e07 | 1237 | |
9452387a | 1238 | %if %{with db2} |
07c22e07 JB |
1239 | %files -n Qt5Sql-sqldriver-db2 |
1240 | %defattr(644,root,root,755) | |
0bac8e29 | 1241 | # R: (proprietary) DB2 libs |
9452387a JB |
1242 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqldb2.so |
1243 | %endif | |
07c22e07 | 1244 | |
9452387a | 1245 | %if %{with ibase} |
07c22e07 JB |
1246 | %files -n Qt5Sql-sqldriver-ibase |
1247 | %defattr(644,root,root,755) | |
0bac8e29 | 1248 | # R: Firebird-lib |
9452387a JB |
1249 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlibase.so |
1250 | %endif | |
07c22e07 | 1251 | |
9452387a | 1252 | %if %{with sqlite3} |
07c22e07 JB |
1253 | %files -n Qt5Sql-sqldriver-sqlite3 |
1254 | %defattr(644,root,root,755) | |
0bac8e29 | 1255 | # R: sqlite3 |
9452387a JB |
1256 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlite.so |
1257 | %endif | |
07c22e07 | 1258 | |
9452387a | 1259 | %if %{with sqlite2} |
07c22e07 JB |
1260 | %files -n Qt5Sql-sqldriver-sqlite2 |
1261 | %defattr(644,root,root,755) | |
0bac8e29 | 1262 | # R: sqlite >= 2 |
9452387a JB |
1263 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlite2.so |
1264 | %endif | |
07c22e07 | 1265 | |
9452387a | 1266 | %if %{with mysql} |
07c22e07 JB |
1267 | %files -n Qt5Sql-sqldriver-mysql |
1268 | %defattr(644,root,root,755) | |
0bac8e29 | 1269 | # R: mysql-libs |
9452387a JB |
1270 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlmysql.so |
1271 | %endif | |
07c22e07 | 1272 | |
9452387a | 1273 | %if %{with oracle} |
07c22e07 JB |
1274 | %files -n Qt5Sql-sqldriver-oci |
1275 | %defattr(644,root,root,755) | |
0bac8e29 | 1276 | # R: (proprietary) Oracle libs |
9452387a JB |
1277 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqloci.so |
1278 | %endif | |
07c22e07 | 1279 | |
9452387a | 1280 | %if %{with odbc} |
07c22e07 JB |
1281 | %files -n Qt5Sql-sqldriver-odbc |
1282 | %defattr(644,root,root,755) | |
0bac8e29 | 1283 | # R: unixODBC |
9452387a JB |
1284 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlodbc.so |
1285 | %endif | |
07c22e07 | 1286 | |
9452387a | 1287 | %if %{with pgsql} |
07c22e07 JB |
1288 | %files -n Qt5Sql-sqldriver-pgsql |
1289 | %defattr(644,root,root,755) | |
0bac8e29 | 1290 | # R: postgresql-libs |
9452387a JB |
1291 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqlpsql.so |
1292 | %endif | |
07c22e07 | 1293 | |
9452387a | 1294 | %if %{with freetds} |
07c22e07 JB |
1295 | %files -n Qt5Sql-sqldriver-tds |
1296 | %defattr(644,root,root,755) | |
0bac8e29 | 1297 | # R: freetds |
9452387a JB |
1298 | %attr(755,root,root) %{qt5dir}/plugins/sqldrivers/libqsqltds.so |
1299 | %endif | |
51df396b | 1300 | |
eb485fb3 | 1301 | %files -n Qt5Sql-devel |
51df396b | 1302 | %defattr(644,root,root,755) |
51df396b | 1303 | %attr(755,root,root) %{_libdir}/libQt5Sql.so |
51df396b | 1304 | %{_libdir}/libQt5Sql.prl |
9452387a | 1305 | %{_includedir}/qt5/QtSql |
9452387a | 1306 | %{_pkgconfigdir}/Qt5Sql.pc |
51df396b | 1307 | %{_libdir}/cmake/Qt5Sql |
66205aa8 JB |
1308 | %{qt5dir}/mkspecs/modules/qt_lib_sql.pri |
1309 | %{qt5dir}/mkspecs/modules/qt_lib_sql_private.pri | |
eb485fb3 JB |
1310 | |
1311 | %files -n Qt5Test | |
1312 | %defattr(644,root,root,755) | |
1313 | %attr(755,root,root) %{_libdir}/libQt5Test.so.*.*.* | |
1314 | %attr(755,root,root) %ghost %{_libdir}/libQt5Test.so.5 | |
1315 | ||
1316 | %files -n Qt5Test-devel | |
1317 | %defattr(644,root,root,755) | |
1318 | %attr(755,root,root) %{_libdir}/libQt5Test.so | |
1319 | %{_libdir}/libQt5Test.prl | |
1320 | %{_includedir}/qt5/QtTest | |
1321 | %{_pkgconfigdir}/Qt5Test.pc | |
51df396b | 1322 | %{_libdir}/cmake/Qt5Test |
66205aa8 JB |
1323 | %{qt5dir}/mkspecs/modules/qt_lib_testlib.pri |
1324 | %{qt5dir}/mkspecs/modules/qt_lib_testlib_private.pri | |
eb485fb3 JB |
1325 | |
1326 | %files -n Qt5Widgets | |
1327 | %defattr(644,root,root,755) | |
1328 | %attr(755,root,root) %{_libdir}/libQt5Widgets.so.*.*.* | |
1329 | %attr(755,root,root) %ghost %{_libdir}/libQt5Widgets.so.5 | |
07c22e07 JB |
1330 | # Qt5Gui plugin which requires Qt5Widgets |
1331 | %attr(755,root,root) %{qt5dir}/plugins/accessible/libqtaccessiblewidgets.so | |
eb485fb3 JB |
1332 | |
1333 | %files -n Qt5Widgets-devel | |
1334 | %defattr(644,root,root,755) | |
1335 | %attr(755,root,root) %{_libdir}/libQt5Widgets.so | |
1336 | %{_libdir}/libQt5Widgets.prl | |
1337 | %{_includedir}/qt5/QtWidgets | |
1338 | %{_pkgconfigdir}/Qt5Widgets.pc | |
51df396b | 1339 | %{_libdir}/cmake/Qt5Widgets |
66205aa8 JB |
1340 | %{qt5dir}/mkspecs/modules/qt_lib_widgets.pri |
1341 | %{qt5dir}/mkspecs/modules/qt_lib_widgets_private.pri | |
eb485fb3 JB |
1342 | |
1343 | %files -n Qt5Xml | |
1344 | %defattr(644,root,root,755) | |
1345 | %attr(755,root,root) %{_libdir}/libQt5Xml.so.*.*.* | |
1346 | %attr(755,root,root) %ghost %{_libdir}/libQt5Xml.so.5 | |
1347 | ||
1348 | %files -n Qt5Xml-devel | |
1349 | %defattr(644,root,root,755) | |
1350 | %attr(755,root,root) %{_libdir}/libQt5Xml.so | |
1351 | %{_libdir}/libQt5Xml.prl | |
1352 | %{_includedir}/qt5/QtXml | |
1353 | %{_pkgconfigdir}/Qt5Xml.pc | |
51df396b | 1354 | %{_libdir}/cmake/Qt5Xml |
66205aa8 JB |
1355 | %{qt5dir}/mkspecs/modules/qt_lib_xml.pri |
1356 | %{qt5dir}/mkspecs/modules/qt_lib_xml_private.pri | |
1357 | ||
1358 | %files -n qt5-doc-common | |
1359 | %defattr(644,root,root,755) | |
1360 | %dir %{_docdir}/qt5-doc | |
1361 | %{_docdir}/qt5-doc/global | |
51df396b | 1362 | |
b18d64cc WF |
1363 | %files doc |
1364 | %defattr(644,root,root,755) | |
66205aa8 JB |
1365 | %{_docdir}/qt5-doc/qdoc |
1366 | %{_docdir}/qt5-doc/qmake | |
1367 | %{_docdir}/qt5-doc/qtconcurrent | |
1368 | %{_docdir}/qt5-doc/qtcore | |
1369 | %{_docdir}/qt5-doc/qtdbus | |
1370 | %{_docdir}/qt5-doc/qtgui | |
1371 | %{_docdir}/qt5-doc/qtnetwork | |
1372 | %{_docdir}/qt5-doc/qtopengl | |
1373 | %{_docdir}/qt5-doc/qtprintsupport | |
1374 | %{_docdir}/qt5-doc/qtsql | |
1375 | %{_docdir}/qt5-doc/qttestlib | |
1376 | %{_docdir}/qt5-doc/qtwidgets | |
1377 | %{_docdir}/qt5-doc/qtxml | |
b18d64cc | 1378 | |
51df396b | 1379 | %files examples -f examples.files |
66205aa8 JB |
1380 | %dir %{_examplesdir}/qt5 |
1381 | %doc %{_examplesdir}/qt5/README | |
1382 | %{_examplesdir}/qt5/examples.pro | |
9452387a JB |
1383 | |
1384 | %files -n qt5-build | |
1385 | %defattr(644,root,root,755) | |
1386 | %attr(755,root,root) %{_bindir}/findtr-qt5 | |
1387 | %attr(755,root,root) %{_bindir}/moc-qt5 | |
1388 | %attr(755,root,root) %{_bindir}/qdbuscpp2xml-qt5 | |
1389 | %attr(755,root,root) %{_bindir}/qdbusxml2cpp-qt5 | |
1390 | %attr(755,root,root) %{_bindir}/qdoc-qt5 | |
1391 | %attr(755,root,root) %{_bindir}/rcc-qt5 | |
1392 | %attr(755,root,root) %{_bindir}/uic-qt5 | |
1393 | %attr(755,root,root) %{qt5dir}/bin/findtr | |
1394 | %attr(755,root,root) %{qt5dir}/bin/moc | |
1395 | %attr(755,root,root) %{qt5dir}/bin/qdbuscpp2xml | |
1396 | %attr(755,root,root) %{qt5dir}/bin/qdbusxml2cpp | |
1397 | %attr(755,root,root) %{qt5dir}/bin/qdoc | |
1398 | %attr(755,root,root) %{qt5dir}/bin/rcc | |
1399 | %attr(755,root,root) %{qt5dir}/bin/syncqt.pl | |
1400 | %attr(755,root,root) %{qt5dir}/bin/uic | |
1401 | ||
1402 | %files -n qt5-qmake | |
1403 | %defattr(644,root,root,755) | |
1404 | %attr(755,root,root) %{_bindir}/qmake-qt5 | |
1405 | %attr(755,root,root) %{qt5dir}/bin/qmake | |
66205aa8 JB |
1406 | %{qt5dir}/mkspecs/aix-* |
1407 | %{qt5dir}/mkspecs/android-* | |
1408 | %{qt5dir}/mkspecs/blackberry-* | |
1409 | %{qt5dir}/mkspecs/common | |
1410 | %{qt5dir}/mkspecs/cygwin-* | |
1411 | %{qt5dir}/mkspecs/darwin-* | |
1412 | %{qt5dir}/mkspecs/devices | |
1413 | %{qt5dir}/mkspecs/features | |
1414 | %{qt5dir}/mkspecs/freebsd-* | |
1415 | %{qt5dir}/mkspecs/hpux-* | |
1416 | %{qt5dir}/mkspecs/hpuxi-* | |
1417 | %{qt5dir}/mkspecs/hurd-* | |
1418 | %{qt5dir}/mkspecs/irix-* | |
1419 | %{qt5dir}/mkspecs/linux-* | |
1420 | %{qt5dir}/mkspecs/lynxos-* | |
1421 | %{qt5dir}/mkspecs/macx-* | |
1422 | %{qt5dir}/mkspecs/netbsd-* | |
1423 | %{qt5dir}/mkspecs/openbsd-* | |
1424 | %{qt5dir}/mkspecs/qnx-* | |
1425 | %{qt5dir}/mkspecs/sco-* | |
1426 | %{qt5dir}/mkspecs/solaris-* | |
1427 | %{qt5dir}/mkspecs/tru64-* | |
1428 | %{qt5dir}/mkspecs/unixware-* | |
1429 | %{qt5dir}/mkspecs/unsupported | |
1430 | %{qt5dir}/mkspecs/win32-* | |
1431 | %{qt5dir}/mkspecs/wince60standard-* | |
1432 | %{qt5dir}/mkspecs/wince70embedded-* | |
1433 | %{qt5dir}/mkspecs/winphone-* | |
1434 | %{qt5dir}/mkspecs/winrt-* | |
1435 | %{qt5dir}/mkspecs/*.pri |