/[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 1756245 - (show annotations) (download)
Sun Nov 14 09:21:15 2021 UTC (2 years, 4 months ago) by neoclust
Original Path: cauldron/qtbase6/current/SPECS/qtbase6.spec
File size: 55240 byte(s)
New version 6.2.1
1 # Build configuration
2
3 %define build_bootstrap 0
4 %{?_with_bootstrap: %{expand: %%global build_bootstrap 1}}
5
6
7 %ifarch aarch64 armv7hl
8 %global no_sse2 1
9 %endif
10
11 %if 0%{?build_bootstrap}
12 %define build_docs 0
13 %else
14 %define build_docs 0
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 2
46 %define qtsubminor 1
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 qt%{qtmajor}base %qtmajor
62 %define libqtdevel %mklibname qt%{qtmajor}base %qtmajor -d
63
64 %define libqtcore %mklibname qt%{qtmajor}core %qtmajor
65 %define libqtcore_d %mklibname qt%{qtmajor}core -d
66
67 %define libqtconcurrent %mklibname qt%{qtmajor}concurrent %qtmajor
68 %define libqtconcurrent_d %mklibname qt%{qtmajor}concurrent -d
69
70 %define libqteglfskmsgbmsupport %mklibname qt%{qtmajor}eglfskmsgbmsupport %qtmajor
71 %define libqteglfskmsgbmsupport_d %mklibname qt%{qtmajor}eglfskmsgbmsupport -d
72
73 %define libqtdbus %mklibname qt%{qtmajor}dbus %qtmajor
74 %define libqtdbus_d %mklibname qt%{qtmajor}dbus -d
75
76 %define libqteglfsdeviceintegration %mklibname qt%{qtmajor}eglfsdeviceintegration %qtmajor
77 %define libqteglfsdeviceintegration_d %mklibname qt%{qtmajor}eglfsdeviceintegration -d
78
79 %define libqteglfskmssupport %mklibname qt%{qtmajor}eglfskmssupport %qtmajor
80 %define libqteglfskmssupport_d %mklibname qt%{qtmajor}eglfskmssupport -d
81
82 %define libqtgui %mklibname qt%{qtmajor}gui %qtmajor
83 %define libqtgui_d %mklibname qt%{qtmajor}gui -d
84
85 %define libqtnetwork %mklibname qt%{qtmajor}network %qtmajor
86 %define libqtnetwork_d %mklibname qt%{qtmajor}network -d
87
88 %define libqtopengl %mklibname qt%{qtmajor}opengl %qtmajor
89 %define libqtopengl_d %mklibname qt%{qtmajor}opengl -d
90
91 %define libqtopenglwidgets %mklibname qt%{qtmajor}openglwidgets %qtmajor
92 %define libqtopenglwidgets_d %mklibname qt%{qtmajor}openglwidgets -d
93
94 %define libqtprintsupport %mklibname qt%{qtmajor}printsupport %qtmajor
95 %define libqtprintsupport_d %mklibname qt%{qtmajor}printsupport -d
96
97 %define libqtsql %mklibname qt%{qtmajor}sql %qtmajor
98 %define libqtsql_d %mklibname qt%{qtmajor}sql -d
99
100 %define libqttest %mklibname qt%{qtmajor}test %qtmajor
101 %define libqttest_d %mklibname qt%{qtmajor}test -d
102
103 %define libqtwidgets %mklibname qt%{qtmajor}widgets %qtmajor
104 %define libqtwidgets_d %mklibname qt%{qtmajor}widgets -d
105
106 %define libqtxcbqpa %mklibname qt%{qtmajor}xcbqpa %qtmajor
107 %define libqtxcbqpa_d %mklibname qt%{qtmajor}xcbqpa -d
108
109 %define libqtxml %mklibname qt%{qtmajor}xml %qtmajor
110 %define libqtxml_d %mklibname qt%{qtmajor}xml -d
111
112 %define libqtdevicediscoverysupport_d %mklibname qt%{qtmajor}devicediscoverysupport -d -s
113 %define libqtfbsupport_d %mklibname qt%{qtmajor}fbsupport -d -s
114 %define libqtinputsupport_d %mklibname qt%{qtmajor}inputsupport -d -s
115 %define libqtkmssupport_d %mklibname qt%{qtmajor}kmssupport -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}/printsupport/
290 %{_qt6_plugindir}/xcbglintegrations/
291 %{_qt6_plugindir}/networkinformation/
292 %{_qt6_plugindir}/tls/
293
294 #-------------------------------------------------------------------
295
296 %package -n %{name}-common-devel
297 Summary: Development files for the Qt%{qtmajor} GUI toolkit
298 Group: Development/KDE and Qt
299 Requires(pre): %{name}-common = %{version}
300 Requires: qt6-macros
301 Provides: qmake = %{version}-%{release}
302 Provides: qmake-qt6 = %{version}-%{release}
303 Provides: qt%{qtmajor}-qtbase = %{version}-%{release}
304
305 %description -n %{name}-common-devel
306 Common files needed to build application based on Qt%{qtmajor}.
307
308 %post -n %{name}-common-devel
309 update-alternatives --install %{_bindir}/qmake qmake %{_qt6_bindir}/qmake 30
310
311 %postun -n %{name}-common-devel
312 if ! [ -e %{_qt6_bindir}/qmake ]; then
313 update-alternatives --remove qmake %{_qt6_bindir}/qmake
314 fi
315
316 %files -n %{name}-common-devel
317 #{_sysconfdir}/rpm/macros.d/qt6.macros
318 %{_bindir}/androiddeployqt
319 %{_bindir}/androidtestrunner
320 %{_bindir}/qdbuscpp2xml*
321 %{_bindir}/qdbusxml2cpp*
322 %{_bindir}/qmake*
323 %{_bindir}/qt-cmake
324 %{_bindir}/qt-cmake-private
325 %{_bindir}/qt-cmake-standalone-test
326 %{_bindir}/qt-configure-module
327 %{_qt6_bindir}/qmake*
328 %{_qt6_bindir}/android_emulator_launcher.sh
329 %{_qt6_bindir}/androiddeployqt
330 %{_qt6_bindir}/androidtestrunner
331 %{_qt6_bindir}/qdbuscpp2xml
332 %{_qt6_bindir}/qdbusxml2cpp
333 %{_qt6_bindir}/qt-cmake
334 %{_qt6_bindir}/qt-cmake-private
335 %{_qt6_bindir}/qt-cmake-private-install.cmake
336 %{_qt6_bindir}/qt-cmake-standalone-test
337 %{_qt6_bindir}/qt-configure-module
338 %{_qt6_libdir}/cmake_automoc_parser
339 %{_qt6_libdir}/moc*
340 %{_qt6_libdir}/qt-internal-configure-tests
341 %{_qt6_libdir}/qvkgen*
342 %{_qt6_libdir}/qlalr*
343 %{_qt6_libdir}/rcc*
344 %{_qt6_libdir}/tracegen*
345 %{_qt6_libdir}/uic*
346 %{_qt6_libdir}/syncqt.pl
347 %{_qt6_archdatadir}/mkspecs/
348 %dir %{_qt6_libdir}/cmake
349 %dir %{_qt6_libdir}/metatypes
350 %if "%{_qt6_includedir}" != "%{_includedir}"
351 %dir %{_qt6_includedir}
352 %endif
353 %{_qt6_libdir}/cmake/Qt6/
354 %{_qt6_libdir}/cmake/Qt6BuildInternals/
355 %{_qt6_libdir}/cmake/Qt6HostInfo/
356
357 #------------------------------------------------------------------------------
358
359 %package qtpaths
360 Summary: Qt%{qtmajor} Paths Binary
361 Group: Development/KDE and Qt
362
363 %description qtpaths
364 Qt%{qtmajor} Paths Binary.
365
366 %files qtpaths
367 %{_qt6_bindir}/qtpaths*
368 %{_bindir}/qtpaths*
369
370 #------------------------------------------------------------------------------
371
372 %package examples
373 Summary: Example programs made with Qt%{qtmajor}
374 Group: Documentation
375 Provides: qt6-examples = %{version}-%{release}
376
377 %description examples
378 Example programs made with Qt%{qtmajor}.
379
380 %files examples
381 %{_qt6_examplesdir}/*
382
383 #------------------------------------------------------------------------------
384
385 %if 0%{?build_docs}
386 %package doc
387 Summary: QtBase%{qtmajor} APIs and tools docs
388 Group: Documentation
389 BuildArch: noarch
390 BuildRequires: qttools6
391 # This one is required to build QCH-format documentation
392 # for APIs and tools in this package set
393 BuildRequires: qttools6-assistant
394 Recommends: qttools6-assistant
395
396 %description doc
397 Documentation for APIs and tools in QtBase%{qtmajor} package for use with
398 Qt Assistant.
399
400 %files doc
401 %{_qt6_docdir}/*.qch
402 %{_qt6_docdir}/qmake/
403 %{_qt6_docdir}/qtconcurrent/
404 %{_qt6_docdir}/qtcore/
405 %{_qt6_docdir}/qtdbus/
406 %{_qt6_docdir}/qtgui/
407 %{_qt6_docdir}/qtnetwork/
408 %{_qt6_docdir}/qtopengl/
409 %{_qt6_docdir}/qtplatformheaders/
410 %{_qt6_docdir}/qtprintsupport/
411 %{_qt6_docdir}/qtsql/
412 %{_qt6_docdir}/qttestlib/
413 %{_qt6_docdir}/qtwidgets/
414 %{_qt6_docdir}/qtxml/
415 %endif
416
417 #------------------------------------------------------------------------------
418 # CORE QT LIBRARIES
419 #------------------------------------------------------------------------------
420
421 %package -n %{libqtcore}
422 Summary: Qt%{qtmajor} Core Library
423 Group: System/Libraries
424 Requires(pre): %{name}-common = %{version}
425
426 %description -n %{libqtcore}
427 Qt%{qtmajor} Core Component Library.
428
429 The QtCore module contains core non-GUI functionality.
430
431 %files -n %{libqtcore}
432 %{_qt6_libdir}/libQt6Core.so.%{qtmajor}{,.*}
433
434 #------------------------------------------------------------------------------
435
436 %package -n %{libqtcore_d}
437 Summary: Devel files needed to build apps based on QtCore
438 Group: Development/KDE and Qt
439 Requires(pre): %{name}-common = %{version}
440 Requires: %{name}-common-devel = %{version}-%{release}
441 Requires: %{libqtcore} = %{version}
442 Provides: libqtcore6-devel = %{version}
443 Provides: libqt6core-devel = %{version}
444 Provides: qt6core-devel = %{version}
445 Provides: qtcore6-devel = %{version}
446
447 Provides: qt6core-private-devel = %{version}
448 Provides: qtcore6-private-devel = %{version}
449
450 %description -n %{libqtcore_d}
451 Devel files needed to build apps based on QtCore.
452
453 %files -n %{libqtcore_d}
454 %{_qt6_libdir}/libQt6Core.prl
455 %{_qt6_libdir}/libQt6Core.so
456 %{_qt6_libdir}/cmake/Qt6Core/
457 %{_qt6_libdir}/cmake/Qt6/Qt6Config.cmake
458 %{_qt6_libdir}/cmake/Qt6/Qt6ConfigVersion.cmake
459 %{_qt6_includedir}/QtCore/
460 %{_qt6_libdir}/metatypes/qt6core_relwithdebinfo_metatypes.json
461 %{_qt6_libdir}/cmake/Qt6CoreTools/
462 %{_qt6_datadir}/modules/Core.json
463
464 #------------------------------------------------------------------------------
465
466 %package -n %{libqtconcurrent}
467 Summary: Qt%{qtmajor} Concurrent Library
468 Group: System/Libraries
469 Requires(pre): %{name}-common = %{version}
470
471 %description -n %{libqtconcurrent}
472 Qt%{qtmajor} Concurrent Component Library.
473
474 %files -n %{libqtconcurrent}
475 %{_qt6_libdir}/libQt6Concurrent.so.%{qtmajor}{,.*}
476
477 #------------------------------------------------------------------------------
478
479 %package -n %{libqtconcurrent_d}
480 Summary: Devel files needed to build apps based on QtConcurrent
481 Group: Development/KDE and Qt
482 Requires(pre): %{name}-common = %{version}
483 Requires: %{name}-common-devel = %{version}-%{release}
484 Requires: %{libqtconcurrent} = %{version}
485 Provides: libqtconcurrent6-devel = %{version}
486 Provides: libqt6concurrent-devel = %{version}
487 Provides: qt6concurrent-devel = %{version}
488 Provides: qtconcurrent6-devel = %{version}
489
490 %description -n %{libqtconcurrent_d}
491 Devel files needed to build apps based on QtConcurrent.
492
493 %files -n %{libqtconcurrent_d}
494 %{_qt6_libdir}/libQt6Concurrent.so
495 %{_qt6_libdir}/libQt6Concurrent.prl
496 %{_qt6_includedir}/QtConcurrent/
497 %{_qt6_libdir}/cmake/Qt6Concurrent/
498 %{_qt6_datadir}/modules/Concurrent.json
499 %{_qt6_libdir}/metatypes/qt6concurrent_relwithdebinfo_metatypes.json
500
501 #------------------------------------------------------------------------------
502
503 %package -n %{libqteglfskmsgbmsupport}
504 Summary: Qt%{qtmajor} EglFsKmsGbmSupport Library
505 Group: System/Libraries
506 Requires(pre): %{name}-common = %{version}
507
508 %description -n %{libqteglfskmsgbmsupport}
509 Qt%{qtmajor} EglFsKmsGbmSupport Component Library.
510
511 %files -n %{libqteglfskmsgbmsupport}
512 %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.so.%{qtmajor}{,.*}
513
514 #------------------------------------------------------------------------------
515
516 %package -n %{libqteglfskmsgbmsupport_d}
517 Summary: Devel files needed to build apps based on QtConcurrent
518 Group: Development/KDE and Qt
519 Requires(pre): %{name}-common = %{version}
520 Requires: %{name}-common-devel = %{version}-%{release}
521 Requires: %{libqteglfskmsgbmsupport} = %{version}
522 Provides: libqteglfskmsgbmsupport6-devel = %{version}
523 Provides: libqt6eglfskmsgbmsupport-devel = %{version}
524 Provides: qt6eglfskmsgbmsupport-devel = %{version}
525 Provides: qteglfskmsgbmsupport6-devel = %{version}
526
527 %description -n %{libqteglfskmsgbmsupport_d}
528 Devel files needed to build apps based on QtConcurrent.
529
530 %files -n %{libqteglfskmsgbmsupport_d}
531 %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.so
532 %{_qt6_libdir}/libQt6EglFsKmsGbmSupport.prl
533 %{_qt6_includedir}/QtEglFsKmsGbmSupport/
534 %{_qt6_libdir}/cmake/Qt6EglFsKmsGbmSupportPrivate/
535 %{_qt6_datadir}/modules/EglFsKmsGbmSupportPrivate.json
536 %{_qt6_libdir}/metatypes/qt6eglfskmsgbmsupportprivate_relwithdebinfo_metatypes.json
537
538 #------------------------------------------------------------------------------
539
540 %package -n %{libqtdbus}
541 Summary: Qt%{qtmajor} DBus Library
542 Group: System/Libraries
543 Requires(pre): %{name}-common = %{version}
544
545 %description -n %{libqtdbus}
546 Qt%{qtmajor} DBus Component Library.
547
548 %files -n %{libqtdbus}
549 %{_qt6_libdir}/libQt6DBus.so.%{qtmajor}{,.*}
550
551 #------------------------------------------------------------------------------
552
553 %package -n %{libqtdbus_d}
554 Summary: Devel files needed to build apps based on QtDBus
555 Group: Development/KDE and Qt
556 Requires(pre): %{name}-common = %{version}
557 Requires: %{name}-common-devel = %{version}-%{release}
558 Requires: %{libqtdbus} = %{version}
559 Provides: libqtdbus6-devel = %{version}
560 Provides: libqt6dbus-devel = %{version}
561 Provides: qt6dbus-devel = %{version}
562 Provides: qtdbus6-devel = %{version}
563
564 Provides: qt6dbus-private-devel = %{version}
565 Provides: qtdbus6-private-devel = %{version}
566
567 %description -n %{libqtdbus_d}
568 Devel files needed to build apps based on QtDBus.
569
570 %files -n %{libqtdbus_d}
571 %{_qt6_libdir}/libQt6DBus.prl
572 %{_qt6_libdir}/libQt6DBus.so
573 %{_qt6_includedir}/QtDBus/
574 %{_qt6_libdir}/cmake/Qt6DBusTools/
575 %{_qt6_libdir}/cmake/Qt6DBus/
576 %{_qt6_datadir}/modules/DBus.json
577 %{_qt6_libdir}/metatypes/qt6dbus_relwithdebinfo_metatypes.json
578
579 #------------------------------------------------------------------------------
580
581 %package -n %{libqteglfsdeviceintegration}
582 Summary: Qt%{qtmajor} EglFSDeviceIntegrations Library
583 Group: System/Libraries
584 Requires(pre): %{name}-common = %{version}
585
586 %description -n %{libqteglfsdeviceintegration}
587 Qt%{qtmajor} EglFSDeviceIntegrations Component Library.
588
589 %files -n %{libqteglfsdeviceintegration}
590 %{_qt6_libdir}/libQt6EglFSDeviceIntegration.so.%{qtmajor}{,.*}
591
592 #------------------------------------------------------------------------------
593
594 %package -n %{libqteglfsdeviceintegration_d}
595 Summary: Devel files needed to build apps based on EglFSDeviceIntegrations
596 Group: Development/KDE and Qt
597 Requires(pre): %{name}-common = %{version}
598 Requires: %{name}-common-devel = %{version}-%{release}
599 Requires: %{libqteglfsdeviceintegration} = %{version}
600 Provides: libqteglfsdeviceintegration6-devel = %{version}
601 Provides: libqt6eglfsdeviceintegration-devel = %{version}
602 Provides: qteglfsdeviceintegration6-devel = %{version}
603 Provides: qt6eglfsdeviceintegration-devel = %{version}
604
605 %description -n %{libqteglfsdeviceintegration_d}
606 Devel files needed to build apps based on QtEglFSDeviceIntegrations.
607
608 %files -n %{libqteglfsdeviceintegration_d}
609 %{_qt6_includedir}/QtEglFSDeviceIntegration/
610 %{_qt6_libdir}/libQt6EglFSDeviceIntegration.prl
611 %{_qt6_libdir}/libQt6EglFSDeviceIntegration.so
612 %{_qt6_libdir}/cmake/Qt6EglFSDeviceIntegrationPrivate/
613 %{_qt6_datadir}/modules/EglFSDeviceIntegrationPrivate.json
614 %{_qt6_libdir}/metatypes/qt6eglfsdeviceintegrationprivate_relwithdebinfo_metatypes.json
615
616 #------------------------------------------------------------------------------
617
618 %package -n %{libqteglfskmssupport}
619 Summary: Qt%{qtmajor} EglFsKmsSupport Library
620 Group: System/Libraries
621 Requires(pre): %{name}-common = %{version}
622
623 %description -n %{libqteglfskmssupport}
624 Qt%{qtmajor} EglFsKmsSupport Component Library.
625
626 %files -n %{libqteglfskmssupport}
627 %{_qt6_libdir}/libQt6EglFsKmsSupport.so.%{qtmajor}{,.*}
628
629 #------------------------------------------------------------------------------
630
631 %package -n %{libqteglfskmssupport_d}
632 Summary: Devel files needed to build apps based on EglFsKmsSupport
633 Group: Development/KDE and Qt
634 Requires(pre): %{name}-common = %{version}
635 Requires: %{name}-common-devel = %{version}-%{release}
636 Requires: %{libqteglfskmssupport} = %{version}
637 Provides: libqteglfskmssupport6-devel = %{version}
638 Provides: libqt6eglfskmssupport-devel = %{version}
639 Provides: qteglfskmssupport6-devel = %{version}
640 Provides: qt6eglfskmssupport-devel = %{version}
641
642 %description -n %{libqteglfskmssupport_d}
643 Devel files needed to build apps based on QtEglFsKmsSupport.
644
645 %files -n %{libqteglfskmssupport_d}
646 %{_qt6_libdir}/libQt6EglFsKmsSupport.prl
647 %{_qt6_libdir}/libQt6EglFsKmsSupport.so
648 %{_qt6_includedir}/QtEglFsKmsSupport/
649 %{_qt6_libdir}/cmake/Qt6EglFsKmsSupportPrivate/
650 %{_qt6_datadir}/modules/EglFsKmsSupportPrivate.json
651 %{_qt6_libdir}/metatypes/qt6eglfskmssupportprivate_relwithdebinfo_metatypes.json
652
653 #------------------------------------------------------------------------------
654
655 %package -n %{libqtgui}
656 Summary: Qt%{qtmajor} GUI Library
657 Group: System/Libraries
658 Requires(pre): %{name}-common = %{version}
659
660 %description -n %{libqtgui}
661 Qt%{qtmajor} GUI Component Library.
662
663 The QtGui module extends QtCore with GUI functionality.
664
665 %files -n %{libqtgui}
666 %{_qt6_libdir}/libQt6Gui.so.%{qtmajor}{,.*}
667
668 #------------------------------------------------------------------------------
669
670 %package -n %{libqtgui_d}
671 Summary: Devel files needed to build apps based on QtGui
672 Group: Development/KDE and Qt
673 Requires(pre): %{name}-common = %{version}
674 Requires: %{name}-common = %{version}-%{release}
675 Requires: %{name}-common-devel = %{version}-%{release}
676 #(nl) see : https://bugreports.qt-project.org/browse/QTBUG-39859
677 Requires: pkgconfig(egl)
678 Requires: pkgconfig(vulkan)
679 Requires: %{libqtgui} = %{version}
680 # referenced by Qt6Gui cmake files
681 Requires: %{libqtxcbqpa_d} = %{version}-%{release}
682 Requires: %{libqteglfsdeviceintegration_d} = %{version}-%{release}
683 %if ! 0%{?build_bootstrap}
684 Requires: qtwayland6
685 %endif
686
687 Provides: libqtgui6-devel = %{version}
688 Provides: libqt6gui-devel = %{version}
689 Provides: qtgui6-devel = %{version}
690 Provides: qt6gui-devel = %{version}
691
692 Provides: qtgui6-private-devel = %{version}
693 Provides: qt6gui-private-devel = %{version}
694
695 %description -n %{libqtgui_d}
696 Devel files needed to build apps based on QtGui.
697
698 %files -n %{libqtgui_d}
699 %{_qt6_libdir}/libQt6Gui.prl
700 %{_qt6_libdir}/libQt6Gui.so
701 %{_qt6_includedir}/QtGui/
702 %{_qt6_libdir}/metatypes/qt6gui_relwithdebinfo_metatypes.json
703 %{_qt6_libdir}/cmake/Qt6Gui/
704 %{_qt6_libdir}/cmake/Qt6GuiTools/
705 %{_qt6_datadir}/modules/Gui.json
706
707 #------------------------------------------------------------------------------
708
709 %package -n %{libqtnetwork}
710 Summary: Qt%{qtmajor} Network Library
711 Group: System/Libraries
712 Requires(pre): %{name}-common = %{version}
713
714 %description -n %{libqtnetwork}
715 Qt%{qtmajor} Network Component Library.
716
717 The QtNetwork module provides classes to make network programming easier
718 and portable.
719
720 %files -n %{libqtnetwork}
721 %{_qt6_libdir}/libQt6Network.so.%{qtmajor}{,.*}
722
723 #------------------------------------------------------------------------------
724
725 %package -n %{libqtnetwork_d}
726 Summary: Devel files needed to build apps based on QtNetwork
727 Group: Development/KDE and Qt
728 Requires(pre): %{name}-common = %{version}
729 Requires: %{name}-common-devel = %{version}-%{release}
730 Requires: %{libqtnetwork} = %{version}
731 Requires: pkgconfig(openssl) >= 1.1
732 Provides: libqtnetwork6-devel = %{version}
733 Provides: libqt6network-devel = %{version}
734 Provides: qtnetwork6-devel = %{version}
735 Provides: qt6network-devel = %{version}
736
737 Provides: qtnetwork6-private-devel = %{version}
738 Provides: qt6network-private-devel = %{version}
739
740 %description -n %{libqtnetwork_d}
741 Devel files needed to build apps based on QtNetwork.
742
743 %files -n %{libqtnetwork_d}
744 %{_qt6_libdir}/libQt6Network.prl
745 %{_qt6_libdir}/libQt6Network.so
746 %{_qt6_includedir}/QtNetwork/
747 %{_qt6_libdir}/cmake/Qt6Network/
748 %{_qt6_datadir}/modules/Network.json
749 %{_qt6_libdir}/metatypes/qt6network_relwithdebinfo_metatypes.json
750
751 #------------------------------------------------------------------------------
752
753 %package -n %{libqtopengl}
754 Summary: Qt%{qtmajor} OpenGL Library
755 Group: System/Libraries
756 Requires(pre): %{name}-common = %{version}
757
758 %description -n %{libqtopengl}
759 Qt%{qtmajor} OpenGL Component Library.
760
761 The QtOpenGL module offers classes that make it easy to use OpenGL in
762 Qt applications.
763
764 %files -n %{libqtopengl}
765 %{_qt6_libdir}/libQt6OpenGL.so.%{qtmajor}{,.*}
766
767 #------------------------------------------------------------------------------
768
769 %package -n %{libqtopengl_d}
770 Summary: Devel files needed to build apps based on QtOpenGL
771 Group: Development/KDE and Qt
772 Requires(pre): %{name}-common = %{version}
773 Requires: %{name}-common-devel = %{version}-%{release}
774 Requires: %{libqtopengl} = %{version}
775 Provides: libqtopengl6-devel = %{version}
776 Provides: libqt6opengl-devel = %{version}
777 Provides: qtopengl6-devel = %{version}
778 Provides: qt6opengl-devel = %{version}
779
780 Provides: qtopengl6-private-devel = %{version}
781 Provides: qt6opengl-private-devel = %{version}
782
783 %description -n %{libqtopengl_d}
784 Devel files needed to build apps based on QtOpenGL.
785
786 %files -n %{libqtopengl_d}
787 %{_qt6_libdir}/libQt6OpenGL.prl
788 %{_qt6_libdir}/libQt6OpenGL.so
789 %{_qt6_includedir}/QtOpenGL/
790 %{_qt6_datadir}/modules/OpenGL.json
791 %{_qt6_libdir}/cmake/Qt6OpenGL/
792 %{_qt6_libdir}/metatypes/qt6opengl_relwithdebinfo_metatypes.json
793
794 #------------------------------------------------------------------------------
795
796 %package -n %{libqtopenglwidgets}
797 Summary: Qt%{qtmajor} OpenGL Widgets Library
798 Group: System/Libraries
799 Requires(pre): %{name}-common = %{version}
800
801 %description -n %{libqtopenglwidgets}
802 Qt%{qtmajor} OpenGL Widgets Component Library.
803
804 The QtOpenGLWidgets module offers classes that make it easy to use
805 OpenGLWidgets in Qt applications.
806
807 %files -n %{libqtopenglwidgets}
808 %{_qt6_libdir}/libQt6OpenGLWidgets.so.%{qtmajor}{,.*}
809
810 #------------------------------------------------------------------------------
811
812 %package -n %{libqtopenglwidgets_d}
813 Summary: Devel files needed to build apps based on QtOpenGLWidgets
814 Group: Development/KDE and Qt
815 Requires(pre): %{name}-common = %{version}
816 Requires: %{name}-common-devel = %{version}-%{release}
817 Requires: %{libqtopenglwidgets} = %{version}
818 Provides: libqtopenglwidgets6-devel = %{version}
819 Provides: libqt6openglwidgets-devel = %{version}
820 Provides: qtopenglwidgets6-devel = %{version}
821 Provides: qt6openglwidgets-devel = %{version}
822
823 Provides: qtopenglwidgets6-private-devel = %{version}
824 Provides: qt6openglwidgets-private-devel = %{version}
825
826 %description -n %{libqtopenglwidgets_d}
827 Devel files needed to build apps based on QtOpenGLWidgets.
828
829 %files -n %{libqtopenglwidgets_d}
830 %{_qt6_includedir}/QtOpenGLWidgets/
831 %{_qt6_libdir}/libQt6OpenGLWidgets.prl
832 %{_qt6_libdir}/libQt6OpenGLWidgets.so
833 %{_qt6_datadir}/modules/OpenGLWidgets.json
834 %{_qt6_libdir}/cmake/Qt6OpenGLWidgets/
835 %{_qt6_libdir}/metatypes/qt6openglwidgets_relwithdebinfo_metatypes.json
836
837 #------------------------------------------------------------------------------
838
839 %package -n %{libqtprintsupport}
840 Summary: Qt%{qtmajor} PrintSupport Library
841 Group: System/Libraries
842 Requires(pre): %{name}-common = %{version}
843
844 %description -n %{libqtprintsupport}
845 Qt%{qtmajor} PrintSupport Component Library.
846
847 %files -n %{libqtprintsupport}
848 %{_qt6_libdir}/libQt6PrintSupport.so.%{qtmajor}{,.*}
849
850 #------------------------------------------------------------------------------
851
852 %package -n %{libqtprintsupport_d}
853 Summary: Devel files needed to build apps based on QtPrintSupport
854 Group: Development/KDE and Qt
855 Requires(pre): %{name}-common = %{version}
856 Requires: %{name}-common-devel = %{version}-%{release}
857 Requires: %{libqtprintsupport} = %{version}
858 Provides: libqtprintsupport6-devel = %{version}
859 Provides: libqt6printsupport-devel = %{version}
860 Provides: qtprintsupport6-devel = %{version}
861 Provides: qt6printsupport-devel = %{version}
862
863 Provides: qtprintsupport6-private-devel = %{version}
864 Provides: qt6printsupport-private-devel = %{version}
865
866 %description -n %{libqtprintsupport_d}
867 Devel files needed to build apps based on QtPrintSupport.
868
869 %files -n %{libqtprintsupport_d}
870 %{_qt6_libdir}/libQt6PrintSupport.so
871 %{_qt6_libdir}/libQt6PrintSupport.prl
872 %{_qt6_includedir}/QtPrintSupport/
873 %{_qt6_datadir}/modules/PrintSupport.json
874 %{_qt6_libdir}/cmake/Qt6PrintSupport/
875 %{_qt6_libdir}/metatypes/qt6printsupport_relwithdebinfo_metatypes.json
876
877 #------------------------------------------------------------------------------
878
879 %package -n %{libqtsql}
880 Summary: Qt%{qtmajor} SQL Library
881 Group: System/Libraries
882 Requires(pre): %{name}-common = %{version}
883 %if ! %without sqlite
884 Requires: %{_lib}qt6-database-plugin-sqlite = %{version}
885 %endif
886 %if ! %without ibase
887 Requires: %{_lib}qt6-database-plugin-ibase = %{version}
888 %endif
889
890 %description -n %{libqtsql}
891 Qt%{qtmajor} SQL Component Library.
892
893 %files -n %{libqtsql}
894 %{_qt6_libdir}/libQt6Sql.so.%{qtmajor}{,.*}
895
896 #------------------------------------------------------------------------------
897
898 %package -n %{libqtsql_d}
899 Summary: Devel files needed to build apps based on QtSql
900 Group: Development/KDE and Qt
901 Requires(pre): %{name}-common = %{version}
902 Requires: %{name}-common-devel = %{version}-%{release}
903 Requires: %{libqtsql} = %{version}
904 %if ! %without odbc
905 Requires: qtbase6-database-plugin-odbc
906 %endif
907 %if ! %without tds
908 Requires: qtbase6-database-plugin-tds
909 %endif
910 %if ! %without mysql
911 Requires: qtbase6-database-plugin-mysql
912 %endif
913 %if ! %without postgres
914 Requires: qtbase6-database-plugin-pgsql
915 %endif
916 %if ! %without sqlite
917 Requires: qtbase6-database-plugin-sqlite
918 %endif
919 %if ! %without ibase
920 Requires: qtbase6-database-plugin-ibase
921 %endif
922 Provides: libqtsql6-devel = %{version}
923 Provides: libqt6sql-devel = %{version}
924 Provides: qt6sql-devel = %{version}
925 Provides: qtsql6-devel = %{version}
926
927 Provides: libqtsql6-private-devel = %{version}
928 Provides: libqt6sql-private-devel = %{version}
929 Provides: qt6sql-private-devel = %{version}
930 Provides: qtsql6-private-devel = %{version}
931
932 %description -n %{libqtsql_d}
933 Devel files needed to build apps based on QtSql.
934
935 %files -n %{libqtsql_d}
936 %{_qt6_libdir}/libQt6Sql.prl
937 %{_qt6_libdir}/libQt6Sql.so
938 %{_qt6_includedir}/QtSql/
939 %{_qt6_datadir}/modules/Sql.json
940 %{_qt6_libdir}/cmake/Qt6Sql/
941 %{_qt6_libdir}/metatypes/qt6sql_relwithdebinfo_metatypes.json
942
943 #------------------------------------------------------------------------------
944
945 %package -n %{libqttest}
946 Summary: Qt%{qtmajor} Test Library
947 Group: System/Libraries
948 Requires(pre): %{name}-common = %{version}
949
950 %description -n %{libqttest}
951 Qt%{qtmajor} Test Component Library.
952
953 The QtTest module provides classes for unit testing Qt applications and
954 libraries.
955
956 %files -n %{libqttest}
957 %{_qt6_libdir}/libQt6Test.so.%{qtmajor}{,.*}
958
959 #------------------------------------------------------------------------------
960
961 %package -n %{libqttest_d}
962 Summary: Devel files needed to build apps based on QtTest
963 Group: Development/KDE and Qt
964 Requires(pre): %{name}-common = %{version}
965 Requires: %{name}-common-devel = %{version}-%{release}
966 Requires: %{libqttest} = %{version}
967 Provides: libqttest6-devel = %{version}
968 Provides: libqt6test-devel = %{version}
969 Provides: qttest6-devel = %{version}
970 Provides: qt6test-devel = %{version}
971
972 Provides: qttest6-private-devel = %{version}
973 Provides: qt6test-private-devel = %{version}
974
975 Requires: qtwidgets6-devel = %{version}-%{release}
976
977 %description -n %{libqttest_d}
978 Devel files needed to build apps based on QtTest.
979
980 %files -n %{libqttest_d}
981 %{_qt6_libdir}/libQt6Test.prl
982 %{_qt6_libdir}/libQt6Test.so
983 %{_qt6_includedir}/QtTest/
984 %{_qt6_datadir}/modules/Test.json
985 %{_qt6_libdir}/cmake/Qt6Test/
986 %{_qt6_libdir}/metatypes/qt6test_relwithdebinfo_metatypes.json
987
988 #------------------------------------------------------------------------------
989
990 %package -n %{libqtwidgets}
991 Summary: Qt%{qtmajor} Widgets Library
992 Group: System/Libraries
993 Requires(pre): %{name}-common = %{version}
994
995 %description -n %{libqtwidgets}
996 Qt%{qtmajor} Widgets Component Library.
997
998 %files -n %{libqtwidgets}
999 %{_qt6_libdir}/libQt6Widgets.so.%{qtmajor}{,.*}
1000
1001 #------------------------------------------------------------------------------
1002
1003 %package -n %{libqtwidgets_d}
1004 Summary: Devel files needed to build apps based on QtWidgets
1005 Group: Development/KDE and Qt
1006 Requires(pre): %{name}-common = %{version}
1007 Requires: %{name}-common-devel = %{version}-%{release}
1008 Requires: %{libqtwidgets} = %{version}
1009 Provides: libqtwidgets6-devel = %{version}
1010 Provides: libqt6widgets-devel = %{version}
1011 Provides: qtwidgets6-devel = %{version}
1012 Provides: qt6widgets-devel = %{version}
1013
1014 Provides: qtwidgets6-private-devel = %{version}
1015 Provides: qt6widgets-private-devel = %{version}
1016
1017 %description -n %{libqtwidgets_d}
1018 Devel files needed to build apps based on QtWidgets.
1019
1020 %files -n %{libqtwidgets_d}
1021 %{_qt6_libdir}/libQt6Widgets.so
1022 %{_qt6_libdir}/libQt6Widgets.prl
1023 %{_qt6_libdir}/cmake/Qt6Widgets/
1024 %{_qt6_includedir}/QtWidgets/
1025 %{_qt6_libdir}/cmake/Qt6WidgetsTools/
1026 %{_qt6_libdir}/metatypes/qt6widgets_relwithdebinfo_metatypes.json
1027 %{_qt6_datadir}/modules/Widgets.json
1028
1029 #------------------------------------------------------------------------------
1030
1031 %package -n %{libqtxcbqpa}
1032 Summary: Qt%{qtmajor} XcbQpa Library
1033 Group: System/Libraries
1034 Requires(pre): %{name}-common = %{version}
1035
1036 %description -n %{libqtxcbqpa}
1037 Qt%{qtmajor} XcbQpa Component Library.
1038
1039 %files -n %{libqtxcbqpa}
1040 %{_qt6_libdir}/libQt6XcbQpa.so.%{qtmajor}{,.*}
1041
1042 #------------------------------------------------------------------------------
1043
1044 %package -n %{libqtxcbqpa_d}
1045 Summary: Devel files needed to build apps based on QtXcbQpa
1046 Group: Development/KDE and Qt
1047 Requires(pre): %{name}-common = %{version}
1048 Requires: %{name}-common-devel = %{version}-%{release}
1049 Requires: %{libqtxcbqpa} = %{version}
1050 Provides: libqtxcbqpa6-devel = %{version}
1051 Provides: libqt6xcbqpa-devel = %{version}
1052 Provides: qtxcbqpa6-devel = %{version}
1053 Provides: qt6xcbqpa-devel = %{version}
1054
1055 %description -n %{libqtxcbqpa_d}
1056 Devel files needed to build apps based on QtXcbQpa.
1057
1058 %files -n %{libqtxcbqpa_d}
1059 %{_qt6_libdir}/libQt6XcbQpa.prl
1060 %{_qt6_libdir}/libQt6XcbQpa.so
1061 %{_qt6_datadir}/modules/XcbQpaPrivate.json
1062 %{_qt6_libdir}/cmake/Qt6XcbQpaPrivate/
1063 %{_qt6_libdir}/metatypes/qt6xcbqpaprivate_relwithdebinfo_metatypes.json
1064
1065 #------------------------------------------------------------------------------
1066
1067 %package -n %{libqtxml}
1068 Summary: Qt%{qtmajor} XML Library
1069 Group: System/Libraries
1070 Requires(pre): %{name}-common = %{version}
1071
1072 %description -n %{libqtxml}
1073 Qt%{qtmajor} XML Component Library.
1074
1075 The QtXml module provides a stream reader and writer for XML documents,
1076 and C++ implementations of SAX and DOM.
1077
1078 %files -n %{libqtxml}
1079 %{_qt6_libdir}/libQt6Xml.so.%{qtmajor}{,.*}
1080
1081 #------------------------------------------------------------------------------
1082
1083 %package -n %{libqtxml_d}
1084 Summary: Devel files needed to build apps based on QtXml
1085 Group: Development/KDE and Qt
1086 Requires(pre): %{name}-common = %{version}
1087 Requires: %{name}-common-devel = %{version}-%{release}
1088 Requires: %{libqtxml} = %{version}
1089 Provides: libqtxml6-devel = %{version}
1090 Provides: libqt6xml-devel = %{version}
1091 Provides: qtxml6-devel = %{version}
1092 Provides: qt6xml-devel = %{version}
1093
1094 %description -n %{libqtxml_d}
1095 Devel files needed to build apps based on QtXml.
1096
1097 %files -n %{libqtxml_d}
1098 %{_qt6_libdir}/libQt6Xml.prl
1099 %{_qt6_libdir}/libQt6Xml.so
1100 %{_qt6_includedir}/QtXml/
1101 %{_qt6_datadir}/modules/Xml.json
1102 %{_qt6_libdir}/cmake/Qt6Xml/
1103 %{_qt6_libdir}/metatypes/qt6xml_relwithdebinfo_metatypes.json
1104
1105 #------------------------------------------------------------------------------
1106
1107 %package -n %{libqtdevel}
1108 Summary: Development files for the Qt%{qtmajor} GUI toolkit
1109 Group: Development/KDE and Qt
1110 Requires(pre): %{name}-common = %{version}
1111 Provides: qt6-devel = %{version}-%{release}
1112 Provides: qtbase6-devel = %{version}-%{release}
1113 Provides: libqtbase6-devel = %{version}-%{release}
1114 Provides: libqt6-devel = %{version}-%{release}
1115
1116 Requires: %{name}-common-devel = %{version}-%{release}
1117 Requires: %{libqtcore_d} = %{version}-%{release}
1118 Requires: %{libqtconcurrent_d} = %{version}-%{release}
1119 Requires: %{libqteglfskmsgbmsupport_d} = %{version}-%{release}
1120 Requires: %{libqtdbus_d} = %{version}-%{release}
1121 Requires: %{libqteglfsdeviceintegration_d} = %{version}-%{release}
1122 Requires: %{libqteglfskmssupport_d} = %{version}-%{release}
1123 Requires: %{libqtgui_d} = %{version}-%{release}
1124 Requires: %{libqtnetwork_d} = %{version}-%{release}
1125 Requires: %{libqtopengl_d} = %{version}-%{release}
1126 Requires: %{libqtopenglwidgets_d} = %{version}-%{release}
1127 Requires: %{libqtprintsupport_d} = %{version}-%{release}
1128 Requires: %{libqtsql_d} = %{version}-%{release}
1129 Requires: %{libqttest_d} = %{version}-%{release}
1130 Requires: %{libqtwidgets_d} = %{version}-%{release}
1131 Requires: %{libqtxcbqpa_d} = %{version}-%{release}
1132 Requires: %{libqtxml_d} = %{version}-%{release}
1133
1134 %description -n %{libqtdevel}
1135 The %{libqtdevel} package contains the files necessary to develop
1136 applications using the Qt GUI toolkit: the header files, the Qt
1137 meta object compiler, and the static libraries. See the address
1138 http://qt-project.org/ for more information about Qt%{qtmajor}.
1139
1140 %files -n %{libqtdevel}
1141
1142 #------------------------------------------------------------------------------
1143 # SUPPORT STATIC LIBRARIES
1144 #------------------------------------------------------------------------------
1145
1146 %package -n %{libqtdevicediscoverysupport_d}
1147 Summary: Devel files needed to build apps based on DeviceDiscoverySupport
1148 Group: Development/KDE and Qt
1149 Requires(pre): %{name}-common = %{version}
1150 Requires: %{name}-common-devel = %{version}-%{release}
1151 Provides: libqtdevicediscoverysupport6-devel = %{version}
1152 Provides: libqt6devicediscoverysupport-devel = %{version}
1153 Provides: qtdevicediscoverysupport6-devel = %{version}
1154 Provides: qt6devicediscoverysupport-devel = %{version}
1155
1156 %description -n %{libqtdevicediscoverysupport_d}
1157 Devel files needed to build apps based on QtDeviceDiscoverySupport.
1158
1159 %files -n %{libqtdevicediscoverysupport_d}
1160 %{_qt6_libdir}/libQt6DeviceDiscoverySupport.a
1161 %{_qt6_libdir}/libQt6DeviceDiscoverySupport.prl
1162 %{_qt6_includedir}/QtDeviceDiscoverySupport/
1163 %{_qt6_libdir}/cmake/Qt6DeviceDiscoverySupportPrivate/
1164 %{_qt6_datadir}/modules/DeviceDiscoverySupportPrivate.json
1165 %{_qt6_libdir}/metatypes/qt6devicediscoverysupportprivate_relwithdebinfo_metatypes.json
1166
1167 #------------------------------------------------------------------------------
1168
1169 %package -n %{libqtfbsupport_d}
1170 Summary: Devel files needed to build apps based on FbSupport
1171 Group: Development/KDE and Qt
1172 Requires(pre): %{name}-common = %{version}
1173 Requires: %{name}-common-devel = %{version}-%{release}
1174 Provides: libqtfbsupport6-devel = %{version}
1175 Provides: libqt6fbsupport-devel = %{version}
1176 Provides: qtfbsupport6-devel = %{version}
1177 Provides: qt6fbsupport-devel = %{version}
1178
1179 %description -n %{libqtfbsupport_d}
1180 Devel files needed to build apps based on QtFbSupport.
1181
1182 %files -n %{libqtfbsupport_d}
1183 %{_qt6_libdir}/libQt6FbSupport.a
1184 %{_qt6_libdir}/libQt6FbSupport.prl
1185 %{_qt6_includedir}/QtFbSupport/
1186 %{_qt6_libdir}/cmake/Qt6FbSupportPrivate/
1187 %{_qt6_datadir}/modules/FbSupportPrivate.json
1188 %{_qt6_libdir}/metatypes/qt6fbsupportprivate_relwithdebinfo_metatypes.json
1189
1190 #------------------------------------------------------------------------------
1191
1192 %package -n %{libqtinputsupport_d}
1193 Summary: Devel files needed to build apps based on InputSupport
1194 Group: Development/KDE and Qt
1195 Requires(pre): %{name}-common = %{version}
1196 Requires: %{name}-common-devel = %{version}-%{release}
1197 Provides: libqtinputsupport6-devel = %{version}
1198 Provides: libqt6inputsupport-devel = %{version}
1199 Provides: qtinputsupport6-devel = %{version}
1200 Provides: qt6inputsupport-devel = %{version}
1201
1202 %description -n %{libqtinputsupport_d}
1203 Devel files needed to build apps based on QtInputSupport.
1204
1205 %files -n %{libqtinputsupport_d}
1206 %{_qt6_libdir}/libQt6InputSupport.a
1207 %{_qt6_libdir}/libQt6InputSupport.prl
1208 %{_qt6_includedir}/QtInputSupport/
1209 %{_qt6_libdir}/cmake/Qt6InputSupportPrivate/
1210 %{_qt6_datadir}/modules/InputSupportPrivate.json
1211 %{_qt6_libdir}/metatypes/qt6inputsupportprivate_relwithdebinfo_metatypes.json
1212
1213 #------------------------------------------------------------------------------
1214
1215 %package -n %{libqtkmssupport_d}
1216 Summary: Devel files needed to build apps based on KmsSupport
1217 Group: Development/KDE and Qt
1218 Requires(pre): %{name}-common = %{version}
1219 Requires: %{name}-common-devel = %{version}-%{release}
1220 Provides: libqtkmssupport6-devel = %{version}
1221 Provides: libqt6kmssupport-devel = %{version}
1222 Provides: qtkmssupport6-devel = %{version}
1223 Provides: qt6kmssupport-devel = %{version}
1224
1225 %description -n %{libqtkmssupport_d}
1226 Devel files needed to build apps based on QtKmsSupport.
1227
1228 %files -n %{libqtkmssupport_d}
1229 %{_qt6_libdir}/libQt6KmsSupport.a
1230 %{_qt6_libdir}/libQt6KmsSupport.prl
1231 %{_qt6_includedir}/QtKmsSupport/
1232 %{_qt6_libdir}/cmake/Qt6KmsSupportPrivate/
1233 %{_qt6_datadir}/modules/KmsSupportPrivate.json
1234 %{_qt6_libdir}/metatypes/qt6kmssupportprivate_relwithdebinfo_metatypes.json
1235
1236 #------------------------------------------------------------------------------
1237 # DATABASE PLUGINS
1238 #------------------------------------------------------------------------------
1239
1240 %if ! %without odbc
1241
1242 %package -n %{_lib}qt6-database-plugin-odbc
1243 Summary: Qt%{qtmajor} Database ODBC Database Plugin
1244 Group: Databases
1245 BuildRequires: unixODBC-devel
1246
1247 Provides: qt6-database-plugin-odbc = %{version}-%{release}
1248 Provides: qtbase6-database-plugin-odbc = %{version}-%{release}
1249
1250 %description -n %{_lib}qt6-database-plugin-odbc
1251 The QODBC driver allows you to connect to an ODBC (Open Database
1252 Connectivity) driver manager and access the available data sources.
1253
1254 %files -n %{_lib}qt6-database-plugin-odbc
1255 %{_qt6_plugindir}/sqldrivers/libqsqlodbc.so
1256
1257 %endif
1258
1259 #------------------------------------------------------------------------------
1260
1261 %if ! %without mysql
1262
1263 %package -n %{_lib}qt6-database-plugin-mysql
1264 Summary: Qt%{qtmajor} MYSQL Database Plugin
1265 Group: Databases
1266 BuildRequires: mysql-devel
1267
1268 Provides: qt6-database-plugin-mysql = %{version}-%{release}
1269 Provides: qtbase6-database-plugin-mysql = %{version}-%{release}
1270
1271 %description -n %{_lib}qt6-database-plugin-mysql
1272 Database plugin for mysql Qt support.
1273
1274 %files -n %{_lib}qt6-database-plugin-mysql
1275 %{_qt6_plugindir}/sqldrivers/libqsqlmysql.so
1276
1277 %endif
1278
1279 #------------------------------------------------------------------------------
1280
1281 %if ! %without sqlite
1282
1283 %package -n %{_lib}qt6-database-plugin-sqlite
1284 Summary: Qt%{qtmajor} SQLITE Database Plugin
1285 Group: Databases
1286 BuildRequires: pkgconfig(sqlite3)
1287
1288 Provides: qt6-database-plugin-sqlite = %{version}-%{release}
1289 Provides: qtbase6-database-plugin-sqlite = %{version}-%{release}
1290
1291 %description -n %{_lib}qt6-database-plugin-sqlite
1292 The Qt SQLite plugin makes it possible to access SQLite databases.
1293
1294 %files -n %{_lib}qt6-database-plugin-sqlite
1295 %{_qt6_plugindir}/sqldrivers/libqsqlite.so
1296 %endif
1297
1298 #------------------------------------------------------------------------------
1299
1300 %if ! %without tds
1301
1302 %package -n %{_lib}qt6-database-plugin-tds
1303 Summary: Qt%{qtmajor} FREETDS Database Plugin
1304 Group: Databases
1305 BuildRequires: freetds-devel
1306
1307 Provides: qt6-database-plugin-tds = %{version}-%{release}
1308 Provides: qtbase6-database-plugin-tds = %{version}-%{release}
1309
1310 %description -n %{_lib}qt6-database-plugin-tds
1311 Database plugin for freetds Qt support.
1312
1313 %files -n %{_lib}qt6-database-plugin-tds
1314 %{_qt6_plugindir}/sqldrivers/libqsqltds.so
1315
1316 %endif
1317
1318 #------------------------------------------------------------------------------
1319
1320 %if ! %without ibase
1321
1322 %package -n %{_lib}qt6-database-plugin-ibase
1323 Summary: Qt%{qtmajor} Interbase Database Plugin
1324 Group: Databases
1325 BuildRequires: firebird-devel
1326 BuildRequires: pkgconfig(fbclient)
1327
1328 Provides: qt6-database-plugin-ibase = %{version}-%{release}
1329 Provides: qtbase6-database-plugin-ibase = %{version}-%{release}
1330
1331 %description -n %{_lib}qt6-database-plugin-ibase
1332 Database plugin for interbase Qt support.
1333
1334 %files -n %{_lib}qt6-database-plugin-ibase
1335 %{_qt6_plugindir}/sqldrivers/libqsqlibase.so
1336
1337 %endif
1338
1339 #------------------------------------------------------------------------------
1340
1341 %if ! %without postgres
1342
1343 %package -n %{_lib}qt6-database-plugin-pgsql
1344 Summary: Qt%{qtmajor} PGSQL Database Plugin
1345 Group: Databases
1346 BuildRequires: postgresql-devel
1347 BuildRequires: libpq-devel
1348
1349 Provides: qt6-database-plugin-pgsql = %{version}-%{release}
1350 Provides: qtbase6-database-plugin-pgsql = %{version}-%{release}
1351
1352 %description -n %{_lib}qt6-database-plugin-pgsql
1353 Database plugin for pgsql Qt support.
1354
1355 %files -n %{_lib}qt6-database-plugin-pgsql
1356 %{_qt6_plugindir}/sqldrivers/libqsqlpsql.so
1357
1358 %endif
1359
1360 #------------------------------------------------------------------------------
1361
1362 %prep
1363 %setup -q -n qtbase-everywhere-src-%{qtversion}
1364 %autopatch -p1
1365 # Unlike Fedora, we don't modify the installed mkspecs to contain our flags,
1366 # which would have the side effect that plain 'qmake' would use them as well
1367 # (i.e. even when not building an rpm), which is not really wanted. Our
1368 # packages are built with %%qmake_qt6 (qt6.macros) which already overrides the
1369 # flags, so altering qmake default configuration for that is unnecessary.
1370 # Since the Qt configure script doesn't support defining custom flags, we
1371 # still have to temporarily override the flags below - they are restored in
1372 # %%install. -Anssi
1373 cp mkspecs/linux-g++/qmake.conf mkspecs/linux-g++/qmake.conf.upstream
1374 cat >> mkspecs/linux-g++/qmake.conf <<EOF
1375 QMAKE_CFLAGS = %{optflags}
1376 QMAKE_CXXFLAGS = %{optflags}
1377 QMAKE_LFLAGS = %{ldflags}
1378 QMAKE_STRIP =
1379 # Note that setting QMAKE_LFLAGS_PLUGIN here would do no good, as it would
1380 # just get appended to $QMAKE_LFLAGS instead of replacing it.
1381 EOF
1382
1383 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
1384
1385 sed -i 's|libmd4c|md4c|' src/gui/CMakeLists.txt
1386
1387 %build
1388 export QTDIR=`/bin/pwd`
1389 export PATH="$PWD/bin:$PWD/qtrepotools/bin:$PATH"
1390 # Don't include headers or link with /usr/X11R6/{include,lib}
1391 perl -pi -e 's@/X11R6/@/@' mkspecs/linux-*/qmake.conf mkspecs/common/linux.conf
1392
1393 #------------------------------------------------------------------------------
1394
1395 ## FIXME/TODO:
1396 # * for %%ix86, add sse2 enabled builds for Qt6Gui, Qt6Core, Qt6Network, see also:
1397 # http://anonscm.debian.org/cgit/pkg-kde/qt/qtbase.git/tree/debian/rules (234-249)
1398
1399 # -no-pch: do not use pre compiled headers (in order to be able to rebuild the gui submodule)
1400 # -no-feature-relocatable is needed to support relocated prefix etc.,
1401 # see QTBUG-78948 and QTBUG-82589 (mga#26200)
1402
1403 %cmake_qt6 \
1404 -DQT_FEATURE_accessibility=ON \
1405 -DQT_FEATURE_fontconfig=ON \
1406 -DQT_FEATURE_glib=ON \
1407 -DQT_FEATURE_sse2=%{?no_sse2:OFF}%{!?no_sse2:ON} \
1408 -DQT_FEATURE_icu=ON \
1409 -DQT_FEATURE_enable_new_dtags=ON \
1410 -DQT_FEATURE_cups=%{?with_cups:ON}%{!?with_cups:OFF} \
1411 -DQT_FEATURE_journald=%{?with_journald:ON}%{!?with_journald:OFF} \
1412 -DQT_FEATURE_openssl_linked=ON \
1413 -DQT_FEATURE_separate_debug_info=OFF \
1414 -DQT_FEATURE_reduce_relocations=OFF \
1415 -DQT_FEATURE_relocatable=OFF \
1416 -DQT_FEATURE_system_jpeg=ON \
1417 -DQT_FEATURE_system_png=ON \
1418 -DQT_FEATURE_system_zlib=ON \
1419 -DQT_FEATURE_system_textmarkdownreader=ON \
1420 -DQT_FEATURE_dbus_linked=%{?with_dbus_linked:ON}%{!?with_dbus_linked:OFF} \
1421 -DQT_FEATURE_system_pcre2=%{?with_pcre:ON}%{!?with_pcre:OFF} \
1422 -DQT_FEATURE_system_sqlite=%{?with_sqlite:ON}%{!?with_sqlite:OFF} \
1423 -DQT_FEATURE_sql_odbc=%{?with_odbc:ON}%{!?with_odbc:OFF} \
1424 -DQT_FEATURE_sql_mysql=%{?with_mysql:ON}%{!?with_mysql:OFF} \
1425 -DQT_FEATURE_sql_psql=%{?with_postgres:ON}%{!?with_postgres:OFF} \
1426 -DQT_FEATURE_sql_sqlite=%{?with_sqlite:ON}%{!?with_sqlite:OFF} \
1427 -DQT_FEATURE_sql_tds=%{?with_tds:ON}%{!?with_tds:OFF} \
1428 -DQT_FEATURE_sql_ibase=%{?with_ibase:ON}%{!?with_ibase:OFF} \
1429 -DQT_FEATURE_use_gold_linker=%{?with_use_gold_linker:ON}%{!?with_use_gold_linker:OFF} \
1430 -DBUILD_SHARED_LIBS=ON \
1431 -DQT_BUILD_EXAMPLES=%{?with_examples:ON}%{!?with_examples:OFF} \
1432 -DQT_BUILD_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
1433 -DQT_QMAKE_TARGET_MKSPEC=%{platform}
1434
1435 RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
1436
1437 ################## Build of QtBase ########################################
1438
1439 %cmake_build -j $RPM_BUILD_NCPUS
1440
1441 ################## Build of Docs ########################################
1442 %if %{build_docs}
1443 # HACK to avoid multilib conflicts in noarch content
1444 # see also https://bugreports.qt-project.org/browse/QTBUG-42071
1445 QT_HASH_SEED=0; export QT_HASH_SEED
1446
1447 %__make docs
1448 %endif
1449
1450 %install
1451 %cmake_install
1452
1453 # create/own dirs
1454 mkdir -p %{buildroot}{%{_qt6_archdatadir}/mkspecs/modules,%{_qt6_importdir},%{_qt6_libexecdir},%{_qt6_plugindir}/{designer,iconengines,script,styles},%{_qt6_translationdir}}
1455 mkdir -p %{buildroot}%{_sysconfdir}/xdg/QtProject
1456
1457 # symlink files to {_bindir}, add -qt6 postfix to not conflict
1458 mkdir %{buildroot}%{_bindir}
1459 pushd %{buildroot}%{_qt6_bindir}
1460 for i in * ; do
1461 case "${i}" in
1462 qdbuscpp2xml|qdbusxml2cpp|qtpaths)
1463 ln -v ${i} %{buildroot}%{_bindir}/${i}-qt6
1464 ;;
1465 *)
1466 ln -v ${i} %{buildroot}%{_bindir}/${i}
1467 ;;
1468 esac
1469 done
1470 popd
1471
1472 # hardlink files to {_bindir}, add -qt6 postfix to not conflict
1473 pushd %{buildroot}%{_qt6_libdir}
1474 for i in * ; do
1475 case "${i}" in
1476 moc|qlalr|qvkgen|qmake|rcc|tracegen|uic)
1477 ln -v ${i} %{buildroot}%{_libdir}/${i}-qt6
1478 ;;
1479 esac
1480 done
1481 popd
1482
1483 %if %{build_docs}
1484 %make_install install_docs INSTALL_ROOT=%{buildroot}
1485 %endif
1486
1487 install -m644 -p -D %{SOURCE1} %{buildroot}%{_qt6_datadir}/qtlogging.ini
1488
1489 install -d %{buildroot}%{_qt6_docdir}
1490 install -d %{buildroot}%{_sysconfdir}
1491 install -d %{buildroot}%{_sysconfdir}/profile.d
1492
1493 # Fix mkspec link
1494 pushd %{buildroot}%{_qt6_archdatadir}/mkspecs
1495 rm -f default
1496 ln -sf %{_qt6_archdatadir}/mkspecs/linux-g++ default
1497 popd
1498
1499 # Restore qmake.conf to the upstream version which was backed up in %%prep
1500 mv %{buildroot}%{_qt6_archdatadir}/mkspecs/linux-g++/qmake.conf.upstream %{buildroot}%{_qt6_archdatadir}/mkspecs/linux-g++/qmake.conf
1501
1502 # Fix all buildroot paths
1503 find %{buildroot}%{_qt6_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L%{_builddir}/\S+,,g" {} \;
1504 find %{buildroot}%{_qt6_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
1505 find %{buildroot}%{_qt6_libdir} -type f -name '*la' -print -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;
1506 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" {} \;
1507 find %{buildroot}%{_qt6_archdatadir}/mkspecs -name 'qmake.conf' -exec chmod -x -- {} \;
1508 find %{buildroot}%{_qt6_archdatadir}/mkspecs -name Info.plist.app -exec chmod -x -- {} \;
1509
1510 # Install rpm macros
1511 #mkdir -p %%{buildroot}%%{_sysconfdir}/rpm/macros.d
1512 #install -m 0644 %%{SOURCE2} %%{buildroot}%%{_sysconfdir}/rpm/macros.d
1513
1514 # Profiles
1515 cat > %{buildroot}%{_sysconfdir}/profile.d/60qt6.sh << EOF
1516 #!/bin/bash
1517 QTDIR6="%{_qt6_archdatadir}" ; export QTDIR6 ;
1518
1519 [ -z \$QT6DOCDIR ] && export QT6DOCDIR=%{_qt6_docdir}
1520
1521 if [ -z \$(echo \$PATH | grep "%{_qt6_bindir}") ]; then
1522 PATH=\${PATH}:%{_qt6_bindir}
1523 export PATH
1524 fi
1525 EOF
1526
1527 cat > %{buildroot}%{_sysconfdir}/profile.d/60qt6.csh << EOF
1528 #!/bin/csh
1529 setenv QTDIR6 %{_qt6_archdatadir}
1530 if ( ! \$?QT6DOCDIR ) setenv QT6DOCDIR %{_qt6_docdir}
1531 set path = (\$path \$QTDIR6/bin)
1532
1533 EOF
1534
1535 # Taken from OpenSUSE
1536 # syncqt is installed in both %%_qt6_bindir and %%_qt6_libdir
1537 # QtSyncQtHelpers.cmake needs the libexec one...and qmake the other one.
1538 # Creating a symlink is not necessary
1539 ln -s %{_libdir}/syncqt.pl %{buildroot}%{_qt6_bindir}/syncqt.pl
1540
1541 rm %{buildroot}%{_bindir}/qt-cmake-private-install.cmake
1542
1543 # Use better location for some new scripts in qtbase-6.0.1
1544 mv %{buildroot}%{_qt6_libdir}/android_emulator_launcher.sh %{buildroot}%{_qt6_bindir}/android_emulator_launcher.sh
1545 mv %{buildroot}%{_qt6_libdir}/ensure_pro_file.cmake %{buildroot}%{_qt6_libdir}/cmake/Qt6/ensure_pro_file.cmake
1546
1547 # .la and .a files, die, die, die.
1548 rm -f %{buildroot}%{_qt6_libdir}/lib*.la
1549 # .a files are needed by qttools6
1550 #rm -f %%{buildroot}%%{_qt6_libdir}/lib*.a

  ViewVC Help
Powered by ViewVC 1.1.30