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