Name: capi-media-codec
Summary: A Media Codec library in Tizen Native API
-Version: 0.6.7
-Release: 0
+Version: 0.6.27
+Release: 2
Group: Multimedia/API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
+BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
+BuildRequires: pkgconfig(gstreamer-tag-1.0)
+BuildRequires: pkgconfig(gstreamer-allocators-1.0)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(iniparser)
%if "%{tizen_profile_name}" != "tv"
#BuildRequires: pkgconfig(capi-mediademuxer)
#BuildRequires: pkgconfig(capi-mediamuxer)
+
%description
A Media Codec library in Tizen Native API
%build
-export CFLAGS="$CFLAGS -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
+export CFLAGS="$CFLAGS -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\""
%if 0%{?gcov:1}
export CFLAGS+=" -fprofile-arcs -ftest-coverage"
make %{?jobs:-j%jobs}
-%if 0%{?gcov:1}
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
%install
rm -rf %{buildroot}
%make_install
%if 0%{?gcov:1}
-mkdir -p %{buildroot}%{_datadir}/gcov/obj
-install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+builddir=$(basename $PWD)
+gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
+mkdir -p "$gcno_obj_dir"
+find . -name '*.gcno' -not -regex ".*\(test\|internal\|bitstream\|port\|ini\|util\).*$" -exec cp --parents '{}' "$gcno_obj_dir" ';'
%endif