build: downgrade of meson
[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:        0
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.52.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 %if "%{plugin}" == "all"
362 %package -n gst-omx
363 Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
364 Group:          Multimedia/Framework
365 %endif
366
367 %if "%{plugin}" == "all" || "%{plugin}" == "omx"
368
369 BuildRequires:  which
370 BuildRequires:  pkgconfig(libtbm)
371 BuildRequires:  pkgconfig(mm-common)
372 %if "%{target}" == "rpi"
373 BuildRequires:  pkgconfig(bcm_host)
374 BuildRequires:  pkgconfig(brcmegl)
375 %endif
376 ExclusiveArch: %arm aarch64
377
378 %description -n gst-omx
379 gst-openmax is a GStreamer plug-in that allows communication with OpenMAX IL components.
380 Multiple OpenMAX IL implementations can be used.
381
382 %endif
383
384 #######################################################
385 ## Package info of libav Plugin
386 #######################################################
387
388 %if "%{plugin}" == "all"
389 %package -n gst-libav
390 Summary:        Libav plugin for GStreamer
391 Group:          Multimedia/Framework
392 %endif
393
394 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
395
396 BuildRequires:  bzip2-devel
397 BuildRequires:  gettext
398 BuildRequires:  which
399 BuildRequires:  yasm
400 BuildRequires:  pkgconfig(libavcodec)
401 BuildRequires:  pkgconfig(libavfilter)
402 BuildRequires:  pkgconfig(libavformat)
403 BuildRequires:  pkgconfig(libavutil)
404 BuildRequires:  pkgconfig(orc-0.4)
405 BuildRequires:  pkgconfig(theora)
406 BuildRequires:  pkgconfig(vorbis)
407 BuildRequires:  pkgconfig(zlib)
408
409 %description -n gst-libav
410 This GStreamer plugin supports a large number of audio and video compression
411 formats through the use of the libav library.  The plugin contains GStreamer
412 elements for decoding 90+ formats (AVI, MPEG, OGG, Matroska, ASF, ...),
413 demuxing 30+ formats and colorspace conversion.
414
415 %endif
416
417 #######################################################
418 ## Package info of rtsp-server Plugin
419 #######################################################
420
421 %if "%{plugin}" == "all"
422 %package -n gst-rtsp-server
423 Summary:        Multimedia Framework Library
424 Group:          System/Libraries
425 %endif
426
427 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
428
429 Requires(post):  /sbin/ldconfig
430 Requires(postun):  /sbin/ldconfig
431
432 %description -n gst-rtsp-server
433 This GStreamer plugin supports a large number of audio and video compression
434 formats through the use of the libav library.  The plugin contains GStreamer
435 elements for decoding 90+ formats (AVI, MPEG, OGG, Matroska, ASF, ...),
436 demuxing 30+ formats and colorspace conversion.
437
438 %package -n gst-rtsp-server-devel
439 Summary:        Multimedia Framework RTSP server library (DEV)
440 Group:          Development/Libraries
441 Requires:       gst-rtsp-server = %{version}-%{release}
442
443 %description -n gst-rtsp-server-devel
444
445 %endif
446
447 #######################################################
448 ## Package info of editing-services Plugin
449 #######################################################
450
451 %if "%{plugin}" == "all"
452 %package -n gst-editing-services
453 Summary:        GStreamer Editing Service Plug-Ins
454 Group:          Multimedia/Framework
455 %endif
456
457 %if "%{plugin}" == "all" || "%{plugin}" == "es"
458
459 BuildRequires:  flex
460 BuildRequires:  gtk-doc
461 BuildRequires:  pkgconfig(libxml-2.0)
462 Requires:       gstreamer >= 1.0.0
463 Supplements:    gstreamer
464
465 %description -n gst-editing-services
466 This is a high-level library for facilitating the creation of audio/video
467 non-linear editors.
468
469 %package -n gst-editing-services-devel
470 Summary:        Development files for gst-editing-services
471 Requires:       gst-editing-services = %{version}-%{release}
472
473 %description -n gst-editing-services-devel
474 This package contains libraries and header files for
475 developing applications that use %{name}
476
477 %endif
478
479 #######################################################
480 ## Prep
481 #######################################################
482
483 %prep
484 %setup -q -n gstreamer-%{version}
485 cp %{SOURCE1001} ./gstreamer.manifest
486 cp %{SOURCE1001} ./gst-plugins-base.manifest
487 cp %{SOURCE1001} ./gst-plugins-good.manifest
488 cp %{SOURCE1001} ./gst-plugins-bad.manifest
489 cp %{SOURCE1001} ./gst-plugins-ugly.manifest
490 cp %{SOURCE1001} ./gst-omx.manifest
491 cp %{SOURCE1001} ./gst-libav.manifest
492 cp %{SOURCE1001} ./gst-rtsp-server.manifest
493 cp %{SOURCE1001} ./gst-editing-services.manifest
494
495 #######################################################
496 ## Build
497 #######################################################
498
499 %build
500
501 %if "%{plugin}" != "all"
502 pushd %{_source_path}
503 %endif
504
505 mkdir -p build
506 export CFLAGS="%{optflags} \
507   -fno-strict-aliasing\
508   -fstack-protector-strong\
509   -Wl,-z,relro\
510   -D_FORTIFY_SOURCE=2"
511 export CXXFLAGS+=" -Wno-error"
512 export LDFLAGS+=" -pthread"
513
514 meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_datadir} --sysconfdir=%{_hal_sysconfdir} \
515 %if "%{plugin}" == "all" || "%{plugin}" == "core"
516   -D %{_core_opt}check=enabled \
517   -D %{_core_opt}coretracers=enabled \
518   -D %{_core_opt}tools=enabled \
519   -D %{_core_opt}introspection=enabled \
520   -D %{_core_opt}extra-checks=enabled \
521   -D %{_core_opt}ptp-helper-permissions=none \
522 %endif
523 %if "%{plugin}" == "all" || "%{plugin}" == "base"
524   -D %{_base_opt}adder=enabled \
525   -D %{_base_opt}app=enabled \
526   -D %{_base_opt}audioconvert=enabled \
527   -D %{_base_opt}audiomixer=enabled \
528   -D %{_base_opt}audiorate=enabled \
529   -D %{_base_opt}audioresample=enabled \
530   -D %{_base_opt}audiotestsrc=enabled \
531   -D %{_base_opt}compositor=enabled \
532   -D %{_base_opt}encoding=enabled \
533   -D %{_base_opt}gio=enabled \
534   -D %{_base_opt}gio-typefinder=enabled \
535   -D %{_base_opt}overlaycomposition=enabled \
536   -D %{_base_opt}pbtypes=enabled \
537   -D %{_base_opt}playback=enabled \
538   -D %{_base_opt}rawparse=enabled \
539   -D %{_base_opt}subparse=enabled \
540   -D %{_base_opt}tcp=enabled \
541   -D %{_base_opt}typefind=enabled \
542   -D %{_base_opt}videoconvert=enabled \
543   -D %{_base_opt}videorate=enabled \
544   -D %{_base_opt}videoscale=enabled \
545   -D %{_base_opt}videotestsrc=enabled \
546   -D %{_base_opt}volume=enabled \
547   -D %{_base_opt}alsa=enabled \
548   -D %{_base_opt}ogg=enabled \
549   -D %{_base_opt}opus=enabled \
550   -D %{_base_opt}theora=enabled \
551   -D %{_base_opt}vorbis=enabled \
552   -D %{_base_opt}introspection=enabled \
553   -D %{_base_opt}tbm=true \
554   %if "%{tizen_profile_name}" == "tv"
555     -D %{_base_opt}tv-profile=true \
556   %else
557     %if 0%{?enable_gl:1}
558       -D %{_base_opt}gl=enabled \
559     %endif # gl
560   %endif # tv
561 %endif # base plugin
562 %if "%{plugin}" == "all" || "%{plugin}" == "good"
563   %if 0%{?ENABLE_AALIB}
564     -D %{_good_opt}aalib=enabled \
565   %endif
566   -D %{_good_opt}apetag=enabled \
567   -D %{_good_opt}audiofx=enabled \
568   -D %{_good_opt}audioparsers=enabled \
569   -D %{_good_opt}autodetect=enabled \
570   -D %{_good_opt}avi=enabled \
571   -D %{_good_opt}debugutils=enabled \
572   -D %{_good_opt}deinterlace=enabled \
573   -D %{_good_opt}effectv=enabled \
574   -D %{_good_opt}flv=enabled \
575   -D %{_good_opt}icydemux=enabled \
576   -D %{_good_opt}id3demux=enabled \
577   -D %{_good_opt}imagefreeze=enabled \
578   -D %{_good_opt}interleave=enabled \
579   -D %{_good_opt}isomp4=enabled \
580   -D %{_good_opt}law=enabled \
581   -D %{_good_opt}matroska=enabled \
582   -D %{_good_opt}multifile=enabled \
583   -D %{_good_opt}replaygain=enabled \
584   -D %{_good_opt}rtp=enabled \
585   -D %{_good_opt}rtpmanager=enabled \
586   -D %{_good_opt}rtsp=enabled \
587   -D %{_good_opt}smpte=enabled \
588   -D %{_good_opt}udp=enabled \
589   -D %{_good_opt}videobox=enabled \
590   -D %{_good_opt}videocrop=enabled \
591   -D %{_good_opt}videofilter=enabled \
592   -D %{_good_opt}videomixer=enabled \
593   -D %{_good_opt}wavenc=enabled \
594   -D %{_good_opt}wavparse=enabled \
595   -D %{_good_opt}v4l2=enabled \
596   -D %{_good_opt}cairo=enabled \
597   -D %{_good_opt}jpeg=enabled \
598   -D %{_good_opt}png=enabled \
599   -D %{_good_opt}pulse=enabled \
600   -D %{_good_opt}soup=enabled \
601   -D %{_good_opt}vpx=enabled \
602   -D %{_good_opt}tbm=true \
603   -D %{_good_opt}v4l2-probe=true \
604   %if "%{tizen_profile_name}" != "tv"
605     -D %{_good_opt}v4l2-libv4l2=enabled \
606   %endif # tv
607 %endif # plugin
608 %if "%{plugin}" == "all" || "%{plugin}" == "bad"
609   -D %{_bad_opt}gst_play_tests=false\
610   -D %{_bad_opt}introspection=disabled \
611   -D %{_bad_opt}audiobuffersplit=enabled \
612   -D %{_bad_opt}audiomixmatrix=enabled \
613   -D %{_bad_opt}audiolatency=enabled \
614   -D %{_bad_opt}coloreffects=enabled \
615   -D %{_bad_opt}debugutils=enabled \
616   -D %{_bad_opt}gaudieffects=enabled \
617   -D %{_bad_opt}gdp=enabled \
618   -D %{_bad_opt}midi=enabled \
619   -D %{_bad_opt}mpegtsmux=enabled \
620   -D %{_bad_opt}netsim=enabled \
621   -D %{_bad_opt}proxy=enabled \
622   -D %{_bad_opt}sdp=enabled \
623   -D %{_bad_opt}timecode=enabled \
624   -D %{_bad_opt}videoframe_audiolevel=enabled \
625   -D %{_bad_opt}videoparsers=enabled \
626   -D %{_bad_opt}ipcpipeline=enabled \
627   -D %{_bad_opt}shm=enabled \
628   -D %{_bad_opt}aes=enabled \
629   -D %{_bad_opt}dtls=enabled \
630   -D %{_bad_opt}openal=enabled \
631   -D %{_bad_opt}opus=enabled \
632   -D %{_bad_opt}sctp=enabled \
633   -D %{_bad_opt}soundtouch=enabled \
634   -D %{_bad_opt}srtp=enabled \
635   -D %{_bad_opt}wayland=enabled \
636   -D %{_bad_opt}webrtc=enabled \
637   %if %{with wayland}
638     -D %{_bad_opt}wayland=enabled \
639   %endif
640   %if "%{tizen_profile_name}" == "tv"
641     -D %{_bad_opt}tv-profile=true \
642   %else
643     -D %{_bad_opt}autoconvert=enabled \
644     -D %{_bad_opt}id3tag=enabled \
645     -D %{_bad_opt}camerabin2=enabled \
646     -D %{_bad_opt}jpegformat=enabled \
647     -D %{_bad_opt}dash=enabled \
648     -D %{_bad_opt}hls=enabled \
649     -D %{_bad_opt}mpegdemux=enabled \
650     -D %{_bad_opt}mpegtsdemux=enabled \
651     -D %{_bad_opt}rtp=enabled \
652     -D %{_bad_opt}smoothstreaming=enabled \
653     %if 0%{?enable_gl:1}
654       -D %{_bad_opt}gl=enabled \
655     %endif # gl
656   %endif # tv
657 %endif # plugin
658 %if "%{plugin}" == "all" || "%{plugin}" == "ugly"
659   -D %{_ugly_opt}amrwbdec=enabled \
660   %if "%{tizen_profile_name}" == "tv"
661     -D %{_ugly_opt}tv-profile=true \
662   %else
663   -D %{_ugly_opt}asfdemux=enabled \
664   -D %{_ugly_opt}amrnb=enabled \
665   %endif # tv
666 %endif # plugin
667 %if "%{plugin}" == "all" || "%{plugin}" == "omx"
668   %if "%{target}" == "rpi"
669     -D %{_omx_opt}target=rpi \
670     -D %{_omx_opt}header_path=/opt/vc/include/interface/vmcs_host/khronos/IL \
671   %else
672     %ifarch aarch64
673       -D %{_omx_opt}target=exynos64 \
674     %else
675       -D %{_omx_opt}target=exynos \
676       -D %{_omx_opt}vp9=true \
677     %endif # arch
678   %endif # target
679 %endif # plugin
680 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
681   %if "%{tizen_profile_name}" == "tv"
682     -D %{_libav_opt}tv-profile=true \
683   %endif # tv
684 %endif # plugin
685 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
686   -D %{_rs_opt}rtspclientsink=enabled \
687   -D %{_rs_opt}introspection=disabled \
688 %endif
689 %if "%{plugin}" == "all" || "%{plugin}" == "es"
690   -D %{_es_opt}introspection=disabled \
691   -D %{_es_opt}tools=enabled \
692   -D %{_es_opt}xptv=enabled \
693   -D %{_es_opt}python=enabled \
694 %endif
695   build
696
697 ninja -C build all %{?_smp_mflags}
698
699 %if "%{plugin}" != "all"
700 popd
701 %endif
702
703 #######################################################
704 ## Install
705 #######################################################
706
707 %install
708 rm -rf %{buildroot}
709 export DESTDIR=%{buildroot}
710 ninja -C %{_source_path}/build install
711 mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
712 rm -rf %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/encoding-profiles
713 rm -rf %{buildroot}%{_datadir}/locale
714
715 %clean
716 rm -rf $RPM_BUILD_ROOT
717
718 %post -p /sbin/ldconfig
719 %postun -p /sbin/ldconfig
720
721 #######################################################
722 ## Packaging rpms
723 #######################################################
724
725 ###################### gstreamer ######################
726
727 %if "%{plugin}" == "all" || "%{plugin}" == "core"
728
729 %files -n gstreamer
730 %manifest gstreamer.manifest
731 %defattr(-, root, root)
732 %license subprojects/gstreamer/COPYING
733 %dir %{_datadir}/gstreamer-%{gst_branch}
734 %dir %{_datadir}/gstreamer-%{gst_branch}/presets
735 %dir %{_lib_gstreamer_dir}
736 %{_lib_gstreamer_dir}/libgstcoreelements.so
737 %{_lib_gstreamer_dir}/libgstcoretracers.so
738 %dir %{_libexecdir}/gstreamer-%{gst_branch}
739 %{_libexecdir}/gstreamer-%{gst_branch}/gst-hotdoc-plugins-scanner
740 %{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
741 %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
742 %exclude %{_libexecdir}/gstreamer-%{gst_branch}/gst-plugins-doc-cache-generator
743 %{_libdir}/libgstbase-%{gst_branch}.so.*
744 %{_libdir}/libgstcontroller-%{gst_branch}.so.*
745 %{_libdir}/libgstnet-%{gst_branch}.so.*
746 %{_libdir}/libgstcheck-%{gst_branch}.so.*
747 %{_libdir}/libgstreamer-%{gst_branch}.so.*
748 %{_lib_girepository}/Gst-%{gst_branch}.typelib
749 %{_lib_girepository}/GstBase-%{gst_branch}.typelib
750 %{_lib_girepository}/GstController-%{gst_branch}.typelib
751 %{_lib_girepository}/GstNet-%{gst_branch}.typelib
752 %{_lib_girepository}/GstCheck-%{gst_branch}.typelib
753 %{_datadir}/gdb/auto-load/usr/%{_lib}/libgstreamer-%{gst_branch}*-gdb.py
754 %{_datadir}/gstreamer-%{gst_branch}/gdb/glib_gobject_helper.py
755 %{_datadir}/gstreamer-%{gst_branch}/gdb/gst_gdb.py
756
757 %files -n gstreamer-utils
758 %manifest gstreamer.manifest
759 %defattr(-, root, root)
760 %license subprojects/gstreamer/COPYING
761 %{_bindir}/gst-inspect-%{gst_branch}
762 %{_bindir}/gst-launch-%{gst_branch}
763 %{_bindir}/gst-stats-%{gst_branch}
764 %{_bindir}/gst-typefind-%{gst_branch}
765 %exclude %doc %{_mandir}/man?/*-%{gst_branch}.*
766
767 %files -n gstreamer-devel
768 %manifest gstreamer.manifest
769 %defattr(-, root, root)
770 %{_datadir}/aclocal/gst-element-check-%{gst_branch}.m4
771 %{_includedir}/gstreamer-%{gst_branch}/gst/*.h
772 %{_includedir}/gstreamer-%{gst_branch}/gst/base/*
773 %{_includedir}/gstreamer-%{gst_branch}/gst/controller/*
774 %{_includedir}/gstreamer-%{gst_branch}/gst/net/*
775 %{_includedir}/gstreamer-%{gst_branch}/gst/check/*
776 %{_libdir}/libgstbase-%{gst_branch}.so
777 %{_libdir}/libgstcontroller-%{gst_branch}.so
778 %{_libdir}/libgstnet-%{gst_branch}.so
779 %{_libdir}/libgstcheck-%{gst_branch}.so
780 %{_libdir}/libgstreamer-%{gst_branch}.so
781 %{_libdir}/pkgconfig/gstreamer-%{gst_branch}.pc
782 %{_libdir}/pkgconfig/gstreamer-base-%{gst_branch}.pc
783 %{_libdir}/pkgconfig/gstreamer-controller-%{gst_branch}.pc
784 %{_libdir}/pkgconfig/gstreamer-net-%{gst_branch}.pc
785 %{_libdir}/pkgconfig/gstreamer-check-%{gst_branch}.pc
786 %{_datadir}/gir-%{gst_branch}/Gst-%{gst_branch}.gir
787 %{_datadir}/gir-%{gst_branch}/GstBase-%{gst_branch}.gir
788 %{_datadir}/gir-%{gst_branch}/GstController-%{gst_branch}.gir
789 %{_datadir}/gir-%{gst_branch}/GstNet-%{gst_branch}.gir
790 %{_datadir}/gir-%{gst_branch}/GstCheck-%{gst_branch}.gir
791
792 %changelog
793
794 %endif
795
796 ###################### gst-plugins-base ######################
797
798 %if "%{plugin}" == "all" || "%{plugin}" == "base"
799
800 %files -n gst-plugins-base
801 %manifest gst-plugins-base.manifest
802 %defattr(-, root, root)
803 %license subprojects/gst-plugins-base/COPYING
804 %{_lib_gstreamer_dir}/libgstalsa.so
805 %{_lib_gstreamer_dir}/libgstapp.so
806 %{_lib_gstreamer_dir}/libgstaudioconvert.so
807 %{_lib_gstreamer_dir}/libgstaudiorate.so
808 %{_lib_gstreamer_dir}/libgstaudioresample.so
809 %{_lib_gstreamer_dir}/libgstaudiotestsrc.so
810 %{_lib_gstreamer_dir}/libgstgio.so
811 %{_lib_gstreamer_dir}/libgstogg.so
812 %{_lib_gstreamer_dir}/libgstplayback.so
813 %{_lib_gstreamer_dir}/libgstoverlaycomposition.so
814 %{_lib_gstreamer_dir}/libgstsubparse.so
815 %{_lib_gstreamer_dir}/libgsttcp.so
816 %{_lib_gstreamer_dir}/libgsttheora.so
817 %{_lib_gstreamer_dir}/libgsttypefindfunctions.so
818 %{_lib_gstreamer_dir}/libgstvideoconvert.so
819 %{_lib_gstreamer_dir}/libgstvideorate.so
820 %{_lib_gstreamer_dir}/libgstvideoscale.so
821 %{_lib_gstreamer_dir}/libgstvideotestsrc.so
822 %{_lib_gstreamer_dir}/libgstvolume.so
823 %{_lib_gstreamer_dir}/libgstvorbis.so
824 %{_lib_gstreamer_dir}/libgstpbtypes.so
825 %{_lib_gstreamer_dir}/libgstrawparse.so
826 %{_lib_gstreamer_dir}/libgstopus.so
827 %{_lib_gstreamer_dir}/libgstencoding.so
828 %{_lib_gstreamer_dir}/libgstaudiomixer.so
829 %{_lib_gstreamer_dir}/libgstcompositor.so
830 %if %{with x}
831 %{_lib_gstreamer_dir}/libgstximagesink.so
832 %{_lib_gstreamer_dir}/libgstxvimagesink.so
833 %endif
834 %{_libdir}/libgstapp-%{gst_branch}.so.*
835 %{_libdir}/libgstaudio-%{gst_branch}.so.*
836 %{_libdir}/libgstallocators-%{gst_branch}.so.*
837 %{_libdir}/libgstfft-%{gst_branch}.so.*
838 %{_libdir}/libgstpbutils-%{gst_branch}.so.*
839 %{_libdir}/libgstriff-%{gst_branch}.so.*
840 %{_libdir}/libgstrtp-%{gst_branch}.so.*
841 %{_libdir}/libgstrtsp-%{gst_branch}.so.*
842 %{_libdir}/libgstsdp-%{gst_branch}.so.*
843 %{_libdir}/libgsttag-%{gst_branch}.so.*
844 %{_libdir}/libgstvideo-%{gst_branch}.so.*
845 %{_lib_girepository}/GstAllocators-%{gst_branch}.typelib
846 %{_lib_girepository}/GstApp-%{gst_branch}.typelib
847 %{_lib_girepository}/GstAudio-%{gst_branch}.typelib
848 %{_lib_girepository}/GstPbutils-%{gst_branch}.typelib
849 %{_lib_girepository}/GstRtp-%{gst_branch}.typelib
850 %{_lib_girepository}/GstRtsp-%{gst_branch}.typelib
851 %{_lib_girepository}/GstSdp-%{gst_branch}.typelib
852 %{_lib_girepository}/GstTag-%{gst_branch}.typelib
853 %{_lib_girepository}/GstVideo-%{gst_branch}.typelib
854 %dir %{_datadir}/gst-plugins-base/
855 %dir %{_datadir}/gst-plugins-base/%{gst_branch}/
856 %{_datadir}/gst-plugins-base/%{gst_branch}/license-translations.dict
857
858 %files -n gst-plugins-base-extension-adder
859 %{_lib_gstreamer_dir}/libgstadder.so
860 %license subprojects/gst-plugins-base/COPYING
861
862 %files -n gst-plugins-base-devel
863 %manifest gst-plugins-base.manifest
864 %defattr(-, root, root)
865 %{_includedir}/gstreamer-%{gst_branch}/gst/allocators/*
866 %{_includedir}/gstreamer-%{gst_branch}/gst/app/*
867 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/*
868 %{_includedir}/gstreamer-%{gst_branch}/gst/fft/*
869 %{_includedir}/gstreamer-%{gst_branch}/gst/pbutils/*
870 %{_includedir}/gstreamer-%{gst_branch}/gst/riff/*
871 %{_includedir}/gstreamer-%{gst_branch}/gst/rtp/*
872 %{_includedir}/gstreamer-%{gst_branch}/gst/rtsp/*
873 %{_includedir}/gstreamer-%{gst_branch}/gst/sdp/*
874 %{_includedir}/gstreamer-%{gst_branch}/gst/tag/*
875 %{_includedir}/gstreamer-%{gst_branch}/gst/video/*
876 %if "%{plugin}" == "all"
877 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/audio-bad-prelude.h
878 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstnonstreamaudiodecoder.h
879 %exclude %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstplanaraudioadapter.h
880 %endif
881 %{_libdir}/libgstallocators-%{gst_branch}.so
882 %{_libdir}/libgstapp-%{gst_branch}.so
883 %{_libdir}/libgstaudio-%{gst_branch}.so
884 %{_libdir}/libgstfft-%{gst_branch}.so
885 %{_libdir}/libgstpbutils-%{gst_branch}.so
886 %{_libdir}/libgstriff-%{gst_branch}.so
887 %{_libdir}/libgstrtp-%{gst_branch}.so
888 %{_libdir}/libgstrtsp-%{gst_branch}*.so
889 %{_libdir}/libgstsdp-%{gst_branch}.so
890 %{_libdir}/libgsttag-%{gst_branch}.so
891 %{_libdir}/libgstvideo-%{gst_branch}.so
892 %{_libdir}/pkgconfig/gstreamer-allocators-%{gst_branch}.pc
893 %{_libdir}/pkgconfig/gstreamer-app-%{gst_branch}.pc
894 %{_libdir}/pkgconfig/gstreamer-audio-%{gst_branch}.pc
895 %{_libdir}/pkgconfig/gstreamer-fft-%{gst_branch}.pc
896 %{_libdir}/pkgconfig/gstreamer-pbutils-%{gst_branch}.pc
897 %{_libdir}/pkgconfig/gstreamer-plugins-base-%{gst_branch}.pc
898 %{_libdir}/pkgconfig/gstreamer-riff-%{gst_branch}.pc
899 %{_libdir}/pkgconfig/gstreamer-rtp-%{gst_branch}.pc
900 %{_libdir}/pkgconfig/gstreamer-rtsp-%{gst_branch}.pc
901 %{_libdir}/pkgconfig/gstreamer-sdp-%{gst_branch}.pc
902 %{_libdir}/pkgconfig/gstreamer-tag-%{gst_branch}.pc
903 %{_libdir}/pkgconfig/gstreamer-video-%{gst_branch}.pc
904 %{_datadir}/gir-%{gst_branch}/GstAllocators-%{gst_branch}.gir
905 %{_datadir}/gir-%{gst_branch}/GstApp-%{gst_branch}.gir
906 %{_datadir}/gir-%{gst_branch}/GstAudio-%{gst_branch}.gir
907 %{_datadir}/gir-%{gst_branch}/GstPbutils-%{gst_branch}.gir
908 %{_datadir}/gir-%{gst_branch}/GstRtp-%{gst_branch}.gir
909 %{_datadir}/gir-%{gst_branch}/GstRtsp-%{gst_branch}.gir
910 %{_datadir}/gir-%{gst_branch}/GstSdp-%{gst_branch}.gir
911 %{_datadir}/gir-%{gst_branch}/GstTag-%{gst_branch}.gir
912 %{_datadir}/gir-%{gst_branch}/GstVideo-%{gst_branch}.gir
913
914 %endif
915
916 ###################### gst-plugins-good ######################
917
918 %if "%{plugin}" == "all" || "%{plugin}" == "good"
919
920 %files -n gst-plugins-good
921 %manifest gst-plugins-good.manifest
922 %defattr(-, root, root)
923 %license subprojects/gst-plugins-good/COPYING
924 %{_lib_gstreamer_dir}/libgstalaw.so
925 %{_lib_gstreamer_dir}/libgstapetag.so
926 %{_lib_gstreamer_dir}/libgstaudiofx.so
927 %{_lib_gstreamer_dir}/libgstaudioparsers.so
928 %{_lib_gstreamer_dir}/libgstautodetect.so
929 %{_lib_gstreamer_dir}/libgstavi.so
930 %{_lib_gstreamer_dir}/libgstdebug.so
931 %{_lib_gstreamer_dir}/libgstdeinterlace.so
932 %{_lib_gstreamer_dir}/libgsteffectv.so
933 %{_lib_gstreamer_dir}/libgsticydemux.so
934 %{_lib_gstreamer_dir}/libgstid3demux.so
935 %{_lib_gstreamer_dir}/libgstinterleave.so
936 %{_lib_gstreamer_dir}/libgstisomp4.so
937 %{_lib_gstreamer_dir}/libgstjpeg.so
938 %{_lib_gstreamer_dir}/libgstmatroska.so
939 %{_lib_gstreamer_dir}/libgstmulaw.so
940 %{_lib_gstreamer_dir}/libgstmultifile.so
941 %{_lib_gstreamer_dir}/libgstnavigationtest.so
942 %{_lib_gstreamer_dir}/libgstpulseaudio.so
943 %{_lib_gstreamer_dir}/libgstreplaygain.so
944 %{_lib_gstreamer_dir}/libgstrtp.so
945 %{_lib_gstreamer_dir}/libgstrtpmanager.so
946 %{_lib_gstreamer_dir}/libgstrtsp.so
947 %{_lib_gstreamer_dir}/libgstsmpte.so
948 %{_lib_gstreamer_dir}/libgstudp.so
949 %{_lib_gstreamer_dir}/libgstvideo4linux2.so
950 %{_lib_gstreamer_dir}/libgstvideocrop.so
951 %{_lib_gstreamer_dir}/libgstvideofilter.so
952 %{_lib_gstreamer_dir}/libgstwavenc.so
953 %{_lib_gstreamer_dir}/libgstwavparse.so
954 %if %{with x}
955 %{_lib_gstreamer_dir}/libgstximagesrc.so
956 %endif
957 %{_lib_gstreamer_dir}/libgstcairo.so
958 %{_lib_gstreamer_dir}/libgstsoup.so
959 %{_lib_gstreamer_dir}/libgstvpx.so
960 %{_lib_gstreamer_dir}/libgstimagefreeze.so
961 %if "%{tizen_profile_name}" != "tv"
962 %{_lib_gstreamer_dir}/libgstflv.so
963 %{_lib_gstreamer_dir}/libgstvideobox.so
964 %{_lib_gstreamer_dir}/libgstvideomixer.so
965 %{_datadir}/gstreamer-%{gst_branch}/presets/GstQTMux.prs
966 %endif
967 %{_datadir}/gstreamer-%{gst_branch}/presets/GstVP8Enc.prs
968
969 %files -n gst-plugins-good-extra
970 %manifest gst-plugins-good.manifest
971 %defattr(-, root, root)
972 %license subprojects/gst-plugins-good/COPYING
973 %if 0%{?ENABLE_AALIB}
974 %{_lib_gstreamer_dir}/libgstaasink.so
975 %endif
976 %{_lib_gstreamer_dir}/libgstpng.so
977 %{_lib_gstreamer_dir}/libgstimagefreeze.so
978
979 %endif
980
981 ###################### gst-plugins-bad ######################
982
983 %if "%{plugin}" == "all" || "%{plugin}" == "bad"
984
985 %files -n gst-plugins-bad
986 %manifest gst-plugins-bad.manifest
987 %defattr(-, root, root)
988 %license subprojects/gst-plugins-bad/COPYING
989 %if "%{tizen_profile_name}" != "tv"
990 %{_lib_gstreamer_dir}/libgstautoconvert.so
991 %{_lib_gstreamer_dir}/libgstcamerabin.so
992 %{_lib_gstreamer_dir}/libgstid3tag.so
993 %{_lib_gstreamer_dir}/libgstjpegformat.so
994 %{_lib_gstreamer_dir}/libgstmpegpsdemux.so
995 %{_lib_gstreamer_dir}/libgstsmoothstreaming.so
996 %{_lib_gstreamer_dir}/libgstdash.so
997 %if 0%{?enable_gl:1}
998 %{_lib_gstreamer_dir}/libgstopengl.so
999 %endif
1000 %{_lib_gstreamer_dir}/libgstsoundtouch.so
1001 %{_libdir}/libgstadaptivedemux-%{gst_branch}.so.0*
1002 %{_libdir}/libgstbasecamerabinsrc-%{gst_branch}.so.0*
1003 %{_libdir}/libgstinsertbin-%{gst_branch}.so.0*
1004 %{_libdir}/libgstphotography-%{gst_branch}.so.0*
1005 %{_libdir}/libgsturidownloader-%{gst_branch}.so.0*
1006 %if 0%{?enable_gl:1}
1007 %{_libdir}/libgstgl-%{gst_branch}.so.0*
1008 %endif
1009 %{_libdir}/libgstisoff-%{gst_branch}.so.0*
1010 %endif
1011 %{_lib_gstreamer_dir}/libgstaes.so
1012 %{_lib_gstreamer_dir}/libgstgdp.so
1013 %{_lib_gstreamer_dir}/libgstdebugutilsbad.so
1014 %{_lib_gstreamer_dir}/libgstmpegtsdemux.so
1015 %{_lib_gstreamer_dir}/libgstmpegtsmux.so
1016 %{_lib_gstreamer_dir}/libgstsdpelem.so
1017 %{_lib_gstreamer_dir}/libgstshm.so
1018 %{_lib_gstreamer_dir}/libgstvideoparsersbad.so
1019 %{_lib_gstreamer_dir}/libgstmidi.so
1020 %{_lib_gstreamer_dir}/libgstopenal.so
1021 %{_lib_gstreamer_dir}/libgsthls.so
1022 %{_lib_gstreamer_dir}/libgstnetsim.so
1023 %{_lib_gstreamer_dir}/libgsttimecode.so
1024 %{_lib_gstreamer_dir}/libgstvideoframe_audiolevel.so
1025 %{_lib_gstreamer_dir}/libgstaudiomixmatrix.so
1026 %{_lib_gstreamer_dir}/libgstaudiobuffersplit.so
1027 %{_lib_gstreamer_dir}/libgstaudiolatency.so
1028 %{_lib_gstreamer_dir}/libgstipcpipeline.so
1029 %{_lib_gstreamer_dir}/libgstproxy.so
1030 %{_lib_gstreamer_dir}/libgstnice.so
1031 %{_lib_gstreamer_dir}/libgstwebrtc.so
1032 %{_lib_gstreamer_dir}/libgstdtls.so
1033 %{_lib_gstreamer_dir}/libgstrtpmanagerbad.so
1034 %{_lib_gstreamer_dir}/libgstsctp.so
1035 %{_lib_gstreamer_dir}/libgstsrtp.so
1036 %{_lib_gstreamer_dir}/libgstopusparse.so
1037 %{_lib_gstreamer_dir}/libgstgaudieffects.so
1038 %{_lib_gstreamer_dir}/libgstcoloreffects.so
1039 %if %{with wayland}
1040 %{_lib_gstreamer_dir}/libgstwaylandsink.so
1041 %endif
1042 %{_libdir}/libgstbadaudio-%{gst_branch}.so.0*
1043 %{_libdir}/libgstcodecs-%{gst_branch}.so.0*
1044 %{_libdir}/libgstcodecparsers-%{gst_branch}.so.0*
1045 %{_libdir}/libgstmpegts-%{gst_branch}.so.0*
1046 %{_libdir}/libgstplay-%{gst_branch}.so.0*
1047 %{_libdir}/libgstplayer-%{gst_branch}.so.0*
1048 %{_libdir}/libgstsctp-%{gst_branch}.so.0*
1049 %{_libdir}/libgsttranscoder-%{gst_branch}.so.0*
1050 %{_libdir}/libgstwebrtc-%{gst_branch}.so.0*
1051 %if %{with wayland}
1052 %{_libdir}/libgstwayland-%{gst_branch}.so.0*
1053 %endif
1054 %exclude %{_bindir}/gst-transcoder-%{gst_branch}
1055 %exclude %{_libdir}/debug/*
1056
1057 %files -n gst-plugins-bad-devel
1058 %manifest gst-plugins-bad.manifest
1059 %defattr(-, root, root)
1060 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/audio-bad-prelude.h
1061 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstnonstreamaudiodecoder.h
1062 %{_includedir}/gstreamer-%{gst_branch}/gst/audio/gstplanaraudioadapter.h
1063 %{_includedir}/gstreamer-%{gst_branch}/gst/basecamerabinsrc/*
1064 %{_includedir}/gstreamer-%{gst_branch}/gst/codecparsers/*
1065 %{_includedir}/gstreamer-%{gst_branch}/gst/insertbin/*
1066 %{_includedir}/gstreamer-%{gst_branch}/gst/interfaces/*
1067 %{_includedir}/gstreamer-%{gst_branch}/gst/isoff/*
1068 %{_includedir}/gstreamer-%{gst_branch}/gst/mpegts/*
1069 %{_includedir}/gstreamer-%{gst_branch}/gst/play/*
1070 %{_includedir}/gstreamer-%{gst_branch}/gst/player/*
1071 %{_includedir}/gstreamer-%{gst_branch}/gst/sctp/*
1072 %{_includedir}/gstreamer-%{gst_branch}/gst/transcoder/*
1073 %{_includedir}/gstreamer-%{gst_branch}/gst/uridownloader/*
1074 %if %{with wayland}
1075 %{_includedir}/gstreamer-%{gst_branch}/gst/wayland/*
1076 %endif
1077 %{_includedir}/gstreamer-%{gst_branch}/gst/webrtc/*
1078 %if "%{tizen_profile_name}" != "tv"
1079 %if 0%{?enable_gl:1}
1080 %{_lib_gstreamer_dir}/include/gst/gl/*
1081 %endif
1082 %endif
1083 %{_libdir}/libgstadaptivedemux*.so
1084 %{_libdir}/libgstbadaudio*.so
1085 %{_libdir}/libgstbasecamerabinsrc*.so
1086 %{_libdir}/libgstcodecparsers*.so
1087 %{_libdir}/libgstcodecs*.so
1088 %{_libdir}/libgstinsertbin*.so
1089 %{_libdir}/libgstisoff*.so
1090 %{_libdir}/libgstmpegts*.so
1091 %{_libdir}/libgstphotography*.so
1092 %{_libdir}/libgstplay*.so
1093 %{_libdir}/libgstsctp*.so
1094 %{_libdir}/libgsttranscoder*.so
1095 %{_libdir}/libgsturidownloader*.so
1096 %if %{with wayland}
1097 %{_libdir}/libgstwayland*.so
1098 %endif
1099 %{_libdir}/libgstwebrtc*.so
1100 %{_libdir}/pkgconfig/gstreamer-bad-audio-%{gst_branch}.pc
1101 %{_libdir}/pkgconfig/gstreamer-codecparsers-%{gst_branch}.pc
1102 %if "%{tizen_profile_name}" != "tv"
1103 %if 0%{?enable_gl:1}
1104 %{_libdir}/pkgconfig/gstreamer-gl-*.pc
1105 %endif
1106 %endif
1107 %{_libdir}/pkgconfig/gstreamer-insertbin-%{gst_branch}.pc
1108 %{_libdir}/pkgconfig/gstreamer-mpegts-%{gst_branch}.pc
1109 %{_libdir}/pkgconfig/gstreamer-photography-%{gst_branch}.pc
1110 %{_libdir}/pkgconfig/gstreamer-play-%{gst_branch}.pc
1111 %{_libdir}/pkgconfig/gstreamer-player-%{gst_branch}.pc
1112 %{_libdir}/pkgconfig/gstreamer-plugins-bad-%{gst_branch}.pc
1113 %{_libdir}/pkgconfig/gstreamer-sctp-%{gst_branch}.pc
1114 %{_libdir}/pkgconfig/gstreamer-transcoder-%{gst_branch}.pc
1115 %if %{with wayland}
1116 %{_libdir}/pkgconfig/gstreamer-wayland-%{gst_branch}.pc
1117 %endif
1118 %{_libdir}/pkgconfig/gstreamer-webrtc-%{gst_branch}.pc
1119
1120 %endif
1121
1122 ###################### gst-plugins-ugly ######################
1123
1124 %if "%{plugin}" == "all" || "%{plugin}" == "ugly"
1125
1126 %files -n gst-plugins-ugly
1127 %manifest gst-plugins-ugly.manifest
1128 %defattr(-,root,root,-)
1129 %license subprojects/gst-plugins-ugly/COPYING
1130 %if "%{tizen_profile_name}" != "tv"
1131 %{_lib_gstreamer_dir}/libgstasf.so
1132 %{_lib_gstreamer_dir}/libgstamrnb.so
1133 %exclude %{_datadir}/gstreamer-%{gst_branch}/presets/GstAmrnbEnc.prs
1134 %endif
1135 %{_lib_gstreamer_dir}/libgstamrwbdec.so
1136
1137 %endif
1138
1139 ########################## gst-omx ###########################
1140
1141 %if "%{plugin}" == "all" || "%{plugin}" == "omx"
1142
1143 %files -n gst-omx
1144 %manifest gst-omx.manifest
1145 %defattr(-,root,root,-)
1146 %license subprojects/gst-omx/COPYING
1147 %{_lib_gstreamer_dir}/libgstomx.so
1148
1149 %endif
1150
1151 ######################## gst-libav ###########################
1152
1153 %if "%{plugin}" == "all" || "%{plugin}" == "libav"
1154
1155 %files -n gst-libav
1156 %manifest gst-libav.manifest
1157 %defattr(-,root,root,-)
1158 %license subprojects/gst-libav/COPYING
1159 %{_lib_gstreamer_dir}/libgstlibav.so
1160
1161 %endif
1162
1163 ###################### gst-rtsp-server #######################
1164
1165 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
1166
1167 %files -n gst-rtsp-server
1168 %manifest gst-rtsp-server.manifest
1169 %defattr(-,root,root,-)
1170 %license subprojects/gst-rtsp-server/COPYING
1171 %{_libdir}/libgstrtspserver*.so.*
1172 %{_lib_gstreamer_dir}/libgstrtspclientsink.so
1173
1174 %files -n gst-rtsp-server-devel
1175 %defattr(-,root,root,-)
1176 %{_libdir}/libgstrtspserver*.so
1177 %{_includedir}/gstreamer-%{gst_branch}/gst/rtsp-server/rtsp-*.h
1178 %{_includedir}/gstreamer-%{gst_branch}/gst/rtsp-server/gstwfd*.h
1179 %{_libdir}/pkgconfig/gstreamer-rtsp-server-%{gst_branch}.pc
1180
1181 %endif
1182
1183 ###################### gst-editing-services #######################
1184
1185 %if "%{plugin}" == "all" || "%{plugin}" == "es"
1186
1187 %files -n gst-editing-services
1188 %manifest gst-editing-services.manifest
1189 %defattr(-,root,root,-)
1190 %license subprojects/gst-editing-services/COPYING
1191 %{_libdir}/libges-%{gst_branch}.so.*
1192 %{_lib_gstreamer_dir}/libgstges.so
1193 %{_lib_gstreamer_dir}/libgstnle.so
1194 %exclude %{_libdir}/gst-validate-launcher/python/launcher/apps/geslaunch.py
1195 %exclude %{_datadir}/gstreamer-%{gst_branch}/validate/scenarios/ges-edit-clip-while-paused.scenario
1196 %{_bindir}/ges-launch-%{gst_branch}
1197
1198 %files -n gst-editing-services-devel
1199 %{_libdir}/libges-%{gst_branch}.so
1200 %{_includedir}/gstreamer-%{gst_branch}/ges/*
1201 %{_libdir}/pkgconfig/gst-editing-services-%{gst_branch}.pc
1202
1203 %endif