/[packages]/backports/8/qtbase6/current/SPECS/qtbase6.spec
ViewVC logotype

Contents of /backports/8/qtbase6/current/SPECS/qtbase6.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1722424 - (show annotations) (download)
Mon May 10 19:15:18 2021 UTC (2 years, 11 months ago) by daviddavid
Original Path: cauldron/qtbase6/current/SPECS/qtbase6.spec
File size: 53283 byte(s)
SILENT: aarch64 does not support command-line option '-msse2'

1 # Build configuration
2
3 %define build_bootstrap 1
4 %{?_with_bootstrap: %{expand: %%global build_bootstrap 1}}
5
6
7 %ifarch aarch64 armv7hl %{ix86}
8 %global no_sse2 1
9 %endif
10
11 %if 0%{?build_bootstrap}
12 %define build_docs 0
13 %else
14 %define build_docs 1
15 %endif
16
17 %ifarch %{arm} aarch64 %{ix86}
18 %define build_docs 0
19 %endif
20
21 %global platform linux-g++
22
23 %bcond_without postgres
24 %bcond_without mysql
25 %bcond_without sqlite
26 %bcond_without ibase
27 %bcond_without cups
28 %bcond_without examples
29 %bcond_without odbc
30 %bcond_without dbus_linked
31 %bcond_without pcre
32 %bcond_without use_gold_linker
33 %bcond_without journald
34 ## skip for now, until we're better at it
35 %bcond_with tests
36
37 %bcond_with debug
38
39 # FIXME: disable for now, they don't seem to be implemented in Qt 6.1.0
40 %bcond_with tds
41
42 # Versioning
43
44 %define qtmajor 6
45 %define qtminor 1
46 %define qtsubminor 0
47 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
48
49 %define rel 1
50
51 %define snapshot 0
52
53 %if 0%{?snapshot}
54 %define pre rc
55 %endif
56
57 %define qttarballdir qtbase-everywhere-src-%{qtversion}%{?pre:-%{pre}}
58
59 # Library names
60
61 %define libqt %mklibname qt6base %qtmajor
62 %define libqtdevel %mklibname qt6base %qtmajor -d
63
64 %define libqtcore %mklibname qt6core %qtmajor
65 %define libqtcore_d %mklibname qt6core -d
66
67 %define libqtconcurrent %mklibname qt6concurrent %qtmajor
68 %define libqtconcurrent_d %mklibname qt6concurrent -d
69
70 %define libqteglfskmsgbmsupport %mklibname qt6eglfskmsgbmsupport %qtmajor
71 %define libqteglfskmsgbmsupport_d %mklibname qt6eglfskmsgbmsupport -d
72
73 %define libqtdbus %mklibname qt6dbus %qtmajor
74 %define libqtdbus_d %mklibname qt6dbus -d
75
76 %define libqteglfsdeviceintegration %mklibname qt6eglfsdeviceintegration %qtmajor
77 %define libqteglfsdeviceintegration_d %mklibname qt6eglfsdeviceintegration -d
78
79 %define libqteglfskmssupport %mklibname qt6eglfskmssupport %qtmajor
80 %define libqteglfskmssupport_d %mklibname qt6eglfskmssupport -d
81
82 %define libqtgui %mklibname qt6gui %qtmajor
83 %define libqtgui_d %mklibname qt6gui -d
84
85 %define libqtnetwork %mklibname qt6network %qtmajor
86 %define libqtnetwork_d %mklibname qt6network -d
87
88 %define libqtopengl %mklibname qt6opengl %qtmajor
89 %define libqtopengl_d %mklibname qt6opengl -d
90
91 %define libqtopenglwidgets %mklibname qt6openglwidgets %qtmajor
92 %define libqtopenglwidgets_d %mklibname qt6openglwidgets -d
93
94 %define libqtprintsupport %mklibname qt6printsupport %qtmajor
95 %define libqtprintsupport_d %mklibname qt6printsupport -d
96
97 %define libqtsql %mklibname qt6sql %qtmajor
98 %define libqtsql_d %mklibname qt6sql -d
99
100 %define libqttest %mklibname qt6test %qtmajor
101 %define libqttest_d %mklibname qt6test -d
102
103 %define libqtwidgets %mklibname qt6widgets %qtmajor
104 %define libqtwidgets_d %mklibname qt6widgets -d
105
106 %define libqtxcbqpa %mklibname qt6xcbqpa %qtmajor
107 %define libqtxcbqpa_d %mklibname qt6xcbqpa -d
108
109 %define libqtxml %mklibname qt6xml %qtmajor
110 %define libqtxml_d %mklibname qt6xml -d
111
112 %define libqtdevicediscoverysupport_d %mklibname qt6devicediscoverysupport -d -s
113 %define libqtfbsupport_d %mklibname qt6fbsupport -d -s
114 %define libqtinputsupport_d %mklibname qt6inputsupport -d -s
115 %define libqtkmssupport_d %mklibname qt6kmssupport -d -s
116
117
118 # Folder macros
119
120 %define _qt6_prefix %{_prefix}
121 %define _qt6_archdatadir %{_libdir}/qt6
122 %define _qt6_bin %{_libdir}/qt6/bin
123 %define _qt6_datadir %{_datadir}/qt6
124 %define _qt6_docdir %{_docdir}/qt6
125 %define _qt6_examplesdir %{_qt6_archdatadir}/examples
126 %define _qt6_headerdir %{_includedir}/qt6
127 %define _qt6_includedir %{_includedir}/qt6
128 %define _qt6_importdir %{_qt6_archdatadir}/imports
129 %define _qt6_libdir %{_libdir}
130 %define _qt6_libexecdir %{_qt6_archdatadir}/libexec
131 %define _qt6_mkspecsdir %{_qt6_archdatadir}/mkspecs
132 %define _qt6_plugindir %{_qt6_archdatadir}/plugins
133 %define _qt6_qmldir %{_qt6_archdatadir}/qml
134 %define _qt6_settingsdir %{_sysconfdir}/xdg
135 %define _qt6_sysconfdir %{_qt6_settingsdir}
136 %define _qt6_translationdir %{_datadir}/qt6/translations
137
138 # Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires.
139 # Those themes are there for platform integration. If the required libraries are
140 # not there, the platform to integrate with isn't either. Then Qt will just
141 # silently ignore the plugin that fails to load. Thus, there is no need to let
142 # RPM drag in gtk2 as a dependency for the GTK+ 2 dialog support.
143 %global __requires_exclude_from ^%{_qt6_plugindir}/platformthemes/.*$
144
145 Name: qtbase6
146 Version: %{qtversion}
147 Release: %mkrel %{rel}
148 Summary: Qt GUI toolkit
149 Group: Development/KDE and Qt
150 License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
151 URL: https://www.qt.io/
152 Source0: https://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
153 # https://bugzilla.redhat.com/show_bug.cgi?id=1227295
154 # https://bugs.mageia.org/show_bug.cgi?id=27054
155 # https://bugs.mageia.org/show_bug.cgi?id=26900
156 Source1: qtlogging.ini
157 Source2: qt6.macros
158
159 # backport from upstream
160
161 # Branch patches
162
163 # Fedora patches
164 # support firebird version 3.x
165 Patch55: qtbase-firebird.patch
166
167 # python3
168 Patch57: qtbase-everywhere-src-5.11.1-python3.patch
169
170 # gcc-11
171 Patch90: qtbase-gcc11.patch
172
173 # allow building against Qt with C++20 enabled (QTBUG-93270)
174 Patch100: qtbase-c++20.patch
175
176 # Mageia patches
177 # (blino) revert upstream patch that forbids -reduce-relocations on ARM
178 # since -Bsymbolic is fixed on ARM in ld 2.25 (QTBUG-36129 and binutils#16715)
179 Patch200: qtbase5-revert-old-arm-linker-limitation.patch
180
181 # Trunk patches
182
183 # Security patches
184
185 # Testing patches
186
187 BuildRequires: binutils >= 2.18
188 BuildRequires: cmake-rpm-macros
189 BuildRequires: qt6-macros
190 BuildRequires: ninja
191 BuildRequires: cups-devel
192 BuildRequires: mesa-common-devel
193 BuildRequires: pam-devel
194 BuildRequires: perl
195 BuildRequires: python3
196 BuildRequires: cmake(double-conversion)
197 BuildRequires: pkgconfig(alsa)
198 BuildRequires: pkgconfig(dbus-1) >= 0.92
199 BuildRequires: pkgconfig(expat)
200 BuildRequires: pkgconfig(fontconfig)
201 BuildRequires: pkgconfig(freetype2)
202 BuildRequires: pkgconfig(egl)
203 BuildRequires: pkgconfig(gl)
204 BuildRequires: pkgconfig(glib-2.0)
205 BuildRequires: pkgconfig(gstreamer-1.0)
206 BuildRequires: pkgconfig(gstreamer-app-1.0)
207 # gtk+3.0 for qtgtk style
208 BuildRequires: pkgconfig(gtk+-3.0)
209 BuildRequires: pkgconfig(harfbuzz) >= 0.9.42
210 BuildRequires: pkgconfig(libb2)
211 BuildRequires: pkgconfig(libinput)
212 BuildRequires: pkgconfig(libjpeg)
213 BuildRequires: pkgconfig(libmng)
214 BuildRequires: pkgconfig(libpcre2-16)
215 BuildRequires: pkgconfig(libpng)
216 BuildRequires: pkgconfig(libproxy-1.0)
217 BuildRequires: pkgconfig(libpulse)
218 BuildRequires: pkgconfig(libtiff-4)
219 BuildRequires: pkgconfig(libudev)
220 BuildRequires: pkgconfig(libxml-2.0)
221 BuildRequires: pkgconfig(libxslt)
222 BuildRequires: pkgconfig(libzstd)
223 BuildRequires: pkgconfig(md4c)
224 BuildRequires: pkgconfig(ncurses)
225 BuildRequires: pkgconfig(openssl) >= 1.1
226 BuildRequires: pkgconfig(readline)
227 BuildRequires: pkgconfig(sm)
228 BuildRequires: pkgconfig(systemd)
229 BuildRequires: pkgconfig(libsystemd)
230 BuildRequires: pkgconfig(tslib)
231 BuildRequires: pkgconfig(vulkan)
232 BuildRequires: pkgconfig(xcb)
233 BuildRequires: pkgconfig(xcb-image)
234 BuildRequires: pkgconfig(xcb-icccm)
235 BuildRequires: pkgconfig(xcb-keysyms)
236 BuildRequires: pkgconfig(xcb-renderutil)
237 BuildRequires: pkgconfig(xcb-xkb) >= 1.10
238 BuildRequires: pkgconfig(xcb-util)
239 BuildRequires: pkgconfig(xkbcommon) >= 0.4.1
240 BuildRequires: pkgconfig(xkbcommon-x11) >= 0.4.1
241 BuildRequires: pkgconfig(xtst)
242 BuildRequires: pkgconfig(zlib)
243
244 %description
245 Qt%{qtmajor} is a GUI software toolkit which simplifies the task of writing and
246 maintaining GUI (Graphical User Interface) applications for the X
247 Window System. Qt is written in C++ and is fully object-oriented.
248
249 This package contains the shared library needed to run Qt
250 applications, as well as the README files for Qt.
251
252 #------------------------------------------------------------------------------
253
254 %package common
255 Summary: Qt%{qtmajor} Config and Language Files
256 Group: Development/KDE and Qt
257 Provides: qt6-common = %{version}-%{release}
258 #TODO Mga6: Split qttranslations6 into subpackages
259 %if ! 0%{?build_bootstrap}
260 Requires: qttranslations6
261 %endif
262 # (doktor5000) glxinfo binary required by script qt6-check-opengl2.sh
263 Requires: glxinfo
264
265 %description common
266 Qt is a GUI software toolkit which simplifies the task of writing and
267 maintaining GUI (Graphical User Interface) applications for the X
268 Window System. Qt is written in C++ and is fully object-oriented.
269
270 Configuration and language files for Qt%{qtmajor}.
271
272 %files common
273 %attr(0755,root,root) %{_sysconfdir}/profile.d/*
274 %dir %{_sysconfdir}/xdg/QtProject
275 %dir %{_qt6_bindir}
276 %{_qt6_bindir}/syncqt.pl
277 %dir %{_qt6_docdir}
278 %{_qt6_docdir}/global/
279 %{_qt6_docdir}/config/
280 %dir %{_qt6_datadir}
281 %{_qt6_datadir}/qtlogging.ini
282 %dir %{_qt6_plugindir}
283 %{_qt6_plugindir}/generic/
284 %{_qt6_plugindir}/imageformats/
285 %{_qt6_plugindir}/platforminputcontexts/
286 %{_qt6_plugindir}/platformthemes/
287 %{_qt6_plugindir}/platforms/
288 %{_qt6_plugindir}/egldeviceintegrations/
289 %{_qt6_plugindir}/networkinformationbackends/
290 %{_qt6_plugindir}/printsupport/
291 %{_qt6_plugindir}/xcbglintegrations/
292
293 #-------------------------------------------------------------------
294
295 %package -n %{name}-common-devel
296 Summary: Development files for the Qt%{qtmajor} GUI toolkit
297 Group: Development/KDE and Qt
298 Requires(pre): %{name}-common = %{version}
299 Requires: qt6-macros
300 Provides: qmake = %{version}-%{release}
301 Provides: qmake-qt6 = %{version}-%{release}
302
303 %description -n %{name}-common-devel
304 Common files needed to build application based on Qt%{qtmajor}.
305
306 %post -n %{name}-common-devel
307 update-alternatives --install %{_bindir}/qmake qmake %{_qt6_bindir}/qmake 20
308
309 %postun -n %{name}-common-devel
310 if ! [ -e %{_qt6_bindir}/qmake ]; then
311 update-alternatives --remove qmake %{_qt6_bindir}/qmake
312 fi
313
314 %files -n %{name}-common-devel
315 #{_sysconfdir}/rpm/macros.d/qt6.macros
316 %{_bindir}/androiddeployqt
317 %{_bindir}/androidtestrunner
318 %{_bindir}/qdbuscpp2xml*
319 %{_bindir}/qdbusxml2cpp*
320 %{_bindir}/qmake*
321 %{_bindir}/qt-cmake
322 %{_bindir}/qt-cmake-private
323 %{_bindir}/qt-cmake-standalone-test
324 %{_bindir}/qt-configure-module
325 %{_qt6_bindir}/qmake*
326 %{_qt6_bindir}/android_emulator_launcher.sh
327 %{_qt6_bindir}/androiddeployqt
328 %{_qt6_bindir}/androidtestrunner
329 %{_qt6_bindir}/qdbuscpp2xml
330 %{_qt6_bindir}/qdbusxml2cpp
331 %{_qt6_bindir}/qt-cmake
332 %{_qt6_bindir}/qt-cmake-private
333 %{_qt6_bindir}/qt-cmake-private-install.cmake
334 %{_qt6_bindir}/qt-cmake-standalone-test
335 %{_qt6_bindir}/qt-configure-module
336 %{_qt6_libdir}/cmake_automoc_parser
337 %{_qt6_libdir}/moc*
338 %{_qt6_libdir}/qt-internal-configure-tests
339 %{_qt6_libdir}/qvkgen*
340 %{_qt6_libdir}/qlalr*
341 %{_qt6_libdir}/rcc*
342 %{_qt6_libdir}/tracegen*
343 %{_qt6_libdir}/uic*
344 %{_qt6_libdir}/syncqt.pl
345 %{_qt6_archdatadir}/mkspecs/
346 %dir %{_qt6_libdir}/cmake
347 %dir %{_qt6_libdir}/metatypes
348 %if "%{_qt6_includedir}" != "%{_includedir}"
349 %dir %{_qt6_includedir}
350 %endif
351 %{_qt6_libdir}/cmake/Qt6/
352 %{_qt6_libdir}/cmake/Qt6BuildInternals/
353 %{_qt6_libdir}/cmake/Qt6HostInfo/
354
355 #------------------------------------------------------------------------------
356
357 %package examples
358 Summary: Example programs made with Qt%{qtmajor}
359 Group: Documentation
360 Provides: qt6-examples = %{version}-%{release}
361
362 %description examples
363 Example programs made with Qt%{qtmajor}.
364
365 %files examples
366 %{_qt6_examplesdir}/*
367
368 #------------------------------------------------------------------------------
369
370 %if 0%{?build_docs}
371 %package doc
372 Summary: QtBase%{qtmajor} APIs and tools docs
373 Group: Documentation
374 BuildArch: noarch
375 BuildRequires: qttools6
376 # This one is required to build QCH-format documentation
377 # for APIs and tools in this package set
378 BuildRequires: qttools6-assistant
379 Recommends: qttools6-assistant
380
381 %description doc
382 Documentation for APIs and tools in QtBase%{qtmajor} package for use with
383 Qt Assistant.
384
385 %files doc
386 %{_qt6_docdir}/*.qch
387 %{_qt6_docdir}/qmake/
388 %{_qt6_docdir}/qtconcurrent/
389 %{_qt6_docdir}/qtcore/
390 %{_qt6_docdir}/qtdbus/
391 %{_qt6_docdir}/qtgui/
392 %{_qt6_docdir}/qtnetwork/
393 %{_qt6_docdir}/qtopengl/
394 %{_qt6_docdir}/qtplatformheaders/
395 %{_qt6_docdir}/qtprintsupport/
396 %{_qt6_docdir}/qtsql/
397 %{_qt6_docdir}/qttestlib/
398 %{_qt6_docdir}/qtwidgets/
399 %{_qt6_docdir}/qtxml/
400 %endif
401
402 #------------------------------------------------------------------------------
403 # CORE QT LIBRARIES
404 #------------------------------------------------------------------------------
405
406 %package -n %{libqtcore}
407 Summary: Qt%{qtmajor} Core Library
408 Group: System/Libraries
409 Requires(pre): %{name}-common = %{version}
410
411 %description -n %{libqtcore}
412 Qt%{qtmajor} Core Component Library.
413
414 The QtCore module contains core non-GUI functionality.
415
416 %files -n %{libqtcore}
417 %{_qt6_libdir}/libQt6Core.so.%{qtmajor}{,.*}
418
419 #------------------------------------------------------------------------------
420
421 %package -n %{libqtcore_d}
422 Summary: Devel files needed to build apps based on QtCore
423 Group: Development/KDE and Qt
424 Requires(pre): %{name}-common = %{version}
425 Requires: %{name}-common-devel = %{version}-%{release}
426 Requires: %{libqtcore} = %{version}
427 Provides: libqtcore6-devel = %{version}
428 Provides: libqt6core-devel = %{version}
429 Provides: qt6core-devel = %{version}
430 Provides: qtcore6-devel = %{version}
431
432 Provides: qt6core-private-devel = %{version}
433 Provides: qtcore6-private-devel = %{version}
434
435 %description -n %{libqtcore_d}
436 Devel files needed to build apps based on QtCore.
437
438 %files -n %{libqtcore_d}
439 %{_qt6_libdir}/libQt6Core.prl
440 %{_qt6_libdir}/libQt6Core.so
441 %{_qt6_libdir}/cmake/Qt6Core/
442 %{_qt6_libdir}/cmake/Qt6/Qt6Config.cmake
443 %{_qt6_libdir}/cmake/Qt6/Qt6ConfigVersion.cmake
444 %{_qt6_includedir}/QtCore/
445 %{_qt6_datadir}/modules/Core.json
446 %{_qt6_libdir}/cmake/Qt6CoreTools/
447 %{_qt6_libdir}/metatypes/qt6core_relwithdebinfo_metatypes.json
448
449 #------------------------------------------------------------------------------
450
451 %package -n %{libqtconcurrent}
452 Summary: Qt%{qtmajor} Concurrent Library
453 Group: System/Libraries
454 Requires(pre): %{name}-common = %{version}
455
456 %description -n %{libqtconcurrent}
457 Qt%{qtmajor} Concurrent Component Library.
458
459 %files -n %{libqtconcurrent}
460 %{_qt6_libdir}/libQt6Concurrent.so.%{qtmajor}{,.*}
461
462 #------------------------------------------------------------------------------
463
464 %package -n %{libqtconcurrent_d}
465 Summary: Devel files needed to build apps based on QtConcurrent
466 Group: Development/KDE and Qt
467 Requires(pre): %{name}-common = %{version}
468 Requires: %{name}-common-devel = %{version}-%{release}
469 Requires: %{libqtconcurrent} = %{version}
470 Provides: libqtconcurrent6-devel = %{version}
471 Provides: libqt6concurrent-devel = %{version}
472 Provides: qt6concurrent-devel = %{version}
473 Provides: qtconcurrent6-devel = %{version}
474
475 %description -n %{libqtconcurrent_d}
476 Devel files needed to build apps based on QtConcurrent.
477
478 %files -n %{libqtconcurrent_d}
479 %{_qt6_libdir}/libQt6Concurrent.so
480 %{_qt6_libdir}/libQt6Concurrent.prl
481 %{_qt6_libdir}/cmake/Qt6Concurrent/
482 %{_qt6_includedir}/QtConcurrent/
483 %{_qt6_datadir}/modules/Concurrent.json
484
485 #------------------------------------------------------------------------------
486
487 %package -n %{libqteglfskmsgbmsupport}
488 Summary: Qt%{qtmajor} EglFsKmsGbmSupport Library
489 Group: System/Libraries
490 Requires(pre): %{name}-common = %{version}
491
492 %description -n %{libqteglfskmsgbmsupport}
493 Qt%{qtmajor} EglFsKmsGbmSupport Component Library.
494
495 %files -n %{libqteglfskmsgbmsupport}
496 %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.so.%{qtmajor}{,.*}
497
498 #------------------------------------------------------------------------------
499
500 %package -n %{libqteglfskmsgbmsupport_d}
501 Summary: Devel files needed to build apps based on QtConcurrent
502 Group: Development/KDE and Qt
503 Requires(pre): %{name}-common = %{version}
504 Requires: %{name}-common-devel = %{version}-%{release}
505 Requires: %{libqteglfskmsgbmsupport} = %{version}
506 Provides: libqteglfskmsgbmsupport6-devel = %{version}
507 Provides: libqt6eglfskmsgbmsupport-devel = %{version}
508 Provides: qt6eglfskmsgbmsupport-devel = %{version}
509 Provides: qteglfskmsgbmsupport6-devel = %{version}
510
511 %description -n %{libqteglfskmsgbmsupport_d}
512 Devel files needed to build apps based on QtConcurrent.
513
514 %files -n %{libqteglfskmsgbmsupport_d}
515 %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.so
516 %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.prl
517 %{_qt6_libdir}/cmake/Qt6EglFsKmsGbmSupport/
518 %{_qt6_includedir}/QtEglFsKmsGbmSupport/
519 %{_qt6_datadir}/modules/EglFsKmsGbmSupport.json
520
521 #------------------------------------------------------------------------------
522
523 %package -n %{libqtdbus}
524 Summary: Qt%{qtmajor} DBus Library
525 Group: System/Libraries
526 Requires(pre): %{name}-common = %{version}
527
528 %description -n %{libqtdbus}
529 Qt%{qtmajor} DBus Component Library.
530
531 %files -n %{libqtdbus}
532 %{_qt6_libdir}/libQt6DBus.so.%{qtmajor}{,.*}
533
534 #------------------------------------------------------------------------------
535
536 %package -n %{libqtdbus_d}
537 Summary: Devel files needed to build apps based on QtDBus
538 Group: Development/KDE and Qt
539 Requires(pre): %{name}-common = %{version}
540 Requires: %{name}-common-devel = %{version}-%{release}
541 Requires: %{libqtdbus} = %{version}
542 Provides: libqtdbus6-devel = %{version}
543 Provides: libqt6dbus-devel = %{version}
544 Provides: qt6dbus-devel = %{version}
545 Provides: qtdbus6-devel = %{version}
546
547 Provides: qt6dbus-private-devel = %{version}
548 Provides: qtdbus6-private-devel = %{version}
549
550 %description -n %{libqtdbus_d}
551 Devel files needed to build apps based on QtDBus.
552
553 %files -n %{libqtdbus_d}
554 %{_qt6_libdir}/libQt6DBus.prl
555 %{_qt6_libdir}/libQt6DBus.so
556 %{_qt6_libdir}/cmake/Qt6DBus/
557 %{_qt6_includedir}/QtDBus/
558 %{_qt6_datadir}/modules/DBus.json
559 %{_qt6_libdir}/cmake/Qt6DBusTools/
560
561 #------------------------------------------------------------------------------
562
563 %package -n %{libqteglfsdeviceintegration}
564 Summary: Qt%{qtmajor} EglFSDeviceIntegrations Library
565 Group: System/Libraries
566 Requires(pre): %{name}-common = %{version}
567
568 %description -n %{libqteglfsdeviceintegration}
569 Qt%{qtmajor} EglFSDeviceIntegrations Component Library.
570
571 %files -n %{libqteglfsdeviceintegration}
572 %{_qt6_libdir}/libQt6EglFSDeviceIntegration.so.%{qtmajor}{,.*}
573
574 #------------------------------------------------------------------------------
575
576 %package -n %{libqteglfsdeviceintegration_d}
577 Summary: Devel files needed to build apps based on EglFSDeviceIntegrations
578 Group: Development/KDE and Qt
579 Requires(pre): %{name}-common = %{version}
580 Requires: %{name}-common-devel = %{version}-%{release}
581 Requires: %{libqteglfsdeviceintegration} = %{version}
582 Provides: libqteglfsdeviceintegration6-devel = %{version}
583 Provides: libqt6eglfsdeviceintegration-devel = %{version}
584 Provides: qteglfsdeviceintegration6-devel = %{version}
585 Provides: qt6eglfsdeviceintegration-devel = %{version}
586
587 %description -n %{libqteglfsdeviceintegration_d}
588 Devel files needed to build apps based on QtEglFSDeviceIntegrations.
589
590 %files -n %{libqteglfsdeviceintegration_d}
591 %{_qt6_includedir}/QtEglFSDeviceIntegration/
592 %{_qt6_libdir}/libQt6EglFSDeviceIntegration.prl
593 %{_qt6_libdir}/libQt6EglFSDeviceIntegration.so
594 %{_qt6_libdir}/cmake/Qt6EglFSDeviceIntegration/
595 %{_qt6_datadir}/modules/EglFSDeviceIntegration.json
596
597 #------------------------------------------------------------------------------
598
599 %package -n %{libqteglfskmssupport}
600 Summary: Qt%{qtmajor} EglFsKmsSupport Library
601 Group: System/Libraries
602 Requires(pre): %{name}-common = %{version}
603
604 %description -n %{libqteglfskmssupport}
605 Qt%{qtmajor} EglFsKmsSupport Component Library.
606
607 %files -n %{libqteglfskmssupport}
608 %{_qt6_libdir}/libQt6EglFsKmsSupport.so.%{qtmajor}{,.*}
609
610 #------------------------------------------------------------------------------
611
612 %package -n %{libqteglfskmssupport_d}
613 Summary: Devel files needed to build apps based on EglFsKmsSupport
614 Group: Development/KDE and Qt
615 Requires(pre): %{name}-common = %{version}
616 Requires: %{name}-common-devel = %{version}-%{release}
617 Requires: %{libqteglfskmssupport} = %{version}
618 Provides: libqteglfskmssupport6-devel = %{version}
619 Provides: libqt6eglfskmssupport-devel = %{version}
620 Provides: qteglfskmssupport6-devel = %{version}
621 Provides: qt6eglfskmssupport-devel = %{version}
622
623 %description -n %{libqteglfskmssupport_d}
624 Devel files needed to build apps based on QtEglFsKmsSupport.
625
626 %files -n %{libqteglfskmssupport_d}
627 %{_qt6_libdir}/libQt6EglFsKmsSupport.prl
628 %{_qt6_libdir}/libQt6EglFsKmsSupport.so
629 %{_qt6_libdir}/cmake/Qt6EglFsKmsSupport/
630 %{_qt6_includedir}/QtEglFsKmsSupport/
631 %{_qt6_datadir}/modules/EglFsKmsSupport.json
632
633 #------------------------------------------------------------------------------
634
635 %package -n %{libqtgui}
636 Summary: Qt%{qtmajor} GUI Library
637 Group: System/Libraries
638 Requires(pre): %{name}-common = %{version}
639
640 %description -n %{libqtgui}
641 Qt%{qtmajor} GUI Component Library.
642
643 The QtGui module extends QtCore with GUI functionality.
644
645 %files -n %{libqtgui}
646 %{_qt6_libdir}/libQt6Gui.so.%{qtmajor}{,.*}
647
648 #------------------------------------------------------------------------------
649
650 %package -n %{libqtgui_d}
651 Summary: Devel files needed to build apps based on QtGui
652 Group: Development/KDE and Qt
653 Requires(pre): %{name}-common = %{version}
654 Requires: %{name}-common = %{version}-%{release}
655 Requires: %{name}-common-devel = %{version}-%{release}
656 #(nl) see : https://bugreports.qt-project.org/browse/QTBUG-39859
657 Requires: pkgconfig(egl)
658 Requires: pkgconfig(vulkan)
659 Requires: %{libqtgui} = %{version}
660 # referenced by Qt6Gui cmake files
661 Requires: %{libqtxcbqpa_d} = %{version}-%{release}
662 Requires: %{libqteglfsdeviceintegration_d} = %{version}-%{release}
663 %if ! 0%{?build_bootstrap}
664 Requires: qtwayland6
665 %endif
666
667 Provides: libqtgui6-devel = %{version}
668 Provides: libqt6gui-devel = %{version}
669 Provides: qtgui6-devel = %{version}
670 Provides: qt6gui-devel = %{version}
671
672 Provides: qtgui6-private-devel = %{version}
673 Provides: qt6gui-private-devel = %{version}
674
675 %description -n %{libqtgui_d}
676 Devel files needed to build apps based on QtGui.
677
678 %files -n %{libqtgui_d}
679 %{_qt6_libdir}/libQt6Gui.prl
680 %{_qt6_libdir}/libQt6Gui.so
681 %{_qt6_libdir}/cmake/Qt6Gui/
682 %{_qt6_includedir}/QtGui/
683 %{_qt6_datadir}/modules/Gui.json
684 %{_qt6_libdir}/cmake/Qt6GuiTools/
685 %{_qt6_libdir}/metatypes/qt6gui_relwithdebinfo_metatypes.json
686
687 #------------------------------------------------------------------------------
688
689 %package -n %{libqtnetwork}
690 Summary: Qt%{qtmajor} Network Library
691 Group: System/Libraries
692 Requires(pre): %{name}-common = %{version}
693
694 %description -n %{libqtnetwork}
695 Qt%{qtmajor} Network Component Library.
696
697 The QtNetwork module provides classes to make network programming easier
698 and portable.
699
700 %files -n %{libqtnetwork}
701 %{_qt6_libdir}/libQt6Network.so.%{qtmajor}{,.*}
702
703 #------------------------------------------------------------------------------
704
705 %package -n %{libqtnetwork_d}
706 Summary: Devel files needed to build apps based on QtNetwork
707 Group: Development/KDE and Qt
708 Requires(pre): %{name}-common = %{version}
709 Requires: %{name}-common-devel = %{version}-%{release}
710 Requires: %{libqtnetwork} = %{version}
711 Requires: pkgconfig(openssl) >= 1.1
712 Provides: libqtnetwork6-devel = %{version}
713 Provides: libqt6network-devel = %{version}
714 Provides: qtnetwork6-devel = %{version}
715 Provides: qt6network-devel = %{version}
716
717 Provides: qtnetwork6-private-devel = %{version}
718 Provides: qt6network-private-devel = %{version}
719
720 %description -n %{libqtnetwork_d}
721 Devel files needed to build apps based on QtNetwork.
722
723 %files -n %{libqtnetwork_d}
724 %{_qt6_libdir}/libQt6Network.prl
725 %{_qt6_libdir}/libQt6Network.so
726 %{_qt6_libdir}/cmake/Qt6Network/
727 %{_qt6_includedir}/QtNetwork/
728 %{_qt6_datadir}/modules/Network.json
729
730 #------------------------------------------------------------------------------
731
732 %package -n %{libqtopengl}
733 Summary: Qt%{qtmajor} OpenGL Library
734 Group: System/Libraries
735 Requires(pre): %{name}-common = %{version}
736
737 %description -n %{libqtopengl}
738 Qt%{qtmajor} OpenGL Component Library.
739
740 The QtOpenGL module offers classes that make it easy to use OpenGL in
741 Qt applications.
742
743 %files -n %{libqtopengl}
744 %{_qt6_libdir}/libQt6OpenGL.so.%{qtmajor}{,.*}
745
746 #------------------------------------------------------------------------------
747
748 %package -n %{libqtopengl_d}
749 Summary: Devel files needed to build apps based on QtOpenGL
750 Group: Development/KDE and Qt
751 Requires(pre): %{name}-common = %{version}
752 Requires: %{name}-common-devel = %{version}-%{release}
753 Requires: %{libqtopengl} = %{version}
754 Provides: libqtopengl6-devel = %{version}
755 Provides: libqt6opengl-devel = %{version}
756 Provides: qtopengl6-devel = %{version}
757 Provides: qt6opengl-devel = %{version}
758
759 Provides: qtopengl6-private-devel = %{version}
760 Provides: qt6opengl-private-devel = %{version}
761
762 %description -n %{libqtopengl_d}
763 Devel files needed to build apps based on QtOpenGL.
764
765 %files -n %{libqtopengl_d}
766 %{_qt6_libdir}/libQt6OpenGL.prl
767 %{_qt6_libdir}/libQt6OpenGL.so
768 %{_qt6_libdir}/cmake/Qt6OpenGL/
769 %{_qt6_includedir}/QtOpenGL/
770 %{_qt6_datadir}/modules/OpenGL.json
771
772 #------------------------------------------------------------------------------
773
774 %package -n %{libqtopenglwidgets}
775 Summary: Qt%{qtmajor} OpenGL Widgets Library
776 Group: System/Libraries
777 Requires(pre): %{name}-common = %{version}
778
779 %description -n %{libqtopenglwidgets}
780 Qt%{qtmajor} OpenGL Widgets Component Library.
781
782 The QtOpenGLWidgets module offers classes that make it easy to use
783 OpenGLWidgets in Qt applications.
784
785 %files -n %{libqtopenglwidgets}
786 %{_qt6_libdir}/libQt6OpenGLWidgets.so.%{qtmajor}{,.*}
787
788 #------------------------------------------------------------------------------
789
790 %package -n %{libqtopenglwidgets_d}
791 Summary: Devel files needed to build apps based on QtOpenGLWidgets
792 Group: Development/KDE and Qt
793 Requires(pre): %{name}-common = %{version}
794 Requires: %{name}-common-devel = %{version}-%{release}
795 Requires: %{libqtopenglwidgets} = %{version}
796 Provides: libqtopenglwidgets6-devel = %{version}
797 Provides: libqt6openglwidgets-devel = %{version}
798 Provides: qtopenglwidgets6-devel = %{version}
799 Provides: qt6openglwidgets-devel = %{version}
800
801 Provides: qtopenglwidgets6-private-devel = %{version}
802 Provides: qt6openglwidgets-private-devel = %{version}
803
804 %description -n %{libqtopenglwidgets_d}
805 Devel files needed to build apps based on QtOpenGLWidgets.
806
807 %files -n %{libqtopenglwidgets_d}
808 %{_qt6_includedir}/QtOpenGLWidgets/
809 %{_qt6_libdir}/libQt6OpenGLWidgets.prl
810 %{_qt6_libdir}/libQt6OpenGLWidgets.so
811 %{_qt6_datadir}/modules/OpenGLWidgets.json
812 %{_qt6_libdir}/cmake/Qt6OpenGLWidgets/
813
814 #------------------------------------------------------------------------------
815
816 %package -n %{libqtprintsupport}
817 Summary: Qt%{qtmajor} PrintSupport Library
818 Group: System/Libraries
819 Requires(pre): %{name}-common = %{version}
820
821 %description -n %{libqtprintsupport}
822 Qt%{qtmajor} PrintSupport Component Library.
823
824 %files -n %{libqtprintsupport}
825 %{_qt6_libdir}/libQt6PrintSupport.so.%{qtmajor}{,.*}
826
827 #------------------------------------------------------------------------------
828
829 %package -n %{libqtprintsupport_d}
830 Summary: Devel files needed to build apps based on QtPrintSupport
831 Group: Development/KDE and Qt
832 Requires(pre): %{name}-common = %{version}
833 Requires: %{name}-common-devel = %{version}-%{release}
834 Requires: %{libqtprintsupport} = %{version}
835 Provides: libqtprintsupport6-devel = %{version}
836 Provides: libqt6printsupport-devel = %{version}
837 Provides: qtprintsupport6-devel = %{version}
838 Provides: qt6printsupport-devel = %{version}
839
840 Provides: qtprintsupport6-private-devel = %{version}
841 Provides: qt6printsupport-private-devel = %{version}
842
843 %description -n %{libqtprintsupport_d}
844 Devel files needed to build apps based on QtPrintSupport.
845
846 %files -n %{libqtprintsupport_d}
847 %{_qt6_libdir}/libQt6PrintSupport.so
848 %{_qt6_libdir}/libQt6PrintSupport.prl
849 %{_qt6_libdir}/cmake/Qt6PrintSupport/
850 %{_qt6_includedir}/QtPrintSupport/
851 %{_qt6_datadir}/modules/PrintSupport.json
852
853 #------------------------------------------------------------------------------
854
855 %package -n %{libqtsql}
856 Summary: Qt%{qtmajor} SQL Library
857 Group: System/Libraries
858 Requires(pre): %{name}-common = %{version}
859 %if ! %without sqlite
860 Requires: %{_lib}qt6-database-plugin-sqlite = %{version}
861 %endif
862 %if ! %without ibase
863 Requires: %{_lib}qt6-database-plugin-ibase = %{version}
864 %endif
865
866 %description -n %{libqtsql}
867 Qt%{qtmajor} SQL Component Library.
868
869 %files -n %{libqtsql}
870 %{_qt6_libdir}/libQt6Sql.so.%{qtmajor}{,.*}
871
872 #------------------------------------------------------------------------------
873
874 %package -n %{libqtsql_d}
875 Summary: Devel files needed to build apps based on QtSql
876 Group: Development/KDE and Qt
877 Requires(pre): %{name}-common = %{version}
878 Requires: %{name}-common-devel = %{version}-%{release}
879 Requires: %{libqtsql} = %{version}
880 %if ! %without odbc
881 Requires: qtbase6-database-plugin-odbc
882 %endif
883 %if ! %without tds
884 Requires: qtbase6-database-plugin-tds
885 %endif
886 %if ! %without mysql
887 Requires: qtbase6-database-plugin-mysql
888 %endif
889 %if ! %without postgres
890 Requires: qtbase6-database-plugin-pgsql
891 %endif
892 %if ! %without sqlite
893 Requires: qtbase6-database-plugin-sqlite
894 %endif
895 %if ! %without ibase
896 Requires: qtbase6-database-plugin-ibase
897 %endif
898 Provides: libqtsql6-devel = %{version}
899 Provides: libqt6sql-devel = %{version}
900 Provides: qt6sql-devel = %{version}
901 Provides: qtsql6-devel = %{version}
902
903 Provides: libqtsql6-private-devel = %{version}
904 Provides: libqt6sql-private-devel = %{version}
905 Provides: qt6sql-private-devel = %{version}
906 Provides: qtsql6-private-devel = %{version}
907
908 %description -n %{libqtsql_d}
909 Devel files needed to build apps based on QtSql.
910
911 %files -n %{libqtsql_d}
912 %{_qt6_libdir}/libQt6Sql.prl
913 %{_qt6_libdir}/libQt6Sql.so
914 %{_qt6_libdir}/cmake/Qt6Sql/
915 %{_qt6_includedir}/QtSql/
916 %{_qt6_datadir}/modules/Sql.json
917
918 #------------------------------------------------------------------------------
919
920 %package -n %{libqttest}
921 Summary: Qt%{qtmajor} Test Library
922 Group: System/Libraries
923 Requires(pre): %{name}-common = %{version}
924
925 %description -n %{libqttest}
926 Qt%{qtmajor} Test Component Library.
927
928 The QtTest module provides classes for unit testing Qt applications and
929 libraries.
930
931 %files -n %{libqttest}
932 %{_qt6_libdir}/libQt6Test.so.%{qtmajor}{,.*}
933
934 #------------------------------------------------------------------------------
935
936 %package -n %{libqttest_d}
937 Summary: Devel files needed to build apps based on QtTest
938 Group: Development/KDE and Qt
939 Requires(pre): %{name}-common = %{version}
940 Requires: %{name}-common-devel = %{version}-%{release}
941 Requires: %{libqttest} = %{version}
942 Provides: libqttest6-devel = %{version}
943 Provides: libqt6test-devel = %{version}
944 Provides: qttest6-devel = %{version}
945 Provides: qt6test-devel = %{version}
946
947 Provides: qttest6-private-devel = %{version}
948 Provides: qt6test-private-devel = %{version}
949
950 Requires: qtwidgets6-devel = %{version}-%{release}
951
952 %description -n %{libqttest_d}
953 Devel files needed to build apps based on QtTest.
954
955 %files -n %{libqttest_d}
956 %{_qt6_libdir}/libQt6Test.prl
957 %{_qt6_libdir}/libQt6Test.so
958 %{_qt6_libdir}/cmake/Qt6Test/
959 %{_qt6_includedir}/QtTest/
960 %{_qt6_datadir}/modules/Test.json
961
962 #------------------------------------------------------------------------------
963
964 %package -n %{libqtwidgets}
965 Summary: Qt%{qtmajor} Widgets Library
966 Group: System/Libraries
967 Requires(pre): %{name}-common = %{version}
968
969 %description -n %{libqtwidgets}
970 Qt%{qtmajor} Widgets Component Library.
971
972 %files -n %{libqtwidgets}
973 %{_qt6_libdir}/libQt6Widgets.so.%{qtmajor}{,.*}
974
975 #------------------------------------------------------------------------------
976
977 %package -n %{libqtwidgets_d}
978 Summary: Devel files needed to build apps based on QtWidgets
979 Group: Development/KDE and Qt
980 Requires(pre): %{name}-common = %{version}
981 Requires: %{name}-common-devel = %{version}-%{release}
982 Requires: %{libqtwidgets} = %{version}
983 Provides: libqtwidgets6-devel = %{version}
984 Provides: libqt6widgets-devel = %{version}
985 Provides: qtwidgets6-devel = %{version}
986 Provides: qt6widgets-devel = %{version}
987
988 Provides: qtwidgets6-private-devel = %{version}
989 Provides: qt6widgets-private-devel = %{version}
990
991 %description -n %{libqtwidgets_d}
992 Devel files needed to build apps based on QtWidgets.
993
994 %files -n %{libqtwidgets_d}
995 %{_qt6_libdir}/libQt6Widgets.so
996 %{_qt6_libdir}/libQt6Widgets.prl
997 %{_qt6_libdir}/cmake/Qt6Widgets/
998 %{_qt6_includedir}/QtWidgets/
999 %{_qt6_datadir}/modules/Widgets.json
1000 %{_qt6_libdir}/metatypes/qt6widgets_relwithdebinfo_metatypes.json
1001 %{_qt6_libdir}/cmake/Qt6WidgetsTools/
1002
1003 #------------------------------------------------------------------------------
1004
1005 %package -n %{libqtxcbqpa}
1006 Summary: Qt%{qtmajor} XcbQpa Library
1007 Group: System/Libraries
1008 Requires(pre): %{name}-common = %{version}
1009
1010 %description -n %{libqtxcbqpa}
1011 Qt%{qtmajor} XcbQpa Component Library.
1012
1013 %files -n %{libqtxcbqpa}
1014 %{_qt6_libdir}/libQt6XcbQpa.so.%{qtmajor}{,.*}
1015
1016 #------------------------------------------------------------------------------
1017
1018 %package -n %{libqtxcbqpa_d}
1019 Summary: Devel files needed to build apps based on QtXcbQpa
1020 Group: Development/KDE and Qt
1021 Requires(pre): %{name}-common = %{version}
1022 Requires: %{name}-common-devel = %{version}-%{release}
1023 Requires: %{libqtxcbqpa} = %{version}
1024 Provides: libqtxcbqpa6-devel = %{version}
1025 Provides: libqt6xcbqpa-devel = %{version}
1026 Provides: qtxcbqpa6-devel = %{version}
1027 Provides: qt6xcbqpa-devel = %{version}
1028
1029 %description -n %{libqtxcbqpa_d}
1030 Devel files needed to build apps based on QtXcbQpa.
1031
1032 %files -n %{libqtxcbqpa_d}
1033 %{_qt6_libdir}/libQt6XcbQpa.prl
1034 %{_qt6_libdir}/libQt6XcbQpa.so
1035 %{_qt6_libdir}/cmake/Qt6XcbQpa/
1036 %{_qt6_datadir}/modules/XcbQpa.json
1037
1038 #------------------------------------------------------------------------------
1039
1040 %package -n %{libqtxml}
1041 Summary: Qt%{qtmajor} XML Library
1042 Group: System/Libraries
1043 Requires(pre): %{name}-common = %{version}
1044
1045 %description -n %{libqtxml}
1046 Qt%{qtmajor} XML Component Library.
1047
1048 The QtXml module provides a stream reader and writer for XML documents,
1049 and C++ implementations of SAX and DOM.
1050
1051 %files -n %{libqtxml}
1052 %{_qt6_libdir}/libQt6Xml.so.%{qtmajor}{,.*}
1053
1054 #------------------------------------------------------------------------------
1055
1056 %package -n %{libqtxml_d}
1057 Summary: Devel files needed to build apps based on QtXml
1058 Group: Development/KDE and Qt
1059 Requires(pre): %{name}-common = %{version}
1060 Requires: %{name}-common-devel = %{version}-%{release}
1061 Requires: %{libqtxml} = %{version}
1062 Provides: libqtxml6-devel = %{version}
1063 Provides: libqt6xml-devel = %{version}
1064 Provides: qtxml6-devel = %{version}
1065 Provides: qt6xml-devel = %{version}
1066
1067 %description -n %{libqtxml_d}
1068 Devel files needed to build apps based on QtXml.
1069
1070 %files -n %{libqtxml_d}
1071 %{_qt6_libdir}/libQt6Xml.prl
1072 %{_qt6_libdir}/libQt6Xml.so
1073 %{_qt6_libdir}/cmake/Qt6Xml/
1074 %{_qt6_includedir}/QtXml/
1075 %{_qt6_datadir}/modules/Xml.json
1076
1077 #------------------------------------------------------------------------------
1078
1079 %package -n %{libqtdevel}
1080 Summary: Development files for the Qt%{qtmajor} GUI toolkit
1081 Group: Development/KDE and Qt
1082 Requires(pre): %{name}-common = %{version}
1083 Provides: qt6-devel = %{version}-%{release}
1084 Provides: qtbase6-devel = %{version}-%{release}
1085 Provides: libqtbase6-devel = %{version}-%{release}
1086 Provides: libqt6-devel = %{version}-%{release}
1087
1088 Requires: %{name}-common-devel = %{version}-%{release}
1089 Requires: %{libqtcore_d} = %{version}-%{release}
1090 Requires: %{libqtconcurrent_d} = %{version}-%{release}
1091 Requires: %{libqteglfskmsgbmsupport_d} = %{version}-%{release}
1092 Requires: %{libqtdbus_d} = %{version}-%{release}
1093 Requires: %{libqteglfsdeviceintegration_d} = %{version}-%{release}
1094 Requires: %{libqteglfskmssupport_d} = %{version}-%{release}
1095 Requires: %{libqtgui_d} = %{version}-%{release}
1096 Requires: %{libqtnetwork_d} = %{version}-%{release}
1097 Requires: %{libqtopengl_d} = %{version}-%{release}
1098 Requires: %{libqtopenglwidgets_d} = %{version}-%{release}
1099 Requires: %{libqtprintsupport_d} = %{version}-%{release}
1100 Requires: %{libqtsql_d} = %{version}-%{release}
1101 Requires: %{libqttest_d} = %{version}-%{release}
1102 Requires: %{libqtwidgets_d} = %{version}-%{release}
1103 Requires: %{libqtxcbqpa_d} = %{version}-%{release}
1104 Requires: %{libqtxml_d} = %{version}-%{release}
1105
1106 %description -n %{libqtdevel}
1107 The %{libqtdevel} package contains the files necessary to develop
1108 applications using the Qt GUI toolkit: the header files, the Qt
1109 meta object compiler, and the static libraries. See the address
1110 http://qt-project.org/ for more information about Qt%{qtmajor}.
1111
1112 %files -n %{libqtdevel}
1113
1114 #------------------------------------------------------------------------------
1115 # SUPPORT STATIC LIBRARIES
1116 #------------------------------------------------------------------------------
1117
1118 %package -n %{libqtdevicediscoverysupport_d}
1119 Summary: Devel files needed to build apps based on DeviceDiscoverySupport
1120 Group: Development/KDE and Qt
1121 Requires(pre): %{name}-common = %{version}
1122 Requires: %{name}-common-devel = %{version}-%{release}
1123 Provides: libqtdevicediscoverysupport6-devel = %{version}
1124 Provides: libqt6devicediscoverysupport-devel = %{version}
1125 Provides: qtdevicediscoverysupport6-devel = %{version}
1126 Provides: qt6devicediscoverysupport-devel = %{version}
1127
1128 %description -n %{libqtdevicediscoverysupport_d}
1129 Devel files needed to build apps based on QtDeviceDiscoverySupport.
1130
1131 %files -n %{libqtdevicediscoverysupport_d}
1132 %{_qt6_libdir}/libQt6DeviceDiscoverySupport.a
1133 %{_qt6_libdir}/libQt6DeviceDiscoverySupport.prl
1134 %{_qt6_libdir}/cmake/Qt6DeviceDiscoverySupport/
1135 %{_qt6_includedir}/QtDeviceDiscoverySupport/
1136 %{_qt6_datadir}/modules/DeviceDiscoverySupport.json
1137
1138 #------------------------------------------------------------------------------
1139
1140 %package -n %{libqtfbsupport_d}
1141 Summary: Devel files needed to build apps based on FbSupport
1142 Group: Development/KDE and Qt
1143 Requires(pre): %{name}-common = %{version}
1144 Requires: %{name}-common-devel = %{version}-%{release}
1145 Provides: libqtfbsupport6-devel = %{version}
1146 Provides: libqt6fbsupport-devel = %{version}
1147 Provides: qtfbsupport6-devel = %{version}
1148 Provides: qt6fbsupport-devel = %{version}
1149
1150 %description -n %{libqtfbsupport_d}
1151 Devel files needed to build apps based on QtFbSupport.
1152
1153 %files -n %{libqtfbsupport_d}
1154 %{_qt6_libdir}/libQt6FbSupport.a
1155 %{_qt6_libdir}/libQt6FbSupport.prl
1156 %{_qt6_libdir}/cmake/Qt6FbSupport/
1157 %{_qt6_includedir}/QtFbSupport/
1158 %{_qt6_datadir}/modules/FbSupport.json
1159
1160 #------------------------------------------------------------------------------
1161
1162 %package -n %{libqtinputsupport_d}
1163 Summary: Devel files needed to build apps based on InputSupport
1164 Group: Development/KDE and Qt
1165 Requires(pre): %{name}-common = %{version}
1166 Requires: %{name}-common-devel = %{version}-%{release}
1167 Provides: libqtinputsupport6-devel = %{version}
1168 Provides: libqt6inputsupport-devel = %{version}
1169 Provides: qtinputsupport6-devel = %{version}
1170 Provides: qt6inputsupport-devel = %{version}
1171
1172 %description -n %{libqtinputsupport_d}
1173 Devel files needed to build apps based on QtInputSupport.
1174
1175 %files -n %{libqtinputsupport_d}
1176 %{_qt6_libdir}/libQt6InputSupport.a
1177 %{_qt6_libdir}/libQt6InputSupport.prl
1178 %{_qt6_libdir}/cmake/Qt6InputSupport/
1179 %{_qt6_includedir}/QtInputSupport/
1180 %{_qt6_datadir}/modules/InputSupport.json
1181
1182 #------------------------------------------------------------------------------
1183
1184 %package -n %{libqtkmssupport_d}
1185 Summary: Devel files needed to build apps based on KmsSupport
1186 Group: Development/KDE and Qt
1187 Requires(pre): %{name}-common = %{version}
1188 Requires: %{name}-common-devel = %{version}-%{release}
1189 Provides: libqtkmssupport6-devel = %{version}
1190 Provides: libqt6kmssupport-devel = %{version}
1191 Provides: qtkmssupport6-devel = %{version}
1192 Provides: qt6kmssupport-devel = %{version}
1193
1194 %description -n %{libqtkmssupport_d}
1195 Devel files needed to build apps based on QtKmsSupport.
1196
1197 %files -n %{libqtkmssupport_d}
1198 %{_qt6_libdir}/libQt6KmsSupport.a
1199 %{_qt6_libdir}/libQt6KmsSupport.prl
1200 %{_qt6_libdir}/cmake/Qt6KmsSupport/
1201 %{_qt6_includedir}/QtKmsSupport/
1202 %{_qt6_datadir}/modules/KmsSupport.json
1203
1204 #------------------------------------------------------------------------------
1205 # DATABASE PLUGINS
1206 #------------------------------------------------------------------------------
1207
1208 %if ! %without odbc
1209
1210 %package -n %{_lib}qt6-database-plugin-odbc
1211 Summary: Qt%{qtmajor} Database ODBC Database Plugin
1212 Group: Databases
1213 BuildRequires: unixODBC-devel
1214
1215 Provides: qt6-database-plugin-odbc = %{version}-%{release}
1216 Provides: qtbase6-database-plugin-odbc = %{version}-%{release}
1217
1218 %description -n %{_lib}qt6-database-plugin-odbc
1219 The QODBC driver allows you to connect to an ODBC (Open Database
1220 Connectivity) driver manager and access the available data sources.
1221
1222 %files -n %{_lib}qt6-database-plugin-odbc
1223 %{_qt6_plugindir}/sqldrivers/libqsqlodbc.so
1224
1225 %endif
1226
1227 #------------------------------------------------------------------------------
1228
1229 %if ! %without mysql
1230
1231 %package -n %{_lib}qt6-database-plugin-mysql
1232 Summary: Qt%{qtmajor} MYSQL Database Plugin
1233 Group: Databases
1234 BuildRequires: mysql-devel
1235
1236 Provides: qt6-database-plugin-mysql = %{version}-%{release}
1237 Provides: qtbase6-database-plugin-mysql = %{version}-%{release}
1238
1239 %description -n %{_lib}qt6-database-plugin-mysql
1240 Database plugin for mysql Qt support.
1241
1242 %files -n %{_lib}qt6-database-plugin-mysql
1243 %{_qt6_plugindir}/sqldrivers/libqsqlmysql.so
1244
1245 %endif
1246
1247 #------------------------------------------------------------------------------
1248
1249 %if ! %without sqlite
1250
1251 %package -n %{_lib}qt6-database-plugin-sqlite
1252 Summary: Qt%{qtmajor} SQLITE Database Plugin
1253 Group: Databases
1254 BuildRequires: pkgconfig(sqlite3)
1255
1256 Provides: qt6-database-plugin-sqlite = %{version}-%{release}
1257 Provides: qtbase6-database-plugin-sqlite = %{version}-%{release}
1258
1259 %description -n %{_lib}qt6-database-plugin-sqlite
1260 The Qt SQLite plugin makes it possible to access SQLite databases.
1261
1262 %files -n %{_lib}qt6-database-plugin-sqlite
1263 %{_qt6_plugindir}/sqldrivers/libqsqlite.so
1264 %endif
1265
1266 #------------------------------------------------------------------------------
1267
1268 %if ! %without tds
1269
1270 %package -n %{_lib}qt6-database-plugin-tds
1271 Summary: Qt%{qtmajor} FREETDS Database Plugin
1272 Group: Databases
1273 BuildRequires: freetds-devel
1274
1275 Provides: qt6-database-plugin-tds = %{version}-%{release}
1276 Provides: qtbase6-database-plugin-tds = %{version}-%{release}
1277
1278 %description -n %{_lib}qt6-database-plugin-tds
1279 Database plugin for freetds Qt support.
1280
1281 %files -n %{_lib}qt6-database-plugin-tds
1282 %{_qt6_plugindir}/sqldrivers/libqsqltds.so
1283
1284 %endif
1285
1286 #------------------------------------------------------------------------------
1287
1288 %if ! %without ibase
1289
1290 %package -n %{_lib}qt6-database-plugin-ibase
1291 Summary: Qt%{qtmajor} Interbase Database Plugin
1292 Group: Databases
1293 BuildRequires: firebird-devel
1294 BuildRequires: pkgconfig(fbclient)
1295
1296 Provides: qt6-database-plugin-ibase = %{version}-%{release}
1297 Provides: qtbase6-database-plugin-ibase = %{version}-%{release}
1298
1299 %description -n %{_lib}qt6-database-plugin-ibase
1300 Database plugin for interbase Qt support.
1301
1302 %files -n %{_lib}qt6-database-plugin-ibase
1303 %{_qt6_plugindir}/sqldrivers/libqsqlibase.so
1304
1305 %endif
1306
1307 #------------------------------------------------------------------------------
1308
1309 %if ! %without postgres
1310
1311 %package -n %{_lib}qt6-database-plugin-pgsql
1312 Summary: Qt%{qtmajor} PGSQL Database Plugin
1313 Group: Databases
1314 BuildRequires: postgresql-devel
1315 BuildRequires: libpq-devel
1316
1317 Provides: qt6-database-plugin-pgsql = %{version}-%{release}
1318 Provides: qtbase6-database-plugin-pgsql = %{version}-%{release}
1319
1320 %description -n %{_lib}qt6-database-plugin-pgsql
1321 Database plugin for pgsql Qt support.
1322
1323 %files -n %{_lib}qt6-database-plugin-pgsql
1324 %{_qt6_plugindir}/sqldrivers/libqsqlpsql.so
1325
1326 %endif
1327
1328 #------------------------------------------------------------------------------
1329
1330 %prep
1331 %setup -q -n qtbase-everywhere-src-%{qtversion}
1332 %autopatch -p1
1333 # Unlike Fedora, we don't modify the installed mkspecs to contain our flags,
1334 # which would have the side effect that plain 'qmake' would use them as well
1335 # (i.e. even when not building an rpm), which is not really wanted. Our
1336 # packages are built with %%qmake_qt6 (qt6.macros) which already overrides the
1337 # flags, so altering qmake default configuration for that is unnecessary.
1338 # Since the Qt configure script doesn't support defining custom flags, we
1339 # still have to temporarily override the flags below - they are restored in
1340 # %%install. -Anssi
1341 cp mkspecs/linux-g++/qmake.conf mkspecs/linux-g++/qmake.conf.upstream
1342 cat >> mkspecs/linux-g++/qmake.conf <<EOF
1343 QMAKE_CFLAGS = %{optflags}
1344 QMAKE_CXXFLAGS = %{optflags}
1345 QMAKE_LFLAGS = %{ldflags}
1346 QMAKE_STRIP =
1347 # Note that setting QMAKE_LFLAGS_PLUGIN here would do no good, as it would
1348 # just get appended to $QMAKE_LFLAGS instead of replacing it.
1349 EOF
1350
1351 sed -e "s|^QMAKE_CFLAGS_RELEASE .*$|QMAKE_CFLAGS_RELEASE += %{optflags} -fno-strict-aliasing -DPIC -fPIC| " -e 's|^QMAKE_CXXFLAGS .*|& -std=gnu++0x|' -i mkspecs/common/gcc-base.conf mkspecs/common/gcc-base-unix.conf
1352
1353 sed -i 's|libmd4c|md4c|' src/gui/CMakeLists.txt
1354
1355 %build
1356 export QTDIR=`/bin/pwd`
1357 export PATH="$PWD/bin:$PWD/qtrepotools/bin:$PATH"
1358 # Don't include headers or link with /usr/X11R6/{include,lib}
1359 perl -pi -e 's@/X11R6/@/@' mkspecs/linux-*/qmake.conf mkspecs/common/linux.conf
1360
1361 #------------------------------------------------------------------------------
1362
1363 ## FIXME/TODO:
1364 # * for %%ix86, add sse2 enabled builds for Qt6Gui, Qt6Core, Qt6Network, see also:
1365 # http://anonscm.debian.org/cgit/pkg-kde/qt/qtbase.git/tree/debian/rules (234-249)
1366
1367 # -no-pch: do not use pre compiled headers (in order to be able to rebuild the gui submodule)
1368 # -no-feature-relocatable is needed to support relocated prefix etc.,
1369 # see QTBUG-78948 and QTBUG-82589 (mga#26200)
1370
1371 %cmake_qt6 \
1372 -DQT_FEATURE_accessibility=ON \
1373 -DQT_FEATURE_fontconfig=ON \
1374 -DQT_FEATURE_glib=ON \
1375 -DQT_FEATURE_sse2=%{?no_sse2:OFF}%{!?no_sse2:ON} \
1376 -DQT_FEATURE_icu=ON \
1377 -DQT_FEATURE_enable_new_dtags=ON \
1378 -DQT_FEATURE_cups=%{?with_cups:ON}%{!?with_cups:OFF} \
1379 -DQT_FEATURE_journald=%{?with_journald:ON}%{!?with_journald:OFF} \
1380 -DQT_FEATURE_openssl_linked=ON \
1381 -DQT_FEATURE_separate_debug_info=OFF \
1382 -DQT_FEATURE_reduce_relocations=OFF \
1383 -DQT_FEATURE_relocatable=OFF \
1384 -DQT_FEATURE_system_jpeg=ON \
1385 -DQT_FEATURE_system_png=ON \
1386 -DQT_FEATURE_system_zlib=ON \
1387 -DQT_FEATURE_system_textmarkdownreader=ON \
1388 -DQT_FEATURE_dbus_linked=%{?with_dbus_linked:ON}%{!?with_dbus_linked:OFF} \
1389 -DQT_FEATURE_system_pcre2=%{?with_pcre:ON}%{!?with_pcre:OFF} \
1390 -DQT_FEATURE_system_sqlite=%{?with_sqlite:ON}%{!?with_sqlite:OFF} \
1391 -DQT_FEATURE_sql_odbc=%{?with_odbc:ON}%{!?with_odbc:OFF} \
1392 -DQT_FEATURE_sql_mysql=%{?with_mysql:ON}%{!?with_mysql:OFF} \
1393 -DQT_FEATURE_sql_psql=%{?with_postgres:ON}%{!?with_postgres:OFF} \
1394 -DQT_FEATURE_sql_sqlite=%{?with_sqlite:ON}%{!?with_sqlite:OFF} \
1395 -DQT_FEATURE_sql_tds=%{?with_tds:ON}%{!?with_tds:OFF} \
1396 -DQT_FEATURE_sql_ibase=%{?with_ibase:ON}%{!?with_ibase:OFF} \
1397 -DQT_FEATURE_use_gold_linker=%{?with_use_gold_linker:ON}%{!?with_use_gold_linker:OFF} \
1398 -DBUILD_SHARED_LIBS=ON \
1399 -DQT_BUILD_EXAMPLES=%{?with_examples:ON}%{!?with_examples:OFF} \
1400 -DQT_BUILD_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
1401 -DQT_QMAKE_TARGET_MKSPEC=%{platform}
1402
1403 RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
1404
1405 ################## Build of QtBase ########################################
1406
1407 %cmake_build -j $RPM_BUILD_NCPUS
1408
1409 ################## Build of Docs ########################################
1410 %if %{build_docs}
1411 # HACK to avoid multilib conflicts in noarch content
1412 # see also https://bugreports.qt-project.org/browse/QTBUG-42071
1413 QT_HASH_SEED=0; export QT_HASH_SEED
1414
1415 %__make docs
1416 %endif
1417
1418 %install
1419 %cmake_install
1420
1421 # create/own dirs
1422 mkdir -p %{buildroot}{%{_qt6_archdatadir}/mkspecs/modules,%{_qt6_importdir},%{_qt6_libexecdir},%{_qt6_plugindir}/{designer,iconengines,script,styles},%{_qt6_translationdir}}
1423 mkdir -p %{buildroot}%{_sysconfdir}/xdg/QtProject
1424
1425 # symlink files to {_bindir}, add -qt6 postfix to not conflict
1426 mkdir %{buildroot}%{_bindir}
1427 pushd %{buildroot}%{_qt6_bindir}
1428 for i in * ; do
1429 case "${i}" in
1430 qdbuscpp2xml|qdbusxml2cpp)
1431 ln -v ${i} %{buildroot}%{_bindir}/${i}-qt6
1432 ;;
1433 *)
1434 ln -v ${i} %{buildroot}%{_bindir}/${i}
1435 ;;
1436 esac
1437 done
1438 popd
1439
1440 # hardlink files to {_bindir}, add -qt6 postfix to not conflict
1441 pushd %{buildroot}%{_qt6_libdir}
1442 for i in * ; do
1443 case "${i}" in
1444 moc|qlalr|qvkgen|qmake|rcc|tracegen|uic)
1445 ln -v ${i} %{buildroot}%{_libdir}/${i}-qt6
1446 ;;
1447 esac
1448 done
1449 popd
1450
1451 %if %{build_docs}
1452 %make_install install_docs INSTALL_ROOT=%{buildroot}
1453 %endif
1454
1455 install -m644 -p -D %{SOURCE1} %{buildroot}%{_qt6_datadir}/qtlogging.ini
1456
1457 install -d %{buildroot}%{_qt6_docdir}
1458 install -d %{buildroot}%{_sysconfdir}
1459 install -d %{buildroot}%{_sysconfdir}/profile.d
1460
1461 # Fix mkspec link
1462 pushd %{buildroot}%{_qt6_archdatadir}/mkspecs
1463 rm -f default
1464 ln -sf %{_qt6_archdatadir}/mkspecs/linux-g++ default
1465 popd
1466
1467 # Restore qmake.conf to the upstream version which was backed up in %%prep
1468 mv %{buildroot}%{_qt6_archdatadir}/mkspecs/linux-g++/qmake.conf.upstream %{buildroot}%{_qt6_archdatadir}/mkspecs/linux-g++/qmake.conf
1469
1470 # Fix all buildroot paths
1471 find %{buildroot}%{_qt6_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L%{_builddir}/\S+,,g" {} \;
1472 find %{buildroot}%{_qt6_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
1473 find %{buildroot}%{_qt6_libdir} -type f -name '*la' -print -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;
1474 find %{buildroot}%{_qt6_libdir} -type f -name '*la' -print -exec sed -i -e "s, -L%{_builddir}/?\S+,,g" -e "s,-L../JavaScriptCore/release,,g" -e "s,-ljscore,,g" {} \;
1475 find %{buildroot}%{_qt6_archdatadir}/mkspecs -name 'qmake.conf' -exec chmod -x -- {} \;
1476 find %{buildroot}%{_qt6_archdatadir}/mkspecs -name Info.plist.app -exec chmod -x -- {} \;
1477
1478 # Install rpm macros
1479 #mkdir -p %%{buildroot}%%{_sysconfdir}/rpm/macros.d
1480 #install -m 0644 %%{SOURCE2} %%{buildroot}%%{_sysconfdir}/rpm/macros.d
1481
1482 # Profiles
1483 cat > %{buildroot}%{_sysconfdir}/profile.d/60qt6.sh << EOF
1484 #!/bin/bash
1485 QTDIR6="%{_qt6_archdatadir}" ; export QTDIR6 ;
1486
1487 [ -z \$QT6DOCDIR ] && export QT6DOCDIR=%{_qt6_docdir}
1488
1489 if [ -z \$(echo \$PATH | grep "%{_qt6_bindir}") ]; then
1490 PATH=\${PATH}:%{_qt6_bindir}
1491 export PATH
1492 fi
1493 EOF
1494
1495 cat > %{buildroot}%{_sysconfdir}/profile.d/60qt6.csh << EOF
1496 #!/bin/csh
1497 setenv QTDIR6 %{_qt6_archdatadir}
1498 if ( ! \$?QT6DOCDIR ) setenv QT6DOCDIR %{_qt6_docdir}
1499 set path = (\$path \$QTDIR6/bin)
1500
1501 EOF
1502
1503 # Taken from OpenSUSE
1504 # syncqt is installed in both %%_qt6_bindir and %%_qt6_libdir
1505 # QtSyncQtHelpers.cmake needs the libexec one...and qmake the other one.
1506 # Creating a symlink is not necessary
1507 ln -s %{_libdir}/syncqt.pl %{buildroot}%{_qt6_bindir}/syncqt.pl
1508
1509 rm %{buildroot}%{_bindir}/qt-cmake-private-install.cmake
1510
1511 # Use better location for some new scripts in qtbase-6.0.1
1512 mv %{buildroot}%{_qt6_libdir}/android_emulator_launcher.sh %{buildroot}%{_qt6_bindir}/android_emulator_launcher.sh
1513 mv %{buildroot}%{_qt6_libdir}/ensure_pro_file.cmake %{buildroot}%{_qt6_libdir}/cmake/Qt6/ensure_pro_file.cmake
1514
1515 # Thanks OpenSuse
1516 # Static library created by an example
1517 rm %{buildroot}%{_libdir}/libpnp_basictools.a
1518
1519
1520 # .la and .a files, die, die, die.
1521 rm -f %{buildroot}%{_qt6_libdir}/lib*.la
1522 # .a files are needed by qttools6
1523 #rm -f %%{buildroot}%%{_qt6_libdir}/lib*.a

  ViewVC Help
Powered by ViewVC 1.1.30