Remove db-util dependency
[platform/core/multimedia/libmedia-service.git] / packaging / libmedia-service.spec
1 Name:       libmedia-service
2 Summary:    Media information service library for multimedia applications
3 Version: 0.3.31
4 Release:    0
5 Group:      Multimedia/Libraries
6 License:    Apache-2.0 and PD
7 Source0:    %{name}-%{version}.tar.gz
8 Source1001:     libmedia-service.manifest
9
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12
13 BuildRequires:  cmake
14 BuildRequires:  pkgconfig(glib-2.0)
15 BuildRequires:  pkgconfig(dlog)
16 BuildRequires:  pkgconfig(aul)
17 BuildRequires:  pkgconfig(libexif)
18 BuildRequires:  pkgconfig(sqlite3)
19 BuildRequires:  pkgconfig(icu-i18n)
20 BuildRequires:  pkgconfig(mm-fileinfo)
21 BuildRequires:  pkgconfig(libmedia-utils)
22 BuildRequires:  pkgconfig(uuid)
23 BuildRequires:  pkgconfig(libtzplatform-config)
24 BuildRequires:  pkgconfig(capi-system-info)
25 BuildRequires: pkgconfig(mmutil-magick)
26 %if 0%{?gtests:1}
27 BuildRequires:  pkgconfig(gmock)
28 %endif
29
30 %description
31 This package is a library that provides the media information service for the multimedia applications.
32
33 %package devel
34 Summary:    Media information service library for multimedia applications. (development)
35 Group:      Multimedia/Development
36 Requires:   %{name} = %{version}-%{release}
37
38 %description devel
39 This package is a library that provides the media information service for the multimedia applications. (Development files included)
40
41 %prep
42 %setup -q
43 cp %{SOURCE1001} .
44
45 %build
46 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
47 %cmake . -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0}
48 make %{?jobs:-j%jobs}
49
50 %install
51 rm -rf %{buildroot}
52 %make_install
53
54 %post -p /sbin/ldconfig
55 %postun -p /sbin/ldconfig
56
57 %files
58 %manifest %{name}.manifest
59 %defattr(-,root,root,-)
60 %{_libdir}/libmedia-service.so.*
61 %{_libdir}/libmedia-svc-hash.so.*
62 %{_libdir}/libmedia-content-plugin.so
63 %{_libdir}/libmedia-content-plugin.so.*
64 %if 0%{?gtests:1}
65 %{_bindir}/gtest*
66 %endif
67 #License
68 %license LICENSE.APLv2.0
69
70 %files devel
71 %manifest %{name}.manifest
72 %{_libdir}/libmedia-service.so
73 %{_libdir}/libmedia-svc-hash.so
74 %{_libdir}/pkgconfig/libmedia-service.pc
75 %{_includedir}/media-service/*.h