2 Summary: A Media Codec library in Tizen Native API
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(dlog)
10 BuildRequires: pkgconfig(glib-2.0)
11 BuildRequires: pkgconfig(mm-common)
12 BuildRequires: pkgconfig(capi-base-common)
13 BuildRequires: pkgconfig(appcore-efl)
14 BuildRequires: pkgconfig(capi-media-tool)
15 BuildRequires: pkgconfig(libtbm)
16 BuildRequires: pkgconfig(gstreamer-1.0)
17 BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
18 BuildRequires: pkgconfig(gstreamer-app-1.0)
19 BuildRequires: pkgconfig(capi-system-info)
20 BuildRequires: pkgconfig(iniparser)
21 %if "%{tizen_target_name}" == "TM1"
22 #!BuildIgnore: kernel-headers
23 BuildConflicts: linux-glibc-devel
24 BuildRequires: kernel-headers-tizen-dev
31 Summary: A Media Player library in Tizen Native API (Development)
32 Group: TO_BE/FILLED_IN
33 Requires: %{name} = %{version}-%{release}
42 %if "%{tizen_target_name}" == "TM1"
43 export CFLAGS="$CFLAGS -DTIZEN_PROFILE_LITE"
45 %if 0%{?sec_build_binary_debug_enable}
46 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
47 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
48 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
51 export CFLAGS="$CFLAGS -DENABLE_FFMPEG_CODEC"
54 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
55 %cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
62 mkdir -p %{buildroot}/usr/share/license
63 mkdir -p %{buildroot}/usr/bin
64 cp test/media_codec_test %{buildroot}/usr/bin
65 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
72 %postun -p /sbin/ldconfig
76 %manifest capi-media-codec.manifest
77 %{_libdir}/libcapi-media-codec.so.*
78 %{_datadir}/license/%{name}
83 %{_includedir}/media/*.h
84 %{_libdir}/pkgconfig/*.pc
85 %{_libdir}/libcapi-media-codec.so