Merge branch 'tizen_4.0' into 'tizen'
[platform/core/multimedia/libmm-player.git] / packaging / libmm-player.spec
1 Name:       libmm-player
2 Summary:    Multimedia Framework Player Library
3 Version:    0.6.76
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 BuildRequires:  pkgconfig(capi-media-sound-manager)
29
30 %description
31 Multimedia Framework Player Library files.
32
33 %package devel
34 Summary:    Multimedia Framework Player Library (DEV)
35 Group:      Development/Libraries
36 Requires:   %{name} = %{version}-%{release}
37
38 %description devel
39 Multimedia Framework Player Library files (DEV).
40
41 %prep
42 %setup -q
43 cp %{SOURCE1001} .
44
45 %build
46 export CFLAGS+=" -Wall -DTIZEN_DEBUG -D_FILE_OFFSET_BITS=64 -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
47 %if %{with x}
48 export CFLAGS+=" -DHAVE_X11"
49 %endif
50
51 LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
52 ./autogen.sh
53 # always enable sdk build. This option should go away
54 CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure --enable-sdk --prefix=%{_prefix} --disable-static
55 %configure \
56 --disable-static \
57 --enable-wayland
58
59 #%__make -j1
60 make %{?jobs:-j%jobs}
61
62 %install
63 %make_install
64
65 %post -p /sbin/ldconfig
66
67 %postun -p /sbin/ldconfig
68
69 %files
70 %manifest %{name}.manifest
71 %license LICENSE.Apache-2.0
72 %defattr(-,root,root,-)
73 %{_libdir}/*.so.*
74
75
76 %files devel
77 %manifest %{name}.manifest
78 %defattr(-,root,root,-)
79 %{_libdir}/*.so
80 %{_includedir}/mmf/*.h
81 %{_libdir}/pkgconfig/*