[Release version 0.10.29]
[platform/core/multimedia/libmm-camcorder.git] / packaging / libmm-camcorder.spec
1 %bcond_with wayland
2
3 Name:       libmm-camcorder
4 Summary:    Camera and recorder library
5 Version:    0.10.29
6 Release:    0
7 Group:      Multimedia/Libraries
8 License:    Apache-2.0
9 Source0:    %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  pkgconfig(glib-2.0)
13 BuildRequires:  pkgconfig(gio-2.0)
14 BuildRequires:  pkgconfig(capi-system-info)
15 BuildRequires:  pkgconfig(mm-common)
16 BuildRequires:  pkgconfig(mm-sound)
17 BuildRequires:  pkgconfig(libexif)
18 BuildRequires:  pkgconfig(mmutil-imgp)
19 BuildRequires:  pkgconfig(mmutil-jpeg)
20 BuildRequires:  pkgconfig(gstreamer-base-1.0)
21 BuildRequires:  pkgconfig(gstreamer-video-1.0)
22 BuildRequires:  pkgconfig(gstreamer-app-1.0)
23 %if %{with wayland}
24 BuildRequires:  pkgconfig(gstreamer-wayland-1.0)
25 BuildRequires:  pkgconfig(wayland-client)
26 %endif
27 BuildRequires:  pkgconfig(vconf)
28 BuildRequires:  pkgconfig(libtbm)
29 BuildRequires:  pkgconfig(storage)
30 BuildRequires:  pkgconfig(murphy-resource)
31 BuildRequires:  pkgconfig(murphy-glib)
32 BuildRequires:  pkgconfig(ttrace)
33
34 %description
35 Camera and recorder function supported library.
36
37
38 %package devel
39 Summary:    Camera and recorder library for development
40 Group:      libdevel
41 Version:    %{version}
42 Requires:   %{name} = %{version}-%{release}
43
44 %description devel
45 Camera and recorder function supported library for development.
46
47
48 %prep
49 %setup -q
50
51
52 %build
53 %if %{with wayland}
54 export CFLAGS+=" -DHAVE_WAYLAND"
55 %endif
56 export CFLAGS+=" -D_LARGEFILE64_SOURCE"
57 ./autogen.sh
58 %configure \
59 %if %{with wayland}
60         --enable-wayland \
61 %endif
62         --disable-static
63 make %{?jobs:-j%jobs}
64
65 %install
66 mkdir -p %{buildroot}/usr/share/license
67 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
68 %make_install
69
70
71 %post
72 /sbin/ldconfig
73
74 %postun -p /sbin/ldconfig
75
76 %files
77 %manifest libmm-camcorder.manifest
78 %defattr(-,root,root,-)
79 %{_bindir}/*
80 %{_libdir}/*.so.*
81 /usr/share/sounds/mm-camcorder/*
82 %{_datadir}/license/%{name}
83
84 %files devel
85 %defattr(-,root,root,-)
86 %{_includedir}/mmf/mm_camcorder.h
87 %{_includedir}/mmf/mm_camcorder_client.h
88 %{_libdir}/pkgconfig/mm-camcorder.pc
89 %{_libdir}/*.so