540d5c1e5e49f15e2841d1e5189238cae807b6fa
[platform/core/multimedia/libmm-camcorder.git] / packaging / libmm-camcorder.spec
1 Name:       libmm-camcorder
2 Summary:    Camera and recorder library
3 Version:    0.10.257
4 Release:    0
5 Group:      Multimedia/Libraries
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Requires(post): /sbin/ldconfig
9 Requires(postun): /sbin/ldconfig
10 BuildRequires:  pkgconfig(glib-2.0)
11 BuildRequires:  pkgconfig(gio-2.0)
12 BuildRequires:  pkgconfig(capi-system-info)
13 BuildRequires:  pkgconfig(mm-common)
14 BuildRequires:  pkgconfig(libexif)
15 BuildRequires:  pkgconfig(mmutil-imgp)
16 BuildRequires:  pkgconfig(mmutil-jpeg)
17 BuildRequires:  pkgconfig(gstreamer-1.0)
18 BuildRequires:  pkgconfig(gstreamer-base-1.0)
19 BuildRequires:  pkgconfig(gstreamer-allocators-1.0)
20 BuildRequires:  pkgconfig(gstreamer-video-1.0)
21 BuildRequires:  pkgconfig(gstreamer-app-1.0)
22 BuildRequires:  pkgconfig(vconf)
23 BuildRequires:  pkgconfig(libtbm)
24 BuildRequires:  pkgconfig(storage)
25 %if "%{tizen_profile_name}" == "tv"
26 BuildRequires:  pkgconfig(tv-resource-manager)
27 BuildRequires:  pkgconfig(tv-resource-information)
28 BuildRequires:  pkgconfig(aul)
29 BuildRequires:  pkgconfig(resource-center-api)
30 %if (("%{_vd_cfg_product_type}" != "AUDIO") && ("%{_vd_cfg_target_repository}" != "emulator"))
31 BuildRequires:  pkgconfig(camera-conf-mgr-tv)
32 %endif
33 %else
34 BuildRequires:  pkgconfig(mm-resource-manager)
35 %endif
36 BuildRequires:  pkgconfig(ttrace)
37 BuildRequires:  pkgconfig(libtzplatform-config)
38 BuildRequires:  pkgconfig(dpm)
39 BuildRequires:  pkgconfig(dlog)
40 %if "%{gtests}" == "1"
41 BuildRequires:  pkgconfig(gmock)
42 %endif
43
44 %description
45 Camera and recorder function supported library.
46
47
48 %package devel
49 Summary:    Camera and recorder library for development
50 Group:      libdevel
51 Version:    %{version}
52 Requires:   %{name} = %{version}-%{release}
53
54 %description devel
55 Camera and recorder function supported library for development.
56
57
58 %prep
59 %setup -q
60
61
62 %build
63 %if 0%{?gcov:1}
64 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
65 export LDFLAGS+=" -lgcov"
66 %endif
67 export CFLAGS+=" -D_LARGEFILE64_SOURCE -DGST_USE_UNSTABLE_API -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\" -DTZ_SYS_ETC=\\\"%{TZ_SYS_ETC}\\\""
68 ./autogen.sh
69 %configure \
70 %if "%{tizen_profile_name}" == "tv"
71         --enable-rm \
72         --enable-product-tv \
73 %if (("%{_vd_cfg_product_type}" != "AUDIO") && ("%{_vd_cfg_target_repository}" != "emulator"))
74         --enable-camera-conf-mgr-tv \
75 %endif
76 %else
77         --enable-mm-resource-manager \
78 %endif
79 %if "%{gtests}" == "1"
80         --enable-gtests \
81 %endif
82         --disable-static
83 make %{?jobs:-j%jobs}
84
85 %install
86 %make_install
87
88
89 %post
90 /sbin/ldconfig
91
92 %postun -p /sbin/ldconfig
93
94 %files
95 %manifest libmm-camcorder.manifest
96 %license LICENSE.APLv2
97 %defattr(-,root,root,-)
98 %{_libdir}/*.so.*
99 %{_datadir}/sounds/mm-camcorder/*
100 %if "%{gtests}" == "1"
101 %{_bindir}/gtests-libmm-camcorder
102 %endif
103
104 %files devel
105 %defattr(-,root,root,-)
106 %{_includedir}/mmf/mm_camcorder.h
107 %{_libdir}/pkgconfig/mm-camcorder.pc
108 %{_libdir}/*.so