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

  ViewVC Help
Powered by ViewVC 1.1.30