return NOT_SUPPORTED error for unsupported fps
[platform/core/api/camera.git] / packaging / capi-media-camera.spec
1 %bcond_with wayland
2 %bcond_with x
3
4 Name:       capi-media-camera
5 Summary:    A Camera library in Tizen C API
6 Version:    0.2.3
7 Release:    0
8 Group:      Multimedia/API
9 License:    Apache-2.0
10 Source0:    %{name}-%{version}.tar.gz
11 BuildRequires:  cmake
12 BuildRequires:  pkgconfig(gstreamer-1.0)
13 BuildRequires:  pkgconfig(dlog)
14 BuildRequires:  pkgconfig(mm-camcorder)
15 BuildRequires:  pkgconfig(audio-session-mgr)
16 BuildRequires:  pkgconfig(capi-base-common)
17 BuildRequires:  pkgconfig(capi-media-tool)
18 BuildRequires:  pkgconfig(libtbm)
19 BuildRequires:  pkgconfig(evas)
20 BuildRequires:  pkgconfig(ecore)
21 BuildRequires:  pkgconfig(elementary)
22 BuildRequires:  pkgconfig(vconf)
23 Requires(post): /sbin/ldconfig
24 Requires(postun): /sbin/ldconfig
25
26
27 %description
28 A Camera library in Tizen C API.
29
30
31 %package devel
32 Summary:  A Camera library in Tizen C API (Development)
33 Requires: %{name} = %{version}-%{release}
34 Requires: pkgconfig(libtbm)
35 Requires: pkgconfig(capi-media-tool)
36
37
38 %description devel
39 A Camera library in Tizen C API.
40
41 Development related files.
42
43
44 %prep
45 %setup -q
46
47
48 %build
49 %if 0%{?sec_build_binary_debug_enable}
50 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE"
51 %endif
52 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
53 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
54 %if %{with wayland}
55         -DWAYLAND_SUPPORT=On \
56 %else
57         -DWAYLAND_SUPPORT=Off \
58 %endif
59 %if %{with x}
60         -DX11_SUPPORT=On
61 %else
62         -DX11_SUPPORT=Off
63 %endif
64
65 make %{?jobs:-j%jobs}
66
67
68 %install
69 rm -rf %{buildroot}
70 %make_install
71 mkdir -p %{buildroot}%{_datadir}/license
72 cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/%{name}
73
74
75 %post -p /sbin/ldconfig
76
77
78 %postun -p /sbin/ldconfig
79
80
81 %files
82 %manifest capi-media-camera.manifest
83 %{_libdir}/libcapi-media-camera.so.*
84 %{_datadir}/license/%{name}
85
86
87 %files devel
88 %{_includedir}/media/camera.h
89 %{_includedir}/media/camera_internal.h
90 %{_libdir}/pkgconfig/*.pc
91 %{_libdir}/libcapi-media-camera.so
92