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

  ViewVC Help
Powered by ViewVC 1.1.30