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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30