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}" == "Z130H" || "%{?tizen_target_name}" == "Z300H"
22 #!BuildIgnore: kernel-headers
23 BuildConflicts: linux-glibc-devel
24 BuildRequires: kernel-headers-tizen-dev
26 Requires(post): /sbin/ldconfig
27 Requires(post): libprivilege-control
28 Requires(postun): /sbin/ldconfig
34 Summary: A Media Player library in Tizen Native API (Development)
35 Group: TO_BE/FILLED_IN
36 Requires: %{name} = %{version}-%{release}
45 %if "%{tizen_target_name}" == "Z130H" || "%{?tizen_target_name}" == "Z300H"
46 export CFLAGS="$CFLAGS -DTIZEN_PROFILE_LITE"
48 %if 0%{?sec_build_binary_debug_enable}
49 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
50 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
51 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
54 export CFLAGS="$CFLAGS -DENABLE_FFMPEG_CODEC"
57 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
58 %cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
65 mkdir -p %{buildroot}/usr/share/license
66 mkdir -p %{buildroot}/usr/bin
67 cp test/media_codec_test %{buildroot}/usr/bin
68 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
75 %postun -p /sbin/ldconfig
79 %manifest capi-media-codec.manifest
80 %{_libdir}/libcapi-media-codec.so.*
81 %{_datadir}/license/%{name}
86 %{_includedir}/media/*.h
87 %{_libdir}/pkgconfig/*.pc
88 %{_libdir}/libcapi-media-codec.so