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

  ViewVC Help
Powered by ViewVC 1.1.30