good:v4l2: Add new property for TBM dump
[platform/upstream/gstreamer.git] / packaging / gstreamer.spec
1 %bcond_with x
2 %bcond_with wayland
3 %define gst_branch 1.0
4 %define _lib_gstreamer_dir %{_libdir}/gstreamer-%{gst_branch}
5 %define _lib_girepository %{_libdir}/girepository-%{gst_branch}
6
7 #######################################################################
8 ## how to build each plugin :
9 ## add define option at gbs build cmd like [ --define "plugin bad" ]
10 ## if not, all the source code in subprojects will be built
11 #######################################################################
12
13 %if 0%{?plugin:1}
14   %if "%{plugin}" == "core"
15     %define _name gstreamer
16     %define _core_opt ""
17   %endif
18   %if "%{plugin}" == "base" || "%{plugin}" == "good" || "%{plugin}" == "bad" || "%{plugin}" == "ugly"
19     %define _name gst-plugins-%{plugin}
20     %define _base_opt ""
21     %define _good_opt ""
22     %define _bad_opt ""
23     %define _ugly_opt ""
24   %endif
25   %if "%{plugin}" == "omx" || "%{plugin}" == "libav"
26     %define _name gst-%{plugin}
27     %define _omx_opt ""
28     %define _libav_opt ""
29   %endif
30   %if "%{plugin}" == "rs"
31     %define _name gst-rtsp-server
32     %define _rs_opt ""
33   %endif
34   %if "%{plugin}" == "es"
35     %define _name gst-editing-services
36     %define _es_opt ""
37   %endif
38
39   %define _source_path subprojects/%{_name}
40
41 %else
42
43   %define plugin all
44   %define _name gstreamer
45   %define _source_path .
46
47   # plugin option prefix
48   %define _core_opt gstreamer:
49   %define _base_opt gst-plugins-base:
50   %define _good_opt gst-plugins-good:
51   %define _bad_opt gst-plugins-bad:
52   %define _ugly_opt gst-plugins-ugly:
53   %define _omx_opt gst-omx:
54   %define _libav_opt gst-libav:
55   %define _rs_opt gst-rtsp-server:
56   %define _es_opt gst-editing-services:
57
58 %endif
59
60 Name:           %{_name}
61 Version:        1.20.0
62 Release:        6
63 Summary:        Streaming-Media Framework Runtime
64 License:        LGPL-2.0+
65 Group:          Multimedia/Framework
66 Url:            http://gstreamer.freedesktop.org/
67 Source0:        gstreamer-%{version}.tar.gz
68 Source1001:     gstreamer.manifest
69 BuildRequires:  meson >= 0.59.0
70 BuildRequires:  gettext-tools
71 BuildRequires:  pkgconfig(glib-2.0) >= 2.32.0
72
73
74 %if "%{plugin}" == "all" || "%{plugin}" == "core"
75
76 BuildRequires:  bison
77 BuildRequires:  fdupes
78 BuildRequires:  flex
79 BuildRequires:  libtool
80 BuildRequires:  pkgconfig(dlog)
81 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
82 BuildRequires:  pkgconfig(libxml-2.0)
83
84 %description -n gstreamer
85 GStreamer is a streaming-media framework, based on graphs of filters
86 which operate on media data. Applications using this library can do
87 anything from real-time sound processing to playing videos, and just
88 about anything else media-related.  Its plug-in-based architecture
89 means that new data types or processing capabilities can be added by
90 installing new plug-ins.
91
92 %package -n gstreamer-utils
93 Summary:        Streaming-Media Framework Runtime
94 Group:          Multimedia/Framework
95 Provides:       gstreamer:%{_bindir}/gst-launch-%{gst_branch} = %{version}
96 # Symbol for unversioned wrappers:
97 Provides:       gstreamer-utils_versioned = %{version}
98
99 %description -n gstreamer-utils
100 GStreamer is a streaming-media framework, based on graphs of filters
101 which operate on media data. Applications using this library can do
102 anything from real-time sound processing to playing videos, and just
103 about anything else media-related.  Its plug-in-based architecture
104 means that new data types or processing capabilities can be added by
105 installing new plug-ins.
106
107 %package -n gstreamer-devel
108 Summary:        Include Files and Libraries mandatory for Development
109 Group:          Development/Libraries
110 # gstreamer-utils is required for the gstreamer-provides rpm magic.
111 Requires:       gstreamer-utils = %{version}
112 Requires:       gstreamer = %{version}
113
114 %description -n gstreamer-devel
115 This package contains all necessary include files and libraries needed
116 to develop applications that require these.
117
118 %else
119
120 BuildRequires:  pkgconfig(gstreamer-1.0)
121
122 %if "%{plugin}" != "base"
123 BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
124 %endif
125
126 %endif
127
128 #######################################################
129 ## Package info of Base Plugin
130 #######################################################
131
132 %if "%{plugin}" == "all"
133 %package -n gst-plugins-base
134 Summary:        GStreamer Streaming-Media Framework Plug-Ins
135 Group:          Multimedia/Framework
136 %endif
137
138 %if "%{plugin}" == "all" || "%{plugin}" == "base"
139
140 BuildRequires:  orc >= 0.4.16
141 BuildRequires:  python
142 BuildRequires:  pkgconfig(alsa) >= 0.9.1
143 BuildRequires:  pkgconfig(freetype2) >= 2.0.9
144 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
145 BuildRequires:  pkgconfig(libdrm)
146 BuildRequires:  pkgconfig(libtbm)
147 BuildRequires:  pkgconfig(libxml-2.0)
148 BuildRequires:  pkgconfig(ogg) >= 1.0
149 BuildRequires:  pkgconfig(opus)
150 BuildRequires:  pkgconfig(theoradec) >= 1.1
151 BuildRequires:  pkgconfig(theoraenc) >= 1.1
152 BuildRequires:  pkgconfig(vorbis) >= 1.0
153 BuildRequires:  pkgconfig(vorbisenc) >= 1.0
154 BuildRequires:  pkgconfig(zlib)
155 %if "%{tizen_profile_name}" != "tv"
156 BuildRequires:  update-desktop-files
157 %endif
158 %if %{with wayland}
159 %if 0%{?enable_gl:1}
160 BuildRequires:  pkgconfig(gles20)
161 BuildRequires:  pkgconfig(wayland-egl) >= 9.0
162 %endif # wayland
163 %endif # gl
164 %if %{with x}
165 BuildRequires:  pkgconfig(dri2proto)
166 BuildRequires:  pkgconfig(libdri2)
167 BuildRequires:  pkgconfig(ice)
168 BuildRequires:  pkgconfig(sm)
169 BuildRequires:  pkgconfig(xext)
170 BuildRequires:  pkgconfig(xv)
171 BuildRequires:  pkgconfig(xfixes)
172 %endif
173 # gstreamer-utils is required for the gstreamer-provides rpm magic.
174 Requires:       gstreamer >= 1.0.0
175 Requires:       opus
176 Supplements:    gstreamer
177
178 %description -n gst-plugins-base
179 GStreamer is a streaming media framework based on graphs of filters
180 that operate on media data. Applications using this library can do
181 anything media-related, from real-time sound processing to playing
182 videos. Its plug-in-based architecture means that new data types or
183 processing capabilities can be added simply by installing new plug-ins.
184
185 %package -n gst-plugins-base-extension-adder
186 Summary:        libgstadder.so for gst-plugins-base
187 Requires:       gst-plugins-base = %{version}-%{release}
188 Provides:       gst-plugins-base-profile_mobile = %{version}-%{release}
189
190 %description -n gst-plugins-base-extension-adder
191 Libgstadder.so for gst-plugin-base. Supplicant for gst-plugin-base.
192 This is for Tizen mobile profile.
193
194 %package -n gst-plugins-base-devel
195 Summary:        Include files and Libraries
196 Requires:       gst-plugins-base = %{version}
197
198 %description -n gst-plugins-base-devel
199 This package contains all necessary include files and libraries needed
200 to compile and link applications that use gstreamer-plugins-base.
201
202 %endif
203
204 #######################################################
205 ## Package info of Good Plugin
206 #######################################################
207
208 %if "%{plugin}" == "all"
209 %package -n gst-plugins-good
210 Summary:        GStreamer Streaming-Media Framework Plug-Ins
211 Group:          Multimedia/Framework
212 %endif
213
214 %if "%{plugin}" == "all" || "%{plugin}" == "good"
215
216 BuildRequires:  libjpeg-devel
217 BuildRequires:  orc >= 0.4.16
218 BuildRequires:  python
219 BuildRequires:  xsltproc
220 BuildRequires:  pkgconfig(bzip2)
221 BuildRequires:  pkgconfig(cairo)
222 BuildRequires:  pkgconfig(cairo-gobject)
223 BuildRequires:  pkgconfig(gio-2.0)
224 BuildRequires:  pkgconfig(libpng) >= 1.2
225 BuildRequires:  pkgconfig(libpulse) >= 1.0
226 BuildRequires:  pkgconfig(libsoup-2.4)
227 BuildRequires:  pkgconfig(libtbm)
228 BuildRequires:  pkgconfig(libxml-2.0) >= 2.4.9
229 BuildRequires:  pkgconfig(vconf)
230 BuildRequires:  pkgconfig(vpx)
231 BuildRequires:  pkgconfig(zlib)
232 %if "%{tizen_profile_name}" != "tv"
233 BuildRequires:  pkgconfig(libv4l2)
234 %endif
235 %if %{with x}
236 BuildRequires:  pkgconfig(ice)
237 BuildRequires:  pkgconfig(sm)
238 BuildRequires:  pkgconfig(xdamage)
239 BuildRequires:  pkgconfig(xfixes)
240 # used by libgstvideo4linux2.so
241 BuildRequires:  pkgconfig(xv)
242 %endif
243 Requires:       gstreamer >= %{version}
244 Requires:       gst-plugins-base >= %{version}
245
246 %description -n gst-plugins-good
247 GStreamer is a streaming media framework based on graphs of filters
248 that operate on media data. Applications using this library can do
249 anything media-related, from real-time sound processing to playing
250 videos. Its plug-in-based architecture means that new data types or
251 processing capabilities can be added simply by installing new plug-ins.
252
253 %package -n gst-plugins-good-extra
254 Summary:        Complementary plugins for gst-plugins-good
255 Group:          Productivity/Multimedia/Other
256 Requires:       gst-plugins-good = %{version}
257 Enhances:       gst-plugins-good
258
259 %description -n gst-plugins-good-extra
260 This package provides complementary plugins for gst-plugins-good and
261 plugins not included in official Tizen images, which may be used for development / experimental purposes.
262
263 %endif
264
265 #######################################################
266 ## Package info of Bad Plugin
267 #######################################################
268
269 %if "%{plugin}" == "all"
270 %package -n gst-plugins-bad
271 Summary:        GStreamer Streaming-Media Framework Plug-Ins
272 Group:          Multimedia/Framework
273 %endif
274
275 %if "%{plugin}" == "all" || "%{plugin}" == "bad"
276
277 BuildRequires:  python
278 BuildRequires:  xsltproc
279 BuildRequires:  pkgconfig(gio-2.0) >= 2.25.0
280 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
281 BuildRequires:  pkgconfig(libcurl) >= 7.21.0
282 BuildRequires:  pkgconfig(libexif) >= 0.6.16
283 BuildRequires:  pkgconfig(libsrtp2) >= 2.1.0
284 BuildRequires:  pkgconfig(libusb-1.0)
285 BuildRequires:  pkgconfig(nice)
286 BuildRequires:  pkgconfig(openal)
287 BuildRequires:  pkgconfig(openssl1.1)
288 BuildRequires:  pkgconfig(opus)
289 BuildRequires:  pkgconfig(orc-0.4) >= 0.4.11
290 BuildRequires:  pkgconfig(sndfile) >= 1.0.16
291 BuildRequires:  pkgconfig(soundtouch) > 1.4
292 BuildRequires:  pkgconfig(usrsctp)
293 %if %{with wayland}
294 BuildRequires:  pkgconfig(libdrm)
295 BuildRequires:  pkgconfig(libxml-2.0)
296 BuildRequires:  pkgconfig(wayland-client) >= 1.0.0
297 BuildRequires:  pkgconfig(wayland-cursor) >= 1.0.0
298 BuildRequires:  pkgconfig(wayland-protocols)
299 %endif
300 %if %{with x}
301 BuildRequires:  pkgconfig(x11)
302 %endif
303 Requires:       gstreamer >= %{version}
304
305 %description -n gst-plugins-bad
306 GStreamer is a streaming media framework based on graphs of filters
307 that operate on media data. Applications using this library can do
308 anything media-related,from real-time sound processing to playing
309 videos. Its plug-in-based architecture means that new data types or
310 processing capabilities can be added simply by installing new plug-ins.
311
312 %package -n gst-plugins-bad-devel
313 Summary:        GStreamer Streaming-Media Framework Plug-Ins
314 Requires:       gst-plugins-bad = %{version}-%{release}
315 Requires:       gst-plugins-base-devel
316
317 %description -n gst-plugins-bad-devel
318 GStreamer is a streaming media framework based on graphs of filters
319 that operate on media data. Applications using this library can do
320 anything media-related,from real-time sound processing to playing
321 videos. Its plug-in-based architecture means that new data types or
322 processing capabilities can be added simply by installing new plug-ins.
323
324 %endif
325
326 #######################################################
327 ## Package info of Ugly Plugin
328 #######################################################
329
330 %if "%{plugin}" == "all"
331 %package -n gst-plugins-ugly
332 Summary:        GStreamer plugins from the "ugly" set
333 Group:          Multimedia/Framework
334 %endif
335
336 %if "%{plugin}" == "all" || "%{plugin}" == "ugly"
337
338 BuildRequires:  which
339 BuildRequires:  pkgconfig(opencore-amrwb)
340 %if "%{tizen_profile_name}" != "tv"
341 BuildRequires:  pkgconfig(opencore-amrnb)
342 %endif
343
344 %description -n gst-plugins-ugly
345  GStreamer is a streaming media framework, based on graphs of filters
346  which operate on media data.  Applications using this library can do
347  anything from real-time sound processing to playing videos, and just
348  about anything else media-related.  Its plugin-based architecture means
349  that new data types or processing capabilities can be added simply by
350  installing new plug-ins.
351  .
352  This packages contains plugins from the "ugly" set, a set of
353  good-quality plug-ins that might pose distribution problems.
354
355 %endif
356
357 #######################################################
358 ## Package info of Omx Plugin
359 #######################################################
360
361 %ifarch %{arm} aarch64
362
363 %if "%{plugin}" == "all"
364 %package -n gst-omx
365 Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
366 Group:          Multimedia/Framework
367 %endif
368
369 %if "%{plugin}" == "all" || "%{plugin}" == "omx"
370
371 BuildRequires:  which
372 BuildRequires:  pkgconfig(libtbm)
373 BuildRequires:  pkgconfig(mm-common)
374 %if "%{target}" == "rpi"
375 BuildRequires:  pkgconfig(bcm_host)
376 BuildRequires:  pkgconfig(brcmegl)
377 %endif
378
379 %description -n gst-omx
380 gst-openmax is a GStreamer plug-in that allows communication with OpenMAX IL components.
381 Multiple OpenMAX IL implementations can be used.
382
383 %endif
384
385 %endif # arch
386
387 #######################################################
388 ## Package info of libav Plugin
389 #######################################################
390
391 %if "%{plugin}" == "all"
392 %package -n gst-libav
393 Summary:        Libav plugin for GStreamer
394 Group:          Multimedia/Framework
395 %endif
396
397 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
398
399 BuildRequires:  bzip2-devel
400 BuildRequires:  gettext
401 BuildRequires:  which
402 BuildRequires:  yasm
403 BuildRequires:  pkgconfig(libavcodec)
404 BuildRequires:  pkgconfig(libavfilter)
405 BuildRequires:  pkgconfig(libavformat)
406 BuildRequires:  pkgconfig(libavutil)
407 BuildRequires:  pkgconfig(orc-0.4)
408 BuildRequires:  pkgconfig(theora)
409 BuildRequires:  pkgconfig(vorbis)
410 BuildRequires:  pkgconfig(zlib)
411
412 %description -n gst-libav
413 This GStreamer plugin supports a large number of audio and video compression
414 formats through the use of the libav library.  The plugin contains GStreamer
415 elements for decoding 90+ formats (AVI, MPEG, OGG, Matroska, ASF, ...),
416 demuxing 30+ formats and colorspace conversion.
417
418 %endif
419
420 #######################################################
421 ## Package info of rtsp-server Plugin
422 #######################################################
423
424 %if "%{plugin}" == "all"
425 %package -n gst-rtsp-server
426 Summary:        Multimedia Framework Library
427 Group:          System/Libraries
428 %endif
429
430 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
431
432 Requires(post):  /sbin/ldconfig
433 Requires(postun):  /sbin/ldconfig
434
435 %description -n gst-rtsp-server
436 This GStreamer plugin supports a large number of audio and video compression
437 formats through the use of the libav library.  The plugin contains GStreamer
438 elements for decoding 90+ formats (AVI, MPEG, OGG, Matroska, ASF, ...),
439 demuxing 30+ formats and colorspace conversion.
440
441 %package -n gst-rtsp-server-devel
442 Summary:        Multimedia Framework RTSP server library (DEV)
443 Group:          Development/Libraries
444 Requires:       gst-rtsp-server = %{version}-%{release}
445
446 %description -n gst-rtsp-server-devel
447
448 %endif
449
450 #######################################################
451 ## Package info of editing-services Plugin
452 #######################################################
453
454 %if "%{plugin}" == "all"
455 %package -n gst-editing-services
456 Summary:        GStreamer Editing Service Plug-Ins
457 Group:          Multimedia/Framework
458 %endif
459
460 %if "%{plugin}" == "all" || "%{plugin}" == "es"
461
462 BuildRequires:  flex
463 BuildRequires:  gtk-doc
464 BuildRequires:  pkgconfig(libxml-2.0)
465 Requires:       gstreamer >= 1.0.0
466 Supplements:    gstreamer
467
468 %description -n gst-editing-services
469 This is a high-level library for facilitating the creation of audio/video
470 non-linear editors.
471
472 %package -n gst-editing-services-devel
473 Summary:        Development files for gst-editing-services
474 Requires:       gst-editing-services = %{version}-%{release}
475
476 %description -n gst-editing-services-devel
477 This package contains libraries and header files for
478 developing applications that use %{name}
479
480 %endif
481
482 #######################################################
483 ## Prep
484 #######################################################
485
486 %prep
487 %setup -q -n gstreamer-%{version}
488 cp %{SOURCE1001} ./gstreamer.manifest
489 cp %{SOURCE1001} ./gst-plugins-base.manifest
490 cp %{SOURCE1001} ./gst-plugins-good.manifest
491 cp %{SOURCE1001} ./gst-plugins-bad.manifest
492 cp %{SOURCE1001} ./gst-plugins-ugly.manifest
493 cp %{SOURCE1001} ./gst-omx.manifest
494 cp %{SOURCE1001} ./gst-libav.manifest
495 cp %{SOURCE1001} ./gst-rtsp-server.manifest
496 cp %{SOURCE1001} ./gst-editing-services.manifest
497
498 #######################################################
499 ## Build
500 #######################################################
501
502 %build
503
504 %if "%{plugin}" != "all"
505 pushd %{_source_path}
506 %endif
507
508 mkdir -p build
509 export CFLAGS="%{optflags} \
510   -fno-strict-aliasing\
511   -fstack-protector-strong\
512   -Wl,-z,relro\
513   -D_FORTIFY_SOURCE=2"
514 export CXXFLAGS+=" -Wno-error"
515 export LDFLAGS+=" -pthread"
516
517 meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_datadir} --sysconfdir=%{_hal_sysconfdir} \
518 %ifarch x86_64 %{ix86}
519   -D omx=disabled \
520 %endif
521 %if "%{plugin}" == "all" || "%{plugin}" == "core"
522   -D %{_core_opt}check=enabled \
523   -D %{_core_opt}coretracers=enabled \
524   -D %{_core_opt}tools=enabled \
525   -D %{_core_opt}introspection=enabled \
526   -D %{_core_opt}extra-checks=enabled \
527   -D %{_core_opt}ptp-helper-permissions=none \
528 %endif
529 %if "%{plugin}" == "all" || "%{plugin}" == "base"
530   -D %{_base_opt}adder=enabled \
531   -D %{_base_opt}app=enabled \
532   -D %{_base_opt}audioconvert=enabled \
533   -D %{_base_opt}audiomixer=enabled \
534   -D %{_base_opt}audiorate=enabled \
535   -D %{_base_opt}audioresample=enabled \
536   -D %{_base_opt}audiotestsrc=enabled \
537   -D %{_base_opt}compositor=enabled \
538   -D %{_base_opt}encoding=enabled \
539   -D %{_base_opt}gio=enabled \
540   -D %{_base_opt}gio-typefinder=enabled \
541   -D %{_base_opt}overlaycomposition=enabled \
542   -D %{_base_opt}pbtypes=enabled \
543   -D %{_base_opt}playback=enabled \
544   -D %{_base_opt}rawparse=enabled \
545   -D %{_base_opt}subparse=enabled \
546   -D %{_base_opt}tcp=enabled \
547   -D %{_base_opt}typefind=enabled \
548   -D %{_base_opt}videoconvert=enabled \
549   -D %{_base_opt}videorate=enabled \
550   -D %{_base_opt}videoscale=enabled \
551   -D %{_base_opt}videotestsrc=enabled \
552   -D %{_base_opt}volume=enabled \
553   -D %{_base_opt}alsa=enabled \
554   -D %{_base_opt}ogg=enabled \
555   -D %{_base_opt}opus=enabled \
556   -D %{_base_opt}theora=enabled \
557   -D %{_base_opt}vorbis=enabled \
558   -D %{_base_opt}introspection=enabled \
559   -D %{_base_opt}tbm=true \
560   %if "%{tizen_profile_name}" == "tv"
561     -D %{_base_opt}tv-profile=true \
562   %else
563     %if 0%{?enable_gl:1}
564       -D %{_base_opt}gl=enabled \
565     %endif # gl
566   %endif # tv
567 %endif # base plugin
568 %if "%{plugin}" == "all" || "%{plugin}" == "good"
569   %if 0%{?ENABLE_AALIB}
570     -D %{_good_opt}aalib=enabled \
571   %endif
572   -D %{_good_opt}apetag=enabled \
573   -D %{_good_opt}audiofx=enabled \
574   -D %{_good_opt}audioparsers=enabled \
575   -D %{_good_opt}autodetect=enabled \
576   -D %{_good_opt}avi=enabled \
577   -D %{_good_opt}debugutils=enabled \
578   -D %{_good_opt}deinterlace=enabled \
579   -D %{_good_opt}effectv=enabled \
580   -D %{_good_opt}flv=enabled \
581   -D %{_good_opt}icydemux=enabled \
582   -D %{_good_opt}id3demux=enabled \
583   -D %{_good_opt}imagefreeze=enabled \
584   -D %{_good_opt}interleave=enabled \
585   -D %{_good_opt}isomp4=enabled \
586   -D %{_good_opt}law=enabled \
587   -D %{_good_opt}matroska=enabled \
588   -D %{_good_opt}multifile=enabled \
589   -D %{_good_opt}replaygain=enabled \
590   -D %{_good_opt}rtp=enabled \
591   -D %{_good_opt}rtpmanager=enabled \
592   -D %{_good_opt}rtsp=enabled \
593   -D %{_good_opt}smpte=enabled \
594   -D %{_good_opt}udp=enabled \
595   -D %{_good_opt}videobox=enabled \
596   -D %{_good_opt}videocrop=enabled \
597   -D %{_good_opt}videofilter=enabled \
598   -D %{_good_opt}videomixer=enabled \
599   -D %{_good_opt}wavenc=enabled \
600   -D %{_good_opt}wavparse=enabled \
601   -D %{_good_opt}v4l2=enabled \
602   -D %{_good_opt}cairo=enabled \
603   -D %{_good_opt}jpeg=enabled \
604   -D %{_good_opt}png=enabled \
605   -D %{_good_opt}pulse=enabled \
606   -D %{_good_opt}soup=enabled \
607   -D %{_good_opt}vpx=enabled \
608   -D %{_good_opt}tbm=true \
609   -D %{_good_opt}v4l2-probe=true \
610   %if "%{tizen_profile_name}" != "tv"
611     -D %{_good_opt}v4l2-libv4l2=enabled \
612   %endif # tv
613 %endif # plugin
614 %if "%{plugin}" == "all" || "%{plugin}" == "bad"
615   -D %{_bad_opt}gst_play_tests=false\
616   -D %{_bad_opt}introspection=disabled \
617   -D %{_bad_opt}audiobuffersplit=enabled \
618   -D %{_bad_opt}audiomixmatrix=enabled \
619   -D %{_bad_opt}audiolatency=enabled \
620   -D %{_bad_opt}coloreffects=enabled \
621   -D %{_bad_opt}debugutils=enabled \
622   -D %{_bad_opt}gaudieffects=enabled \
623   -D %{_bad_opt}gdp=enabled \
624   -D %{_bad_opt}midi=enabled \
625   -D %{_bad_opt}mpegtsmux=enabled \
626   -D %{_bad_opt}netsim=enabled \
627   -D %{_bad_opt}proxy=enabled \
628   -D %{_bad_opt}sdp=enabled \
629   -D %{_bad_opt}timecode=enabled \
630   -D %{_bad_opt}videoframe_audiolevel=enabled \
631   -D %{_bad_opt}videoparsers=enabled \
632   -D %{_bad_opt}ipcpipeline=enabled \
633   -D %{_bad_opt}shm=enabled \
634   -D %{_bad_opt}aes=enabled \
635   -D %{_bad_opt}dtls=enabled \
636   -D %{_bad_opt}openal=enabled \
637   -D %{_bad_opt}opus=enabled \
638   -D %{_bad_opt}sctp=enabled \
639   -D %{_bad_opt}soundtouch=enabled \
640   -D %{_bad_opt}srtp=enabled \
641   -D %{_bad_opt}wayland=enabled \
642   -D %{_bad_opt}webrtc=enabled \
643   %if %{with wayland}
644     -D %{_bad_opt}wayland=enabled \
645   %endif
646   %if "%{tizen_profile_name}" == "tv"
647     -D %{_bad_opt}tv-profile=true \
648   %else
649     -D %{_bad_opt}autoconvert=enabled \
650     -D %{_bad_opt}id3tag=enabled \
651     -D %{_bad_opt}camerabin2=enabled \
652     -D %{_bad_opt}jpegformat=enabled \
653     -D %{_bad_opt}dash=enabled \
654     -D %{_bad_opt}hls=enabled \
655     -D %{_bad_opt}mpegdemux=enabled \
656     -D %{_bad_opt}mpegtsdemux=enabled \
657     -D %{_bad_opt}rtp=enabled \
658     -D %{_bad_opt}smoothstreaming=enabled \
659     %if 0%{?enable_gl:1}
660       -D %{_bad_opt}gl=enabled \
661     %endif # gl
662   %endif # tv
663 %endif # plugin
664 %if "%{plugin}" == "all" || "%{plugin}" == "ugly"
665   -D %{_ugly_opt}amrwbdec=enabled \
666   %if "%{tizen_profile_name}" == "tv"
667     -D %{_ugly_opt}tv-profile=true \
668   %else
669   -D %{_ugly_opt}asfdemux=enabled \
670   -D %{_ugly_opt}amrnb=enabled \
671   %endif # tv
672 %endif # plugin
673 %ifarch %{arm} aarch64
674   %if "%{plugin}" == "all" || "%{plugin}" == "omx"
675     %if "%{target}" == "rpi"
676       -D %{_omx_opt}target=rpi \
677       -D %{_omx_opt}header_path=/opt/vc/include/interface/vmcs_host/khronos/IL \
678     %else
679       %ifarch aarch64
680         -D %{_omx_opt}target=exynos64 \
681       %else
682         -D %{_omx_opt}target=exynos \
683         -D %{_omx_opt}vp9=true \
684       %endif # arch
685     %endif # target
686   %endif # plugin
687 %endif # arch
688 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
689   %if "%{tizen_profile_name}" == "tv"
690     -D %{_libav_opt}tv-profile=true \
691   %endif # tv
692 %endif # plugin
693 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
694   -D %{_rs_opt}rtspclientsink=enabled \
695   -D %{_rs_opt}introspection=disabled \
696 %endif
697 %if "%{plugin}" == "all" || "%{plugin}" == "es"
698   -D %{_es_opt}introspection=disabled \
699   -D %{_es_opt}tools=enabled \
700   -D %{_es_opt}xptv=enabled \
701   -D %{_es_opt}python=enabled \
702 %endif
703   build
704
705 ninja -C build all %{?_smp_mflags}
706
707 %if "%{plugin}" != "all"
708 popd
709 %endif
710
711 #######################################################
712 ## Install
713 #######################################################
714
715 %install
716 rm -rf %{buildroot}
717 export DESTDIR=%{buildroot}
718 ninja -C %{_source_path}/build install
719 mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
720 rm -rf %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/encoding-profiles
721 rm -rf %{buildroot}%{_datadir}/locale
722
723 %clean
724 rm -rf $RPM_BUILD_ROOT
725
726 %post -p /sbin/ldconfig
727 %postun -p /sbin/ldconfig
728
729 #######################################################
730 ## Packaging rpms
731 #######################################################
732
733 ###################### gstreamer ######################
734
735 %if "%{plugin}" == "all" || "%{plugin}" == "core"
736
737 %files -n gstreamer
738 %manifest gstreamer.manifest
739 %defattr(-, root, root)
740 %license subprojects/gstreamer/COPYING
741 %dir %{_datadir}/gstreamer-%{gst_branch}
742 %dir %{_datadir}/gstreamer-%{gst_branch}/presets
743 %dir %{_lib_gstreamer_dir}
744 %{_lib_gstreamer_dir}/libgstcoreelements.so
745 %{_lib_gstreamer_dir}/libgstcoretracers.so
746 %dir %{_libexecdir}/gstreamer-%{gst_branch}
747 %{_libexecdir}/gstreamer-%{gst_branch}/gst-hotdoc-plugins-scanner
748 %{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
749 %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
750 %exclude %{_libexecdir}/gstreamer-%{gst_branch}/gst-plugins-doc-cache-generator
751 %{_libdir}/libgstbase-%{gst_branch}.so.*
752 %{_libdir}/libgstcontroller-%{gst_branch}.so.*
753 %{_libdir}/libgstnet-%{gst_branch}.so.*
754 %{_libdir}/libgstcheck-%{gst_branch}.so.*
755 %{_libdir}/libgstreamer-%{gst_branch}.so.*
756 %{_lib_girepository}/Gst-%{gst_branch}.typelib
757 %{_lib_girepository}/GstBase-%{gst_branch}.typelib
758 %{_lib_girepository}/GstController-%{gst_branch}.typelib
759 %{_lib_girepository}/GstNet-%{gst_branch}.typelib
760 %{_lib_girepository}/GstCheck-%{gst_branch}.typelib
761 %{_datadir}/gdb/auto-load/usr/%{_lib}/libgstreamer-%{gst_branch}*-gdb.py
762 %{_datadir}/gstreamer-%{gst_branch}/gdb/glib_gobject_helper.py
763 %{_datadir}/gstreamer-%{gst_branch}/gdb/gst_gdb.py
764
765 %files -n gstreamer-utils
766 %manifest gstreamer.manifest
767 %defattr(-, root, root)
768 %license subprojects/gstreamer/COPYING
769 %{_bindir}/gst-inspect-%{gst_branch}
770 %{_bindir}/gst-launch-%{gst_branch}
771 %{_bindir}/gst-stats-%{gst_branch}
772 %{_bindir}/gst-typefind-%{gst_branch}
773 %exclude %doc %{_mandir}/man?/*-%{gst_branch}.*
774
775 %files -n gstreamer-devel
776 %manifest gstreamer.manifest
777 %defattr(-, root, root)
778 %{_datadir}/aclocal/gst-element-check-%{gst_branch}.m4
779 %{_includedir}/gstreamer-%{gst_branch}/gst/*.h
780 %{_includedir}/gstreamer-%{gst_branch}/gst/base/*
781 %{_includedir}/gstreamer-%{gst_branch}/gst/controller/*
782 %{_includedir}/gstreamer-%{gst_branch}/gst/net/*
783 %{_includedir}/gstreamer-%{gst_branch}/gst/check/*
784 %{_libdir}/libgstbase-%{gst_branch}.so
785 %{_libdir}/libgstcontroller-%{gst_branch}.so
786 %{_libdir}/libgstnet-%{gst_branch}.so
787 %{_libdir}/libgstcheck-%{gst_branch}.so
788 %{_libdir}/libgstreamer-%{gst_branch}.so
789 %{_libdir}/pkgconfig/gstreamer-%{gst_branch}.pc
790 %{_libdir}/pkgconfig/gstreamer-base-%{gst_branch}.pc
791 %{_libdir}/pkgconfig/gstreamer-controller-%{gst_branch}.pc
792 %{_libdir}/pkgconfig/gstreamer-net-%{gst_branch}.pc
793 %{_libdir}/pkgconfig/gstreamer-check-%{gst_branch}.pc
794 %{_datadir}/gir-%{gst_branch}/Gst-%{gst_branch}.gir
795 %{_datadir}/gir-%{gst_branch}/GstBase-%{gst_branch}.gir
796 %{_datadir}/gir-%{gst_branch}/GstController-%{gst_branch}.gir
797 %{_datadir}/gir-%{gst_branch}/GstNet-%{gst_branch}.gir
798 %{_datadir}/gir-%{gst_branch}/GstCheck-%{gst_branch}.gir
799
800 %changelog
801
802 %endif
803
804 ###################### gst-plugins-base ######################
805
806 %if "%{plugin}" == "all" || "%{plugin}" == "base"
807
808 %files -n gst-plugins-base
809 %manifest gst-plugins-base.manifest
810 %defattr(-, root, root)
811 %license subprojects/gst-plugins-base/COPYING
812 %{_lib_gstreamer_dir}/libgstalsa.so
813 %{_lib_gstreamer_dir}/libgstapp.so
814 %{_lib_gstreamer_dir}/libgstaudioconvert.so
815 %{_lib_gstreamer_dir}/libgstaudiorate.so
816 %{_lib_gstreamer_dir}/libgstaudioresample.so
817 %{_lib_gstreamer_dir}/libgstaudiotestsrc.so
818 %{_lib_gstreamer_dir}/libgstgio.so
819 %{_lib_gstreamer_dir}/libgstogg.so
820 %{_lib_gstreamer_dir}/libgstplayback.so
821 %{_lib_gstreamer_dir}/libgstoverlaycomposition.so
822 %{_lib_gstreamer_dir}/libgstsubparse.so
823 %{_lib_gstreamer_dir}/libgsttcp.so
824 %{_lib_gstreamer_dir}/libgsttheora.so
825 %{_lib_gstreamer_dir}/libgsttypefindfunctions.so
826 %{_lib_gstreamer_dir}/libgstvideoconvert.so
827 %{_lib_gstreamer_dir}/libgstvideorate.so
828 %{_lib_gstreamer_dir}/libgstvideoscale.so
829 %{_lib_gstreamer_dir}/libgstvideotestsrc.so
830 %{_lib_gstreamer_dir}/libgstvolume.so
831 %{_lib_gstreamer_dir}/libgstvorbis.so
832 %{_lib_gstreamer_dir}/libgstpbtypes.so
833 %{_lib_gstreamer_dir}/libgstrawparse.so
834 %{_lib_gstreamer_dir}/libgstopus.so
835 %{_lib_gstreamer_dir}/libgstencoding.so
836 %{_lib_gstreamer_dir}/libgstaudiomixer.so
837 %{_lib_gstreamer_dir}/libgstcompositor.so
838 %if %{with x}
839 %{_lib_gstreamer_dir}/libgstximagesink.so
840 %{_lib_gstreamer_dir}/libgstxvimagesink.so
841 %endif
842 %{_libdir}/libgstapp-%{gst_branch}.so.*
843 %{_libdir}/libgstaudio-%{gst_branch}.so.*
844 %{_libdir}/libgstallocators-%{gst_branch}.so.*
845 %{_libdir}/libgstfft-%{gst_branch}.so.*
846 %{_libdir}/libgstpbutils-%{gst_branch}.so.*
847 %{_libdir}/libgstriff-%{gst_branch}.so.*
848 %{_libdir}/libgstrtp-%{gst_branch}.so.*
849 %{_libdir}/libgstrtsp-%{gst_branch}.so.*
850 %{_libdir}/libgstsdp-%{gst_branch}.so.*
851 %{_libdir}/libgsttag-%{gst_branch}.so.*
852 %{_libdir}/libgstvideo-%{gst_branch}.so.*
853 %{_lib_girepository}/GstAllocators-%{gst_branch}.typelib
854 %{_lib_girepository}/GstApp-%{gst_branch}.typelib
855 %{_lib_girepository}/GstAudio-%{gst_branch}.typelib
856 %{_lib_girepository}/GstPbutils-%{gst_branch}.typelib
857 %{_lib_girepository}/GstRtp-%{gst_branch}.typelib
858 %{_lib_girepository}/GstRtsp-%{gst_branch}.typelib
859 %{_lib_girepository}/GstSdp-%{gst_branch}.typelib
860 %{_lib_girepository}/GstTag-%{gst_branch}.typelib
861 %{_lib_girepository}/GstVideo-%{gst_branch}.typelib
862 %dir %{_datadir}/gst-plugins-base/
863 %dir %{_datadir}/gst-plugins-base/%{gst_branch}/
864 %{_datadir}/gst-plugins-base/%{gst_branch}/license-translations.dict
865
866 %files -n gst-plugins-base-extension-adder
867 %{_lib_gstreamer_dir}/libgstadder.so
868 %license subprojects/gst-plugins-base/COPYING
869
870 %files -n gst-plugins-base-devel
871 %manifest gst-plugins-base.manifest
872 %defattr(-, root, root)
873 %{_includedir}/gstreamer-%{gst_branch}/gst/allocators/*
874 %{_includedir}/gstreamer-%{gst_branch}/gst/app/*
875 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/*
876 %{_includedir}/gstreamer-%{gst_branch}/gst/fft/*
877 %{_includedir}/gstreamer-%{gst_branch}/gst/pbutils/*
878 %{_includedir}/gstreamer-%{gst_branch}/gst/riff/*
879 %{_includedir}/gstreamer-%{gst_branch}/gst/rtp/*
880 %{_includedir}/gstreamer-%{gst_branch}/gst/rtsp/*
881 %{_includedir}/gstreamer-%{gst_branch}/gst/sdp/*
882 %{_includedir}/gstreamer-%{gst_branch}/gst/tag/*
883 %{_includedir}/gstreamer-%{gst_branch}/gst/video/*
884 %if "%{plugin}" == "all"
885 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/audio-bad-prelude.h
886 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstnonstreamaudiodecoder.h
887 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstplanaraudioadapter.h
888 %endif
889 %{_libdir}/libgstallocators-%{gst_branch}.so
890 %{_libdir}/libgstapp-%{gst_branch}.so
891 %{_libdir}/libgstaudio-%{gst_branch}.so
892 %{_libdir}/libgstfft-%{gst_branch}.so
893 %{_libdir}/libgstpbutils-%{gst_branch}.so
894 %{_libdir}/libgstriff-%{gst_branch}.so
895 %{_libdir}/libgstrtp-%{gst_branch}.so
896 %{_libdir}/libgstrtsp-%{gst_branch}*.so
897 %{_libdir}/libgstsdp-%{gst_branch}.so
898 %{_libdir}/libgsttag-%{gst_branch}.so
899 %{_libdir}/libgstvideo-%{gst_branch}.so
900 %{_libdir}/pkgconfig/gstreamer-allocators-%{gst_branch}.pc
901 %{_libdir}/pkgconfig/gstreamer-app-%{gst_branch}.pc
902 %{_libdir}/pkgconfig/gstreamer-audio-%{gst_branch}.pc
903 %{_libdir}/pkgconfig/gstreamer-fft-%{gst_branch}.pc
904 %{_libdir}/pkgconfig/gstreamer-pbutils-%{gst_branch}.pc
905 %{_libdir}/pkgconfig/gstreamer-plugins-base-%{gst_branch}.pc
906 %{_libdir}/pkgconfig/gstreamer-riff-%{gst_branch}.pc
907 %{_libdir}/pkgconfig/gstreamer-rtp-%{gst_branch}.pc
908 %{_libdir}/pkgconfig/gstreamer-rtsp-%{gst_branch}.pc
909 %{_libdir}/pkgconfig/gstreamer-sdp-%{gst_branch}.pc
910 %{_libdir}/pkgconfig/gstreamer-tag-%{gst_branch}.pc
911 %{_libdir}/pkgconfig/gstreamer-video-%{gst_branch}.pc
912 %{_datadir}/gir-%{gst_branch}/GstAllocators-%{gst_branch}.gir
913 %{_datadir}/gir-%{gst_branch}/GstApp-%{gst_branch}.gir
914 %{_datadir}/gir-%{gst_branch}/GstAudio-%{gst_branch}.gir
915 %{_datadir}/gir-%{gst_branch}/GstPbutils-%{gst_branch}.gir
916 %{_datadir}/gir-%{gst_branch}/GstRtp-%{gst_branch}.gir
917 %{_datadir}/gir-%{gst_branch}/GstRtsp-%{gst_branch}.gir
918 %{_datadir}/gir-%{gst_branch}/GstSdp-%{gst_branch}.gir
919 %{_datadir}/gir-%{gst_branch}/GstTag-%{gst_branch}.gir
920 %{_datadir}/gir-%{gst_branch}/GstVideo-%{gst_branch}.gir
921
922 %endif
923
924 ###################### gst-plugins-good ######################
925
926 %if "%{plugin}" == "all" || "%{plugin}" == "good"
927
928 %files -n gst-plugins-good
929 %manifest gst-plugins-good.manifest
930 %defattr(-, root, root)
931 %license subprojects/gst-plugins-good/COPYING
932 %{_lib_gstreamer_dir}/libgstalaw.so
933 %{_lib_gstreamer_dir}/libgstapetag.so
934 %{_lib_gstreamer_dir}/libgstaudiofx.so
935 %{_lib_gstreamer_dir}/libgstaudioparsers.so
936 %{_lib_gstreamer_dir}/libgstautodetect.so
937 %{_lib_gstreamer_dir}/libgstavi.so
938 %{_lib_gstreamer_dir}/libgstdebug.so
939 %{_lib_gstreamer_dir}/libgstdeinterlace.so
940 %{_lib_gstreamer_dir}/libgsteffectv.so
941 %{_lib_gstreamer_dir}/libgsticydemux.so
942 %{_lib_gstreamer_dir}/libgstid3demux.so
943 %{_lib_gstreamer_dir}/libgstinterleave.so
944 %{_lib_gstreamer_dir}/libgstisomp4.so
945 %{_lib_gstreamer_dir}/libgstjpeg.so
946 %{_lib_gstreamer_dir}/libgstmatroska.so
947 %{_lib_gstreamer_dir}/libgstmulaw.so
948 %{_lib_gstreamer_dir}/libgstmultifile.so
949 %{_lib_gstreamer_dir}/libgstnavigationtest.so
950 %{_lib_gstreamer_dir}/libgstpulseaudio.so
951 %{_lib_gstreamer_dir}/libgstreplaygain.so
952 %{_lib_gstreamer_dir}/libgstrtp.so
953 %{_lib_gstreamer_dir}/libgstrtpmanager.so
954 %{_lib_gstreamer_dir}/libgstrtsp.so
955 %{_lib_gstreamer_dir}/libgstsmpte.so
956 %{_lib_gstreamer_dir}/libgstudp.so
957 %{_lib_gstreamer_dir}/libgstvideo4linux2.so
958 %{_lib_gstreamer_dir}/libgstvideocrop.so
959 %{_lib_gstreamer_dir}/libgstvideofilter.so
960 %{_lib_gstreamer_dir}/libgstwavenc.so
961 %{_lib_gstreamer_dir}/libgstwavparse.so
962 %if %{with x}
963 %{_lib_gstreamer_dir}/libgstximagesrc.so
964 %endif
965 %{_lib_gstreamer_dir}/libgstcairo.so
966 %{_lib_gstreamer_dir}/libgstsoup.so
967 %{_lib_gstreamer_dir}/libgstvpx.so
968 %{_lib_gstreamer_dir}/libgstimagefreeze.so
969 %if "%{tizen_profile_name}" != "tv"
970 %{_lib_gstreamer_dir}/libgstflv.so
971 %{_lib_gstreamer_dir}/libgstvideobox.so
972 %{_lib_gstreamer_dir}/libgstvideomixer.so
973 %{_datadir}/gstreamer-%{gst_branch}/presets/GstQTMux.prs
974 %endif
975 %{_datadir}/gstreamer-%{gst_branch}/presets/GstVP8Enc.prs
976
977 %files -n gst-plugins-good-extra
978 %manifest gst-plugins-good.manifest
979 %defattr(-, root, root)
980 %license subprojects/gst-plugins-good/COPYING
981 %if 0%{?ENABLE_AALIB}
982 %{_lib_gstreamer_dir}/libgstaasink.so
983 %endif
984 %{_lib_gstreamer_dir}/libgstpng.so
985 %{_lib_gstreamer_dir}/libgstimagefreeze.so
986
987 %endif
988
989 ###################### gst-plugins-bad ######################
990
991 %if "%{plugin}" == "all" || "%{plugin}" == "bad"
992
993 %files -n gst-plugins-bad
994 %manifest gst-plugins-bad.manifest
995 %defattr(-, root, root)
996 %license subprojects/gst-plugins-bad/COPYING
997 %if "%{tizen_profile_name}" != "tv"
998 %{_lib_gstreamer_dir}/libgstautoconvert.so
999 %{_lib_gstreamer_dir}/libgstcamerabin.so
1000 %{_lib_gstreamer_dir}/libgstid3tag.so
1001 %{_lib_gstreamer_dir}/libgstjpegformat.so
1002 %{_lib_gstreamer_dir}/libgstmpegpsdemux.so
1003 %{_lib_gstreamer_dir}/libgstsmoothstreaming.so
1004 %{_lib_gstreamer_dir}/libgstdash.so
1005 %if 0%{?enable_gl:1}
1006 %{_lib_gstreamer_dir}/libgstopengl.so
1007 %endif
1008 %{_lib_gstreamer_dir}/libgstsoundtouch.so
1009 %{_libdir}/libgstadaptivedemux-%{gst_branch}.so.0*
1010 %{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*
1011 %{_libdir}/libgstinsertbin-%{gst_branch}.so.0*
1012 %{_libdir}/libgstphotography-%{gst_branch}.so.0*
1013 %{_libdir}/libgsturidownloader-%{gst_branch}.so.0*
1014 %if 0%{?enable_gl:1}
1015 %{_libdir}/libgstgl-%{gst_branch}.so.0*
1016 %endif
1017 %{_libdir}/libgstisoff-%{gst_branch}.so.0*
1018 %endif
1019 %{_lib_gstreamer_dir}/libgstaes.so
1020 %{_lib_gstreamer_dir}/libgstgdp.so
1021 %{_lib_gstreamer_dir}/libgstdebugutilsbad.so
1022 %{_lib_gstreamer_dir}/libgstmpegtsdemux.so
1023 %{_lib_gstreamer_dir}/libgstmpegtsmux.so
1024 %{_lib_gstreamer_dir}/libgstsdpelem.so
1025 %{_lib_gstreamer_dir}/libgstshm.so
1026 %{_lib_gstreamer_dir}/libgstvideoparsersbad.so
1027 %{_lib_gstreamer_dir}/libgstmidi.so
1028 %{_lib_gstreamer_dir}/libgstopenal.so
1029 %{_lib_gstreamer_dir}/libgsthls.so
1030 %{_lib_gstreamer_dir}/libgstnetsim.so
1031 %{_lib_gstreamer_dir}/libgsttimecode.so
1032 %{_lib_gstreamer_dir}/libgstvideoframe_audiolevel.so
1033 %{_lib_gstreamer_dir}/libgstaudiomixmatrix.so
1034 %{_lib_gstreamer_dir}/libgstaudiobuffersplit.so
1035 %{_lib_gstreamer_dir}/libgstaudiolatency.so
1036 %{_lib_gstreamer_dir}/libgstipcpipeline.so
1037 %{_lib_gstreamer_dir}/libgstproxy.so
1038 %{_lib_gstreamer_dir}/libgstnice.so
1039 %{_lib_gstreamer_dir}/libgstwebrtc.so
1040 %{_lib_gstreamer_dir}/libgstdtls.so
1041 %{_lib_gstreamer_dir}/libgstrtpmanagerbad.so
1042 %{_lib_gstreamer_dir}/libgstsctp.so
1043 %{_lib_gstreamer_dir}/libgstsrtp.so
1044 %{_lib_gstreamer_dir}/libgstopusparse.so
1045 %{_lib_gstreamer_dir}/libgstgaudieffects.so
1046 %{_lib_gstreamer_dir}/libgstcoloreffects.so
1047 %if %{with wayland}
1048 %{_lib_gstreamer_dir}/libgstwaylandsink.so
1049 %endif
1050 %{_libdir}/libgstbadaudio-%{gst_branch}.so.0*
1051 %{_libdir}/libgstcodecs-%{gst_branch}.so.0*
1052 %{_libdir}/libgstcodecparsers-%{gst_branch}.so.0*
1053 %{_libdir}/libgstmpegts-%{gst_branch}.so.0*
1054 %{_libdir}/libgstplay-%{gst_branch}.so.0*
1055 %{_libdir}/libgstplayer-%{gst_branch}.so.0*
1056 %{_libdir}/libgstsctp-%{gst_branch}.so.0*
1057 %{_libdir}/libgsttranscoder-%{gst_branch}.so.0*
1058 %{_libdir}/libgstwebrtc-%{gst_branch}.so.0*
1059 %if %{with wayland}
1060 %{_libdir}/libgstwayland-%{gst_branch}.so.0*
1061 %endif
1062 %exclude %{_bindir}/gst-transcoder-%{gst_branch}
1063 %exclude %{_libdir}/debug/*
1064
1065 %files -n gst-plugins-bad-devel
1066 %manifest gst-plugins-bad.manifest
1067 %defattr(-, root, root)
1068 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/audio-bad-prelude.h
1069 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstnonstreamaudiodecoder.h
1070 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstplanaraudioadapter.h
1071 %{_includedir}/gstreamer-%{gst_branch}/gst/basecamerabinsrc/*
1072 %{_includedir}/gstreamer-%{gst_branch}/gst/codecparsers/*
1073 %{_includedir}/gstreamer-%{gst_branch}/gst/insertbin/*
1074 %{_includedir}/gstreamer-%{gst_branch}/gst/interfaces/*
1075 %{_includedir}/gstreamer-%{gst_branch}/gst/isoff/*
1076 %{_includedir}/gstreamer-%{gst_branch}/gst/mpegts/*
1077 %{_includedir}/gstreamer-%{gst_branch}/gst/play/*
1078 %{_includedir}/gstreamer-%{gst_branch}/gst/player/*
1079 %{_includedir}/gstreamer-%{gst_branch}/gst/sctp/*
1080 %{_includedir}/gstreamer-%{gst_branch}/gst/transcoder/*
1081 %{_includedir}/gstreamer-%{gst_branch}/gst/uridownloader/*
1082 %if %{with wayland}
1083 %{_includedir}/gstreamer-%{gst_branch}/gst/wayland/*
1084 %endif
1085 %{_includedir}/gstreamer-%{gst_branch}/gst/webrtc/*
1086 %if "%{tizen_profile_name}" != "tv"
1087 %if 0%{?enable_gl:1}
1088 %{_lib_gstreamer_dir}/include/gst/gl/*
1089 %endif
1090 %endif
1091 %{_libdir}/libgstadaptivedemux*.so
1092 %{_libdir}/libgstbadaudio*.so
1093 %{_libdir}/libgstbasecamerabinsrc*.so
1094 %{_libdir}/libgstcodecparsers*.so
1095 %{_libdir}/libgstcodecs*.so
1096 %{_libdir}/libgstinsertbin*.so
1097 %{_libdir}/libgstisoff*.so
1098 %{_libdir}/libgstmpegts*.so
1099 %{_libdir}/libgstphotography*.so
1100 %{_libdir}/libgstplay*.so
1101 %{_libdir}/libgstsctp*.so
1102 %{_libdir}/libgsttranscoder*.so
1103 %{_libdir}/libgsturidownloader*.so
1104 %if %{with wayland}
1105 %{_libdir}/libgstwayland*.so
1106 %endif
1107 %{_libdir}/libgstwebrtc*.so
1108 %{_libdir}/pkgconfig/gstreamer-bad-audio-%{gst_branch}.pc
1109 %{_libdir}/pkgconfig/gstreamer-codecparsers-%{gst_branch}.pc
1110 %if "%{tizen_profile_name}" != "tv"
1111 %if 0%{?enable_gl:1}
1112 %{_libdir}/pkgconfig/gstreamer-gl-*.pc
1113 %endif
1114 %endif
1115 %{_libdir}/pkgconfig/gstreamer-insertbin-%{gst_branch}.pc
1116 %{_libdir}/pkgconfig/gstreamer-mpegts-%{gst_branch}.pc
1117 %{_libdir}/pkgconfig/gstreamer-photography-%{gst_branch}.pc
1118 %{_libdir}/pkgconfig/gstreamer-play-%{gst_branch}.pc
1119 %{_libdir}/pkgconfig/gstreamer-player-%{gst_branch}.pc
1120 %{_libdir}/pkgconfig/gstreamer-plugins-bad-%{gst_branch}.pc
1121 %{_libdir}/pkgconfig/gstreamer-sctp-%{gst_branch}.pc
1122 %{_libdir}/pkgconfig/gstreamer-transcoder-%{gst_branch}.pc
1123 %if %{with wayland}
1124 %{_libdir}/pkgconfig/gstreamer-wayland-%{gst_branch}.pc
1125 %endif
1126 %{_libdir}/pkgconfig/gstreamer-webrtc-%{gst_branch}.pc
1127
1128 %endif
1129
1130 ###################### gst-plugins-ugly ######################
1131
1132 %if "%{plugin}" == "all" || "%{plugin}" == "ugly"
1133
1134 %files -n gst-plugins-ugly
1135 %manifest gst-plugins-ugly.manifest
1136 %defattr(-,root,root,-)
1137 %license subprojects/gst-plugins-ugly/COPYING
1138 %if "%{tizen_profile_name}" != "tv"
1139 %{_lib_gstreamer_dir}/libgstasf.so
1140 %{_lib_gstreamer_dir}/libgstamrnb.so
1141 %exclude %{_datadir}/gstreamer-%{gst_branch}/presets/GstAmrnbEnc.prs
1142 %endif
1143 %{_lib_gstreamer_dir}/libgstamrwbdec.so
1144
1145 %endif
1146
1147 ########################## gst-omx ###########################
1148 %ifarch %{arm} aarch64
1149
1150 %if "%{plugin}" == "all" || "%{plugin}" == "omx"
1151
1152 %files -n gst-omx
1153 %manifest gst-omx.manifest
1154 %defattr(-,root,root,-)
1155 %license subprojects/gst-omx/COPYING
1156 %{_lib_gstreamer_dir}/libgstomx.so
1157
1158 %endif
1159
1160 %endif # arch
1161
1162 ######################## gst-libav ###########################
1163
1164 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
1165
1166 %files -n gst-libav
1167 %manifest gst-libav.manifest
1168 %defattr(-,root,root,-)
1169 %license subprojects/gst-libav/COPYING
1170 %{_lib_gstreamer_dir}/libgstlibav.so
1171
1172 %endif
1173
1174 ###################### gst-rtsp-server #######################
1175
1176 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
1177
1178 %files -n gst-rtsp-server
1179 %manifest gst-rtsp-server.manifest
1180 %defattr(-,root,root,-)
1181 %license subprojects/gst-rtsp-server/COPYING
1182 %{_libdir}/libgstrtspserver*.so.*
1183 %{_lib_gstreamer_dir}/libgstrtspclientsink.so
1184
1185 %files -n gst-rtsp-server-devel
1186 %defattr(-,root,root,-)
1187 %{_libdir}/libgstrtspserver*.so
1188 %{_includedir}/gstreamer-%{gst_branch}/gst/rtsp-server/rtsp-*.h
1189 %{_includedir}/gstreamer-%{gst_branch}/gst/rtsp-server/gstwfd*.h
1190 %{_libdir}/pkgconfig/gstreamer-rtsp-server-%{gst_branch}.pc
1191
1192 %endif
1193
1194 ###################### gst-editing-services #######################
1195
1196 %if "%{plugin}" == "all" || "%{plugin}" == "es"
1197
1198 %files -n gst-editing-services
1199 %manifest gst-editing-services.manifest
1200 %defattr(-,root,root,-)
1201 %license subprojects/gst-editing-services/COPYING
1202 %{_libdir}/libges-%{gst_branch}.so.*
1203 %{_lib_gstreamer_dir}/libgstges.so
1204 %{_lib_gstreamer_dir}/libgstnle.so
1205 %exclude %{_libdir}/gst-validate-launcher/python/launcher/apps/geslaunch.py
1206 %exclude %{_datadir}/gstreamer-%{gst_branch}/validate/scenarios/ges-edit-clip-while-paused.scenario
1207 %{_bindir}/ges-launch-%{gst_branch}
1208
1209 %files -n gst-editing-services-devel
1210 %{_libdir}/libges-%{gst_branch}.so
1211 %{_includedir}/gstreamer-%{gst_branch}/ges/*
1212 %{_libdir}/pkgconfig/gst-editing-services-%{gst_branch}.pc
1213
1214 %endif