1 Name: capi-media-camera
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(dlog)
10 BuildRequires: pkgconfig(glib-2.0)
11 BuildRequires: pkgconfig(gio-2.0)
12 BuildRequires: pkgconfig(muse-client)
13 BuildRequires: pkgconfig(mm-common)
14 BuildRequires: pkgconfig(mm-camcorder)
15 BuildRequires: pkgconfig(mm-display-interface)
16 BuildRequires: pkgconfig(capi-base-common)
17 BuildRequires: pkgconfig(mmsvc-camera)
18 BuildRequires: pkgconfig(capi-media-tool)
19 BuildRequires: pkgconfig(libtbm)
20 BuildRequires: pkgconfig(appcore-efl)
21 BuildRequires: pkgconfig(elementary)
22 BuildRequires: pkgconfig(evas)
24 Requires(post): /sbin/ldconfig
25 Requires(postun): /sbin/ldconfig
28 A Camera library in Tizen Native API.
32 Summary: A Camera API (Development)
33 Requires: %{name} = %{version}-%{release}
34 Requires: pkgconfig(libtbm)
35 Requires: pkgconfig(capi-media-tool)
38 Development related files for a Camera library in Tizen Native API.
42 Summary: A Camera API testsuite for headed target
43 Requires: %{name} = %{version}-%{release}
45 %description test-headed
46 Tizen Native camera API testsuite for headed target.
48 %package test-headless
49 Summary: A Camera API testsuite for headless target
50 Requires: %{name} = %{version}-%{release}
52 %description test-headless
53 Tizen Native camera API testsuite for headless target.
58 Summary: Line Coverage of Camera library in Tizen Native API
59 Group: Development/Multimedia
62 Collection of files related to Line Coverage. It is teseted as gcov for a camera library in Tizen native API
71 %if 0%{?sec_build_binary_debug_enable}
72 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE"
74 %if "%{tizen_profile_name}" != "tv"
75 export CFLAGS+=" -DTIZEN_FEATURE_NO_TIMEOUT_FOR_PREVIEW"
78 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
79 export LDFLAGS+=" -lgcov"
81 export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
82 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
84 SO_MAJORVER=`echo ${SO_FULLVER} | awk 'BEGIN {FS="."}{print $1}'`
85 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DSO_FULLVER=${SO_FULLVER} -DSO_MAJORVER=${SO_MAJORVER}
95 builddir=$(basename $PWD)
96 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
97 mkdir -p "$gcno_obj_dir"
98 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
101 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
108 %manifest capi-media-camera.manifest
109 %license LICENSE.APLv2
110 %{_libdir}/libcapi-media-camera.so.*
113 %{_includedir}/media/camera.h
114 %{_includedir}/media/camera_device_manager.h
115 %{_includedir}/media/camera_internal.h
116 %{_libdir}/pkgconfig/*.pc
117 %{_libdir}/libcapi-media-camera.so
120 %manifest capi-media-camera-test-headed.manifest
121 %license LICENSE.APLv2
122 %{_bindir}/camera_test_headed
125 %manifest capi-media-camera-test-headless.manifest
126 %license LICENSE.APLv2
127 %{_bindir}/camera_test_headless
131 %{_datadir}/gcov/obj/*