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
|
%if "%{tizen}" == "2.1"
%define profile mobile
%endif
%if "%{tizen}" == "2.3"
%define profile wearable
%define _with_only_free_components 1
%endif
%if "%{profile}" != "mobile" && "%{profile}" != "wearable"
%define _with_gstreamer1 1
%endif
%bcond_with only_free_components
%bcond_with gstreamer1
Name: qt5-qtmultimedia
Summary: Qt Multimedia module
Version: 5.3.99+beta1
Release: 0
Group: Base/Libraries
License: LGPL-2.1+ or GPL-3.0
URL: http://qt.digia.com
Source0: %{name}-%{version}.tar.bz2
Source1001: %{name}.manifest
BuildRequires: qt5-qtcore-devel
BuildRequires: qt5-qtgui-devel
BuildRequires: qt5-qtwidgets-devel
BuildRequires: qt5-qtopengl-devel
BuildRequires: qt5-qtnetwork-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qtdeclarative-qtquick-devel
BuildRequires: qt5-qmake
BuildRequires: pkgconfig(alsa)
BuildRequires: fdupes
#BuildRequires: pkgconfig(libpulse)
#BuildRequires: pkgconfig(libpulse-mainloop-glib)
%if %{with gstreamer1}
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-audio-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-bad-1.0)
%else
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-base-0.10)
BuildRequires: pkgconfig(gstreamer-interfaces-0.10)
BuildRequires: pkgconfig(gstreamer-audio-0.10)
BuildRequires: pkgconfig(gstreamer-video-0.10)
BuildRequires: pkgconfig(gstreamer-pbutils-0.10)
BuildRequires: pkgconfig(gstreamer-app-0.10)
%if ! %{with only_free_components}
BuildRequires: pkgconfig(gstreamer-plugins-bad-0.10)
%endif
%endif
%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 QtMultimedia module
%package devel
Summary: Qt Multimedia - development files
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%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 QtMultimedia module development files
%package -n qt5-qtdeclarative-import-multimedia
Summary: QtQml multimedia import
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtdeclarative
%description -n qt5-qtdeclarative-import-multimedia
This package contains the Multimedia import for QtQml
%package gsttools
Summary: Qt Multimedia - Utility library for GStreamer media services
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description gsttools
This package contains a shared library for the GStreamer QtMultimedia media services
%package plugin-video-videonode-egl
Summary: Qt Multimedia - EGLImageKHR video node
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description plugin-video-videonode-egl
This package contains VideoNode plugin which allows direct rendering of
0;115;0cEGLImageKHR backed video frames
%package plugin-mediaservice-gstaudiodecoder
Summary: Qt Multimedia - GStreamer audio decoder media service
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtmultimedia-gsttools = %{version}-%{release}
%description plugin-mediaservice-gstaudiodecoder
This package contains the GStreamer audio decoder plugin for QtMultimedia
%package plugin-mediaservice-gstcamerabin
Summary: Qt Multimedia - GStreamer camerabin video capture media service
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtmultimedia-gsttools = %{version}-%{release}
%description plugin-mediaservice-gstcamerabin
This package contains the GStreamer camerabin video capture plugin for QtMultimedia
%package plugin-mediaservice-gstmediacapture
Summary: Qt Multimedia - GStreamer video4linux2 video capture media service
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtmultimedia-gsttools = %{version}-%{release}
%description plugin-mediaservice-gstmediacapture
This package contains the GStreamer video4linux2 video capture plugin for QtMultimedia
%package plugin-mediaservice-gstmediaplayer
Summary: Qt Multimedia - GStreamer playback media service
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtmultimedia-gsttools = %{version}-%{release}
%description plugin-mediaservice-gstmediaplayer
This package contains the GStreamer media playback plugin for QtMultimedia
%package plugin-playlistformats-m3u
Summary: Qt Multimedia - M3U playlist support
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtmultimedia-gsttools = %{version}-%{release}
%description plugin-playlistformats-m3u
This package contains the M3U playlist support
# %package plugin-audio-pulseaudio
# Summary: Qt Multimedia - Pulse Audio plugin
# Group: Base/Libraries
# Requires: %{name} = %{version}-%{release}
#
# %description plugin-audio-pulseaudio
# This package contains the pulse audio sound effect support.
%package plugin-audio-alsa
Summary: Qt Multimedia - Alsa Audio plugin
Group: Base/Libraries
Requires: %{name} = %{version}-%{release}
%description plugin-audio-alsa
This package contains the pulse audio sound effect support.
#### Build section
%prep
%setup -q -n %{name}-%{version}
%build
cp %{SOURCE1001} .
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/" {} \;
%fdupes %{buildroot}/%{_includedir}
#### Pre/Post section
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%post gsttools
/sbin/ldconfig
%postun gsttools
/sbin/ldconfig
#### File section
%files
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5Multimedia.so.5
%{_libdir}/libQt5Multimedia.so.5.*
%{_libdir}/libQt5MultimediaWidgets.so.5
%{_libdir}/libQt5MultimediaWidgets.so.5.*
%{_libdir}/libQt5MultimediaQuick_p.so.5
%{_libdir}/libQt5MultimediaQuick_p.so.5.*
%files devel
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libQt5Multimedia.so
%{_libdir}/libQt5MultimediaWidgets.so
%{_libdir}/libQt5MultimediaQuick_p.so
%{_libdir}/libqgsttools_p.so
%{_libdir}/libQt5Multimedia.prl
%{_libdir}/libQt5Multimedia.la
%{_libdir}/libQt5MultimediaWidgets.prl
%{_libdir}/libQt5MultimediaWidgets.la
%{_libdir}/libQt5MultimediaQuick_p.prl
%{_libdir}/libQt5MultimediaQuick_p.la
%{_libdir}/libqgsttools_p.prl
%{_libdir}/pkgconfig/*
%{_includedir}/qt5/*
%{_datadir}/qt5/mkspecs/*
%{_libdir}/cmake/*
%files -n qt5-qtdeclarative-import-multimedia
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/qml/QtMultimedia/*
%files plugin-video-videonode-egl
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/video/videonode/libeglvideonode.so
%files gsttools
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/libqgsttools_p.so.1
%{_libdir}/libqgsttools_p.so.1.*
%files plugin-mediaservice-gstaudiodecoder
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/mediaservice/libgstaudiodecoder.so
%files plugin-mediaservice-gstcamerabin
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/mediaservice/libgstcamerabin.so
%files plugin-mediaservice-gstmediacapture
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/mediaservice/libgstmediacapture.so
%files plugin-mediaservice-gstmediaplayer
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/mediaservice/libgstmediaplayer.so
%files plugin-playlistformats-m3u
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/playlistformats/libqtmultimedia_m3u.so
# %files plugin-audio-pulseaudio
# %defattr(-,root,root,-)
# %manifest %{name}.manifest
# %{_libdir}/qt5/plugins/audio/libqtmedia_pulse.so
%files plugin-audio-alsa
%defattr(-,root,root,-)
%manifest %{name}.manifest
%{_libdir}/qt5/plugins/audio/libqtaudio_alsa.so
#### No changelog section, separate $pkg.changelog contains the history
|