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

  ViewVC Help
Powered by ViewVC 1.1.30