Fix coverity issues
[platform/core/api/mediademuxer.git] / packaging / capi-mediademuxer.spec
1 Name:       capi-mediademuxer
2 Summary:    A Media Demuxer library in Tizen Native API
3 Version:    0.1.25
4 Release:    1
5 Group:      Multimedia/API
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires:  cmake
9 BuildRequires:  pkgconfig(dlog)
10 BuildRequires:  pkgconfig(glib-2.0)
11 BuildRequires:  pkgconfig(mm-common)
12 BuildRequires:  pkgconfig(capi-base-common)
13 BuildRequires:  pkgconfig(capi-media-tool)
14 #BuildRequires:  pkgconfig(capi-media-codec)
15 BuildRequires:  pkgconfig(gstreamer-1.0)
16 BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
17 BuildRequires:  pkgconfig(gstreamer-video-1.0)
18 BuildRequires:  pkgconfig(gstreamer-app-1.0)
19 BuildRequires:  pkgconfig(iniparser)
20
21 %description
22
23 %package devel
24 Summary:    Multimedia Framework Demuxer Library (DEV)
25 Group:      Multimedia/API
26 Requires:   %{name} = %{version}-%{release}
27
28 %description devel
29
30 %prep
31 %setup -q
32
33
34 %build
35 %if 0%{?sec_build_binary_debug_enable}
36 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
37 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
38 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
39 %endif
40 %ifarch %{arm}
41 export CFLAGS="$CFLAGS -DENABLE_FFMPEG_CODEC"
42 %endif
43 export CFLAGS="$CFLAGS -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DTIZEN_FEATURE_GST_UPSTREAM"
44
45 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
46 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
47
48
49 make %{?jobs:-j%jobs}
50
51 %install
52 rm -rf %{buildroot}
53 mkdir -p %{buildroot}%{_bindir}
54 cp test/mediademuxer_test %{buildroot}%{_bindir}
55
56 %make_install
57
58 %post
59 /sbin/ldconfig
60
61 %postun -p /sbin/ldconfig
62
63
64 %files
65 %manifest capi-mediademuxer.manifest
66 %{_libdir}/libcapi-mediademuxer.so.*
67 %license LICENSE.Apache-2.0
68 %{_bindir}/*
69
70 %files devel
71 %{_includedir}/media/*.h
72 %{_libdir}/pkgconfig/*.pc
73 %{_libdir}/libcapi-mediademuxer.so
74
75