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