1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
|
# The MIT License (MIT)
#
# Copyright (c) 2013 Tomasz Olszak <olszak.tomasz@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# This file is based on qtdeclarative.spec from Mer project
# http://merproject.org
Name: qt5-qtdeclarative
Summary: Qt Declarative library
Version: 5.3.1
Release: 0%{?dist}
Group: Base/Libraries
License: LGPL-2.1+ or GPL-3.0
URL: http://qt.digia.com
Source0: %{name}-%{version}.tar.bz2
Source1001: %{name}.manifest
Source1010: %{name}-examples.sh
Source1011: %{name}-examples.desktop
BuildRequires: qt5-qtcore-devel
BuildRequires: qt5-qtgui-devel
BuildRequires: qt5-qtnetwork-devel
BuildRequires: qt5-qtopengl-devel
BuildRequires: qt5-qtsql-devel
BuildRequires: qt5-qttest-devel
BuildRequires: qt5-qtwidgets-devel
BuildRequires: qt5-qtxmlpatterns-devel
BuildRequires: qt5-qmake
BuildRequires: fdupes
BuildRequires: python
BuildRequires: gdb
%description
Qt is a cross-platform application and UI framework. Using Qt, you can
write web-enabled applications once and deploy them across desktop,
mobile and embedded systems without rewriting the source code.
.
This package contains the Declarative library
%package devel
Summary: Qt Declarative - development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtsql-devel
Requires: qt5-qtnetwork-devel
%description devel
Qt is a cross-platform application and UI framework. Using Qt, you can
write web-enabled applications once and deploy them across desktop,
mobile and embedded systems without rewriting the source code.
.
This package contains the Declarative library development files
%package qtquicktest
Summary: Qt Declarative QtQuickTest library
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description qtquicktest
This package contains the QtQuickTest library for QtDeclarative module
%package qtquicktest-devel
Summary: Qt Declarative QtQuickTest - development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Requires: qt5-qtdeclarative-qtquicktest = %{version}-%{release}
%description qtquicktest-devel
This package contains the development headers for QtQuickTest library
%package qtquick
Summary: Qt Declarative - QtQuick library
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description qtquick
This package contains the QtQuick QML support library
%package qtquick-devel
Summary: Qt Declarative - QtQuick development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtdeclarative-qtquick = %{version}-%{release}
%description qtquick-devel
This package contains the development headers for legacy QtQuick 1
QML support library
%package qtquick-widgets
Summary: Qt Declarative - QtQuick Widgets library
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description qtquick-widgets
This package contains the QtQuickWidgets QML support library
%package qtquick-widgets-devel
Summary: Qt Declarative - QtQuick Widgets development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtdeclarative-qtquick-widgets = %{version}-%{release}
%description qtquick-widgets-devel
This package contains the development headers for QtQuickWidgets
library
%package qtquickparticles
Summary: Qt Declarative - QtQuick Particles library
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description qtquickparticles
This package contains the QtQuick Particles support library
%package qtquickparticles-devel
Summary: Qt Declarative - QtQuick Particles development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtdeclarative-qtquickparticles = %{version}-%{release}
%description qtquickparticles-devel
This package contains the development headers for QtQuickParticles
QML support library
%package qtdeclarativetools-devel
Summary: Qt Declarative QtQmlDevTools - development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Requires: qt5-qtdeclarative-devel = %{version}-%{release}
%description qtdeclarativetools-devel
This package contains the development headers for QtQmlDevTools
#### Small plugin and import packages
%package import-folderlistmodel
Summary: Qt Declarative folderlistmodel plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-folderlistmodel
This package provides the QtQml folderlistmodel plugin
%package import-settings
Summary: Qt Declarative settings plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-settings
This package provides the QtQml settings plugin
%package import-localstorageplugin
Summary: Qt LocalStorage plugin
Requires: %{name} = %{version}-%{release}
%description import-localstorageplugin
This package provided the Qt LocalStorage plugin
%package plugin-qmlinspector
Summary: Qt Declarative QML inspector plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description plugin-qmlinspector
This package provides the QML inspector plugin
%package plugin-accessible
Summary: Qt Declarative accessible plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description plugin-accessible
This package provides the QML accessible plugin
%package import-qtquick2plugin
Summary: Qt Declarative QtQuick 2 support plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-qtquick2plugin
This package provides the QtQuick 2 support plugin
%package import-qttest
Summary: Qt Declarative QtTest plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-qttest
This package provides the QtQml QtTest plugin
%package import-particles2
Summary: Qt Declarative Particles plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-particles2
This package provides the QtQml Particles.2 plugin
%package import-window2
Summary: Qt Declarative Window plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-window2
This package provides the QtQml Window.2 plugin
%package import-models2
Summary: Qt Declarative models plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-models2
This package provides the QtDeclarative models plugin for QtQuick 2.0
%package import-xmllistmodel
Summary: Qt Declarative XmlListModel plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description import-xmllistmodel
This package provides the QtDeclarative XmlListModel plugin for QtQuick 2.0
%package qmlscene
Summary: QML scene viewer
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description qmlscene
This package contains the QML viewer for QtQuick 2.0 files.
%package qml
Summary: QML viewer
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description qml
This package contains recommended the QML viewer for QtQuick 2.0 files. It supersedes the qmlscene.
%package devel-tools
Summary: QML development tools
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description devel-tools
This package contains QML debugging and development tools
%package examples
Summary: QML and Qt Quick Examples
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-plugin-imageformat-jpeg
Requires: qt5-qtdeclarative-import-folderlistmodel
Requires: qt5-qtdeclarative-import-models2
Requires: qt5-qtdeclarative-import-multimedia
Requires: qt5-qtdeclarative-import-particles2
Requires: qt5-qtdeclarative-import-qtquick2plugin
Requires: qt5-qtdeclarative-import-window2
Requires: qt5-qtdeclarative-import-xmllistmodel
Requires: qt5-qtdeclarative-qmlscene
%description examples
This package contains QML and Qt Quick Examples for developers.
Those can run used with luncher script or using interperter :
ie: qml ./examples/quick/demos/*/*.qml
#### Build section
%prep
%setup -q -n %{name}-%{version}/qtdeclarative
cp %{SOURCE1001} .
%build
export QTDIR=/usr/share/qt5
touch .git
qmake -qt=5
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%qmake5_install
# Fix wrong path in pkgconfig files
find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \
-exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;
# Fix wrong path in prl files
find %{buildroot}%{_libdir} -type f -name '*.prl' \
-exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \;
# Remove unneeded .la files
rm -f %{buildroot}%{_libdir}/*.la
# We don't need qt5/Qt/
rm -rf %{buildroot}%{_includedir}/qt5/Qt
# Manually copy qmldevtools static library
cp lib/libQt5QmlDevTools.a %{buildroot}%{_libdir}
%fdupes %{buildroot}%{_libdir}
%fdupes %{buildroot}%{_includedir}
# Manually copy examples
install -d "%{buildroot}%{_datadir}/qt5/%{name}/"
cp -rf examples "%{buildroot}%{_datadir}/qt5/%{name}/"
install -d "%{buildroot}%{_bindir}/"
install %{SOURCE1010} "%{buildroot}%{_bindir}/"
install -d "%{buildroot}%{_datadir}/applications/"
install %{SOURCE1011} "%{buildroot}%{_datadir}/applications/"
install -d "%{buildroot}%{_datadir}/icons/default/small/"
install ./tests/benchmarks/qml/painting/data/64x64.png "%{buildroot}%{_datadir}/icons/default/small/%{name}-examples.png"
#### Pre/Post section
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%post qtquicktest
/sbin/ldconfig
%postun qtquicktest
/sbin/ldconfig
%post qtquick
/sbin/ldconfig
%postun qtquick
/sbin/ldconfig
%post qtquickparticles
/sbin/ldconfig
%postun qtquickparticles
/sbin/ldconfig
#### File section
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5Qml.so.5
%{_libdir}/libQt5Qml.so.5.*
# FIXME: the provided .pc file is empty!
# Find out what gives and find a clean resolution
%files devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5Qml.so
%{_libdir}/libQt5Qml.prl
%{_libdir}/pkgconfig/Qt5Qml.pc
%{_includedir}/qt5/QtQml
%{_datadir}/qt5/mkspecs/modules/qt_lib_qml.pri
%{_datadir}/qt5/mkspecs/modules/qt_lib_qml_private.pri
%{_libdir}/cmake
%files qtquick
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5Quick.so.5
%{_libdir}/libQt5Quick.so.5.*
%files qtquick-devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5Quick.so
%{_libdir}/libQt5Quick.prl
%{_libdir}/pkgconfig/Qt5Quick.pc
%{_includedir}/qt5/QtQuick
%{_datadir}/qt5/mkspecs/modules/qt_lib_quick.pri
%{_datadir}/qt5/mkspecs/modules/qt_lib_quick_private.pri
%files qtquick-widgets
%{_libdir}/libQt5QuickWidgets.so.5
%{_libdir}/libQt5QuickWidgets.so.5.*
%files qtquick-widgets-devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5QuickWidgets.so
%{_libdir}/libQt5QuickWidgets.prl
%{_libdir}/pkgconfig/Qt5QuickWidgets.pc
%{_includedir}/qt5/QtQuickWidgets
%{_datadir}/qt5/mkspecs/modules/qt_lib_quickwidgets.pri
%{_datadir}/qt5/mkspecs/modules/qt_lib_quickwidgets_private.pri
%files qmlscene
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_qt5_bindir}/qmlscene
%files qml
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_qt5_bindir}/qml
%files devel-tools
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_qt5_bindir}/qmlplugindump
%{_qt5_bindir}/qmlprofiler
%{_qt5_bindir}/qmltestrunner
%{_qt5_bindir}/qmlmin
%{_qt5_bindir}/qmlbundle
%{_qt5_bindir}/qmlimportscanner
%{_qt5_bindir}/qmljs
%files import-folderlistmodel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/Qt/labs/folderlistmodel/*
%files import-localstorageplugin
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtQuick/LocalStorage
%files plugin-qmlinspector
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/qmltooling/*
%files plugin-accessible
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/accessible/libqtaccessiblequick.so
%files import-qttest
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtTest
%files import-qtquick2plugin
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtQuick.2
%files import-particles2
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtQuick/Particles.2
%files import-window2
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtQuick/Window.2
%files import-models2
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtQml/Models.2
%files import-xmllistmodel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtQuick/XmlListModel
%files qtquicktest
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5QuickTest.so.5
%{_libdir}/libQt5QuickTest.so.5.*
%files qtquicktest-devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_includedir}/qt5/QtQuickTest
%{_libdir}/libQt5QuickTest.so
%{_libdir}/libQt5QuickTest.prl
%{_libdir}/pkgconfig/Qt5QuickTest.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_qmltest.pri
%{_datadir}/qt5/mkspecs/modules/qt_lib_qmltest_private.pri
%files qtquickparticles
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5QuickParticles.so.5
%{_libdir}/libQt5QuickParticles.so.5.*
%files qtquickparticles-devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_includedir}/qt5/QtQuickParticles
%{_libdir}/libQt5QuickParticles.so
%{_libdir}/libQt5QuickParticles.prl
%{_libdir}/pkgconfig/Qt5QuickParticles.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_quickparticles_private.pri
%files qtdeclarativetools-devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5QmlDevTools.a
%{_libdir}/libQt5QmlDevTools.prl
%{_libdir}/pkgconfig/Qt5QmlDevTools.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_qmldevtools_private.pri
%files import-settings
%{_libdir}/qt5/qml/Qt/labs/settings
%files examples
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_bindir}/%{name}-examples.sh
%{_datadir}/applications/%{name}-examples.desktop
%{_datadir}/icons/default/small/%{name}-examples.png
%{_datadir}/qt5/%{name}/examples/*
#### No changelog section, separate $pkg.changelog contains the history
|