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