[0.6.71] Fix coverity issues
[platform/core/multimedia/libmm-player.git] / packaging / libmm-player.spec
1 Name:       libmm-player
2 Summary:    Multimedia Framework Player Library
3 Version:    0.6.71
4 Release:    0
5 Group:      Multimedia/Libraries
6 License:    Apache-2.0
7 URL:        http://source.tizen.org
8 Source0:    %{name}-%{version}.tar.gz
9 Source1001:     libmm-player.manifest
10 Requires(post):  /sbin/ldconfig
11 Requires(postun):  /sbin/ldconfig
12 BuildRequires:  pkgconfig(dlog)
13 BuildRequires:  pkgconfig(mm-common)
14 BuildRequires:  pkgconfig(mm-sound)
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(mmutil-imgp)
20 BuildRequires:  pkgconfig(iniparser)
21 BuildRequires:  pkgconfig(icu-i18n)
22 BuildRequires:  pkgconfig(capi-media-tool)
23 BuildRequires:  pkgconfig(murphy-resource)
24 BuildRequires:  pkgconfig(murphy-glib)
25 BuildRequires:  pkgconfig(capi-system-info)
26 BuildRequires:  pkgconfig(storage)
27 BuildRequires:  pkgconfig(libtzplatform-config)
28
29 %description
30 Multimedia Framework Player Library files.
31
32 %package devel
33 Summary:    Multimedia Framework Player Library (DEV)
34 Group:      Development/Libraries
35 Requires:   %{name} = %{version}-%{release}
36
37 %description devel
38 Multimedia Framework Player Library files (DEV).
39
40 %prep
41 %setup -q
42 cp %{SOURCE1001} .
43
44 %build
45 export CFLAGS+=" -Wall -DTIZEN_DEBUG -D_FILE_OFFSET_BITS=64 -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
46 %if %{with x}
47 export CFLAGS+=" -DHAVE_X11"
48 %endif
49
50 LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
51 ./autogen.sh
52 # always enable sdk build. This option should go away
53 CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure --enable-sdk --prefix=%{_prefix} --disable-static
54 %configure \
55 --disable-static \
56 --enable-wayland
57
58 #%__make -j1
59 make %{?jobs:-j%jobs}
60
61 %install
62 %make_install
63
64 %post -p /sbin/ldconfig
65
66 %postun -p /sbin/ldconfig
67
68 %files
69 %manifest %{name}.manifest
70 %license LICENSE.Apache-2.0
71 %defattr(-,root,root,-)
72 %{_libdir}/*.so.*
73
74
75 %files devel
76 %manifest %{name}.manifest
77 %defattr(-,root,root,-)
78 %{_libdir}/*.so
79 %{_includedir}/mmf/*.h
80 %{_libdir}/pkgconfig/*