/[packages]/cauldron/qtdeclarative5/current/SPECS/qtdeclarative5.spec
ViewVC logotype

Contents of /cauldron/qtdeclarative5/current/SPECS/qtdeclarative5.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1378841 - (show annotations) (download)
Tue Mar 19 13:19:15 2019 UTC (2 months ago) by daviddavid
File size: 15358 byte(s)
SILENT: rediff no_sse2 patch

1 %ifarch %{ix86}
2 %global nosse2_hack 1
3 ## TODO:
4 # * consider debian's approach of runtime detection instead:
5 # https://codereview.qt-project.org/#/c/127354/
6 %endif
7
8 %define snapshot 0
9 %define bootstrap 0
10
11 %ifarch %{arm}
12 %define build_docs 0
13 %else
14 %if %bootstrap
15 %define build_docs 0
16 %else
17 %define build_docs 1
18 %endif
19 %endif
20
21 %define qtmajor 5
22 %define qtminor 12
23 %define qtsubminor 2
24
25 %define rel 1
26 %define pre rc
27 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
28
29 %define libqt5quicktest %mklibname qt5quicktest %qtmajor
30 %define libqt5quicktest_d %mklibname qt%{qtmajor}quicktest -d
31
32 %define libqt5quick %mklibname qt5quick %qtmajor
33 %define libqt5quick_d %mklibname qt%{qtmajor}quick -d
34
35 %define libqt5quickshapes %mklibname qt5quickshapes %qtmajor
36 %define libqt5quickshapes_d %mklibname qt%{qtmajor}quickshapes -d
37
38 %define libqt5quickwidgets %mklibname qt5quickwidgets %qtmajor
39 %define libqt5quickwidgets_d %mklibname qt%{qtmajor}quickwidgets -d
40
41 %define libqt5quickparticles %mklibname qt5quickparticles %qtmajor
42 %define libqt5quickparticles_d %mklibname qt%{qtmajor}quickparticles -d
43
44 %define libqt5qml %mklibname qt5qml %qtmajor
45 %define libqt5qml_d %mklibname qt%{qtmajor}qml -d
46
47
48 %define libqt5packetprotocol_d %mklibname qt5packetprotocol -d -s
49
50 %if %snapshot
51 %define qttarballdir qtdeclarative-everywhere-src-%{qtversion}-%pre
52 %else
53 %define qttarballdir qtdeclarative-everywhere-src-%{qtversion}
54 %endif
55
56 Name: qtdeclarative5
57 Version: %{qtversion}
58 Release: %mkrel %{rel}
59 Summary: Qt Declarative component
60 Group: Development/KDE and Qt
61 License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
62 URL: http://www.qt.io
63 Source0: http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
64 BuildRequires: pkgconfig(Qt5Xml)
65 BuildRequires: pkgconfig(Qt5Core) = %{version}
66 BuildRequires: pkgconfig(Qt5Network) = %{version}
67 BuildRequires: pkgconfig(Qt5Gui) = %{version}
68 BuildRequires: pkgconfig(Qt5Widgets) = %{version}
69 BuildRequires: pkgconfig(Qt5Sql) = %{version}
70
71 BuildRequires: cmake(Qt5Test) = %{version}
72
73 Provides: qt5-qtdeclarative
74
75 Conflicts: %{_lib}qt5qml-private-devel < 5.5.0-3
76
77 Conflicts: qtquickcontrols5 < 5.9.1
78
79 #Branch Patchs
80 # support no_sse2 CONFIG (i586 builds cannot assume -march=pentium4 -msse2 -mfpmath=sse flags, or the JIT that needs them)
81 # https://codereview.qt-project.org/#change,73710
82 Patch1: qtdeclarative-everywhere-src-5.12.2-no_sse2.patch
83
84 #Trunk Patchs
85 #Patch from Mageia
86
87
88 %description
89 Qt5 Declarative component.
90
91 %files
92 %_qt5_bindir/qml
93 %_qt5_bindir/qmlcachegen
94 %_qt5_bindir/qmlimportscanner
95 %_qt5_bindir/qmlmin
96 %_qt5_bindir/qmlplugindump
97 %_qt5_bindir/qmlpreview
98 %_qt5_bindir/qmlprofiler
99 %_qt5_bindir/qmlscene
100 %_qt5_bindir/qmltestrunner
101 %_qt5_bindir/qmleasing
102 %_qt5_bindir/qmllint
103 %_qt5_prefix/qml/QtTest
104 %_qt5_prefix/qml/QtQuick*
105 %_qt5_prefix/plugins/qmltooling/libqmldbg_tcp.so
106 %_qt5_prefix/plugins/qmltooling/libqmldbg_debugger.so
107 %_qt5_prefix/plugins/qmltooling/libqmldbg_inspector.so
108 %_qt5_prefix/plugins/qmltooling/libqmldbg_local.so
109 %_qt5_prefix/plugins/qmltooling/libqmldbg_native.so
110 %_qt5_prefix/plugins/qmltooling/libqmldbg_preview.so
111 %_qt5_prefix/plugins/qmltooling/libqmldbg_profiler.so
112 %_qt5_prefix/plugins/qmltooling/libqmldbg_server.so
113 %_qt5_prefix/plugins/qmltooling/libqmldbg_messages.so
114 %_qt5_prefix/plugins/qmltooling/libqmldbg_nativedebugger.so
115 %_qt5_prefix/plugins/qmltooling/libqmldbg_quickprofiler.so
116 %_qt5_prefix/qml/Qt/labs/folderlistmodel
117 %_qt5_prefix/qml/Qt/labs/qmlmodels
118 %_qt5_prefix/qml/Qt/labs/settings
119 %_qt5_datadir/qml/QtQml
120 %_qt5_datadir/qml/builtins.qmltypes
121 %_qt5_datadir/qml/Qt/labs/sharedimage
122 %_qt5_datadir/qml/Qt/labs/wavefrontmesh
123
124 #------------------------------------------------------------------------------
125
126 %if %{build_docs}
127 %package doc
128 Summary: QtDeclarative%{qtmajor} APIs and tools docs
129 Group: Documentation
130 BuildArch: noarch
131 BuildRequires: qttools5
132 # This one is required to build QCH-format documentation
133 # for APIs and tools in this package set
134 BuildRequires: qttools5-assistant
135 Recommends: qttools5-assistant
136
137 %description doc
138 Documentation for APIs and tools in QtDeclarative5 package for use with
139 Qt Assistant.
140
141 %files doc
142 %{_qt5_docdir}/qtqml.qch
143 %{_qt5_docdir}/qtqml/
144 %{_qt5_docdir}/qtquick.qch
145 %{_qt5_docdir}/qtquick/
146 %{_qt5_docdir}/qtqmltest.qch
147 %{_qt5_docdir}/qtqmltest/
148 %endif
149
150 #------------------------------------------------------------------------------
151
152 %package -n %{libqt5quicktest}
153 Summary: Qt%{qtmajor} Lib
154 Group: System/Libraries
155
156 %description -n %{libqt5quicktest}
157 Qt%{qtmajor} Lib.
158
159 %files -n %{libqt5quicktest}
160 %{_qt5_libdir}/libQt5QuickTest.so.%{qtmajor}{,.*}
161
162 #------------------------------------------------------------------------------
163
164 %package -n %{libqt5quicktest_d}
165 Summary: Devel files needed to build apps based on QtDeclarative
166 Group: Development/KDE and Qt
167 Requires: %{libqt5quicktest} = %version-%{release}
168 Requires: %{name} = %version
169 Provides: libqt5quicktest-devel = %version-%{release}
170 Provides: libqtquicktest5-devel = %version-%{release}
171 Provides: qt5quicktest-devel = %version-%{release}
172 Provides: qtquicktest5-devel = %version-%{release}
173
174 Provides: libqt5quicktest-private-devel = %version-%{release}
175 Provides: libqtquicktest5-private-devel = %version-%{release}
176 Provides: qt5quicktest-private-devel = %version-%{release}
177 Provides: qtquicktest5-private-devel = %version-%{release}
178
179 %description -n %{libqt5quicktest_d}
180 Devel files needed to build apps based on QtDeclarative.
181
182 %files -n %{libqt5quicktest_d}
183 %_qt5_libdir/libQt5QuickTest.prl
184 %_qt5_libdir/libQt5QuickTest.so
185 %_qt5_libdir/cmake/Qt5QuickTest
186 %_qt5_includedir/QtQuickTest/
187 %_qt5_libdir/pkgconfig/Qt5QuickTest.pc
188 %_qt5_prefix/examples/qmltest
189
190 #------------------------------------------------------------------------------
191
192 %package -n %{libqt5quick}
193 Summary: Qt%{qtmajor} Lib
194 Group: System/Libraries
195
196 %description -n %{libqt5quick}
197 Qt%{qtmajor} Lib.
198
199 %files -n %{libqt5quick}
200 %{_qt5_libdir}/libQt5Quick.so.%{qtmajor}{,.*}
201
202 #------------------------------------------------------------------------------
203
204 %package -n %{libqt5quick_d}
205 Summary: Devel files needed to build apps based on QtDeclarative
206 Group: Development/KDE and Qt
207 Requires: %{name} = %version-%{release}
208 Requires: %{libqt5quick} = %version-%{release}
209 Provides: libqt5quick-devel = %version-%{release}
210 Provides: libqtquick5-devel = %version-%{release}
211 Provides: qt5quick-devel = %version-%{release}
212 Provides: qtquick5-devel = %version-%{release}
213 Requires: qtgui5-devel = %version-%{release}
214
215 Provides: libqt5quick-private-devel = %version-%{release}
216 Provides: libqtquick5-private-devel = %version-%{release}
217 Provides: qt5quick-private-devel = %version-%{release}
218 Provides: qtquick5-private-devel = %version-%{release}
219
220 %description -n %{libqt5quick_d}
221 Devel files needed to build apps based on QtDeclarative.
222
223 %files -n %{libqt5quick_d}
224 %_qt5_libdir/libQt5Quick.prl
225 %_qt5_libdir/libQt5Quick.so
226 %_qt5_libdir/cmake/Qt5Quick
227 %_qt5_includedir/QtQuick/
228 %_qt5_prefix/examples/quick
229 %_qt5_libdir/pkgconfig/Qt5Quick.pc
230 %_qt5_prefix/mkspecs/modules/qt_lib_quick.pri
231 %_qt5_prefix/mkspecs/modules/qt_lib_quick_private.pri
232
233 #------------------------------------------------------------------------------
234
235 %package -n %{libqt5quickwidgets}
236 Summary: Qt%{qtmajor} Lib
237 Group: System/Libraries
238
239 %description -n %{libqt5quickwidgets}
240 Qt%{qtmajor} Lib.
241
242 %files -n %{libqt5quickwidgets}
243 %{_qt5_libdir}/libQt5QuickWidgets.so.%{qtmajor}{,.*}
244
245 #------------------------------------------------------------------------------
246
247 %package -n %{libqt5quickwidgets_d}
248 Summary: Devel files needed to build apps based on QtDeclarative
249 Group: Development/KDE and Qt
250 Requires: %{name} = %version-%{release}
251 Requires: %{libqt5quickwidgets} = %version-%{release}
252 Provides: libqt5quickwidgets-devel = %version-%{release}
253 Provides: libqtquickwidgets5-devel = %version-%{release}
254 Provides: qt5quickwidgets-devel = %version-%{release}
255 Provides: qtquickwidgets5-devel = %version-%{release}
256
257 Provides: libqt5quickwidgets-private-devel = %version-%{release}
258 Provides: libqtquickwidgets5-private-devel = %version-%{release}
259 Provides: qt5quickwidgets-private-devel = %version-%{release}
260 Provides: qtquickwidgets5-private-devel = %version-%{release}
261
262 %description -n %{libqt5quickwidgets_d}
263 Devel files needed to build apps based on QtDeclarative.
264
265 %files -n %{libqt5quickwidgets_d}
266 %_qt5_libdir/libQt5QuickWidgets.prl
267 %_qt5_libdir/libQt5QuickWidgets.so
268 %_qt5_libdir/cmake/Qt5QuickWidgets
269 %_qt5_includedir/QtQuickWidgets/
270 %_qt5_libdir/pkgconfig/Qt5QuickWidgets.pc
271 %_qt5_prefix/mkspecs/modules/qt_lib_quickwidgets.pri
272 %_qt5_prefix/mkspecs/modules/qt_lib_quickwidgets_private.pri
273
274 #------------------------------------------------------------------------------
275
276 %package -n %{libqt5quickshapes}
277 Summary: Qt%{qtmajor} Lib
278 Group: System/Libraries
279
280 %description -n %{libqt5quickshapes}
281 Qt%{qtmajor} Lib.
282
283 %files -n %{libqt5quickshapes}
284 %{_qt5_libdir}/libQt5QuickShapes.so.%{qtmajor}{,.*}
285
286 #------------------------------------------------------------------------------
287
288 %package -n %{libqt5quickshapes_d}
289 Summary: Devel files needed to build apps based on QtDeclarative
290 Group: Development/KDE and Qt
291 Requires: %{name} = %version-%{release}
292 Requires: %{libqt5quickshapes} = %version-%{release}
293 Provides: libqt5quickshapes-devel = %version-%{release}
294 Provides: libqtquickshapes5-devel = %version-%{release}
295 Provides: qt5quickshapes-devel = %version-%{release}
296 Provides: qtquickshapes5-devel = %version-%{release}
297
298 Provides: libqt5quickshapes-private-devel = %version-%{release}
299 Provides: libqtquickshapes5-private-devel = %version-%{release}
300 Provides: qt5quickshapes-private-devel = %version-%{release}
301 Provides: qtquickshapes5-private-devel = %version-%{release}
302
303 %description -n %{libqt5quickshapes_d}
304 Devel files needed to build apps based on QtDeclarative.
305
306 %files -n %{libqt5quickshapes_d}
307 %_qt5_libdir/libQt5QuickShapes.prl
308 %_qt5_libdir/libQt5QuickShapes.so
309 %_qt5_includedir/QtQuickShapes/
310 %_qt5_prefix/mkspecs/modules/qt_lib_quickshapes_private.pri
311
312 #------------------------------------------------------------------------------
313
314 %package -n %{libqt5packetprotocol_d}
315 Summary: Devel files needed to build apps based on QtDeclarative
316 Group: Development/KDE and Qt
317 Requires: %{name} = %version-%{release}
318 Provides: libqt5packetprotocol-static-devel = %version-%{release}
319 Provides: libqtpacketprotocol5-static-devel = %version-%{release}
320 Provides: qt5packetprotocol-static-devel = %version-%{release}
321 Provides: qtpacketprotocol5-static-devel = %version-%{release}
322
323 %description -n %{libqt5packetprotocol_d}
324 Devel files needed to build apps based on QtDeclarative.
325
326 %files -n %{libqt5packetprotocol_d}
327 %_qt5_libdir/libQt5PacketProtocol.prl
328 %_qt5_libdir/libQt5PacketProtocol.a
329 %_qt5_includedir/QtPacketProtocol/
330 %_qt5_prefix/mkspecs/modules/qt_lib_packetprotocol_private.pri
331
332 #------------------------------------------------------------------------------
333
334 %package -n %{libqt5quickparticles}
335 Summary: Qt%{qtmajor} Lib
336 Group: System/Libraries
337
338 %description -n %{libqt5quickparticles}
339 Qt%{qtmajor} Lib.
340
341 %files -n %{libqt5quickparticles}
342 %{_qt5_libdir}/libQt5QuickParticles.so.%{qtmajor}{,.*}
343
344 #------------------------------------------------------------------------------
345
346 %package -n %{libqt5quickparticles_d}
347 Summary: Devel files needed to build apps based on QtDeclarative
348 Group: Development/KDE and Qt
349 Requires: %{name} = %version-%{release}
350 Requires: %{libqt5quickparticles} = %version-%{release}
351 Provides: libqt5quickparticles-devel = %version-%{release}
352 Provides: libqtquickparticles5-devel = %version-%{release}
353 Provides: qt5quickparticles-devel = %version-%{release}
354 Provides: qtquickparticles5-devel = %version-%{release}
355
356 Provides: libqt5quickparticles-private-devel = %version-%{release}
357 Provides: libqtquickparticles5-private-devel = %version-%{release}
358 Provides: qt5quickparticles-private-devel = %version-%{release}
359 Provides: qtquickparticles5-private-devel = %version-%{release}
360
361 %description -n %{libqt5quickparticles_d}
362 Devel files needed to build apps based on QtDeclarative.
363
364 %files -n %{libqt5quickparticles_d}
365 %_qt5_libdir/libQt5QuickParticles.prl
366 %_qt5_libdir/libQt5QuickParticles.so
367 %_qt5_includedir/QtQuickParticles/
368 %_qt5_prefix/mkspecs/modules/qt_lib_quickparticles_private.pri
369
370 #------------------------------------------------------------------------------
371
372 %package -n %{libqt5qml}
373 Summary: Qt%{qtmajor} Lib
374 Group: System/Libraries
375
376 %description -n %{libqt5qml}
377 Qt%{qtmajor} Lib.
378
379 %files -n %{libqt5qml}
380 %{_qt5_libdir}/libQt5Qml.so.%{qtmajor}{,.*}
381
382 %if 0%{?nosse2_hack}
383 %{_qt5_libdir}/sse2/libQt5Qml.so.%{qtmajor}{,.*}
384 %endif
385
386 #------------------------------------------------------------------------------
387
388 %package -n %{libqt5qml_d}
389 Summary: Devel files needed to build apps based on QtDeclarative
390 Group: Development/KDE and Qt
391 Requires: %{name} = %version-%{release}
392 Requires: %{libqt5qml} = %version-%{release}
393 Provides: libqt5qml-devel = %version-%{release}
394 Provides: libqtqml5-devel = %version-%{release}
395 Provides: qt5qml-devel = %version-%{release}
396 Provides: qtqml5-devel = %version-%{release}
397
398 Provides: libqt5qml-private-devel = %version-%{release}
399 Provides: libqtqml5-private-devel = %version-%{release}
400 Provides: qt5qml-private-devel = %version-%{release}
401 Provides: qtqml5-private-devel = %version-%{release}
402
403 Requires: qtnetwork5-devel = %version
404 Requires: qtcore5-devel = %version
405
406 %description -n %{libqt5qml_d}
407 Devel files needed to build apps based on QtDeclarative.
408
409 %files -n %{libqt5qml_d}
410 %_qt5_libdir/libQt5Qml.prl
411 %_qt5_libdir/libQt5Qml.so
412 %_qt5_libdir/cmake/Qt5Qml
413 %_qt5_prefix/mkspecs/modules/qt_lib_qmltest.pri
414 %_qt5_prefix/mkspecs/modules/qt_lib_qml.pri
415 %_qt5_prefix/examples/qml
416 %_qt5_libdir/pkgconfig/Qt5Qml.pc
417 %_qt5_libdir/libQt5QmlDevTools.a
418 %_qt5_includedir/QtQml*
419 %_qt5_libdir/libQt5QmlDevTools.prl
420 %_qt5_prefix/mkspecs/modules/qt_lib_qml_private.pri
421 %_qt5_prefix/mkspecs/modules/qt_lib_qmldevtools_private.pri
422 %_qt5_prefix/mkspecs/modules/qt_lib_qmltest_private.pri
423 %_qt5_prefix/mkspecs/modules/qt_lib_qmldebug_private.pri
424 %_qt5_prefix/mkspecs/features/qmlcache.prf
425 %_qt5_libdir/libQt5QmlDebug.a
426 %_qt5_libdir/libQt5QmlDebug.prl
427 %_qt5_libdir/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake
428 %_qt5_prefix/mkspecs/features/qtquickcompiler.prf
429
430 #------------------------------------------------------------------------------
431
432 %prep
433 %setup -q -n qtdeclarative-everywhere-src-%{qtversion}
434
435 %if 0%{?nosse2_hack}
436 %patch1 -p1 -b .no_sse2
437 %endif
438
439 %build
440 %if 0%{?nosse2_hack}
441 # build libQt5Qml with no_sse2
442 mkdir -p %{_target_platform}-no_sse2
443 pushd %{_target_platform}-no_sse2
444 %{qmake_qt5} -config no_sse2 ..
445 %make_build sub-src-clean
446 %make_build -C src/qml
447 popd
448 %endif
449
450
451 %{qmake_qt5}
452
453 # no shadow builds until fixed: https://bugreports.qt.io/browse/QTBUG-37417
454 %make_build
455
456 %if %{build_docs}
457 %__make docs
458 %endif
459
460 %install
461 %make_install INSTALL_ROOT=%{buildroot}
462
463 %if 0%{?nosse2_hack}
464 mkdir -p %{buildroot}%{_qt5_libdir}/sse2
465 mv %{buildroot}%{_qt5_libdir}/libQt5Qml.so.5* %{buildroot}%{_qt5_libdir}/sse2/
466 %make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform}-no_sse2/src/qml
467 %endif
468
469
470 %if %{build_docs}
471 %make_install install_docs INSTALL_ROOT=%{buildroot}
472 %endif
473
474 # .la and .a files, die, die, die.
475 find %{buildroot} -name '*.la' -delete
476 #find %%{buildroot} -name '*.a' -delete

  ViewVC Help
Powered by ViewVC 1.1.26