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