a92043f746b53f38b276b39e1e4a917423958589
[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.4.25
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(libzip)
21 BuildRequires:  pkgconfig(libxml-2.0)
22 BuildRequires:  pkgconfig(mm-fileinfo)
23 BuildRequires:  pkgconfig(libmedia-utils)
24 BuildRequires:  pkgconfig(uuid)
25 BuildRequires:  pkgconfig(libtzplatform-config)
26 BuildRequires:  pkgconfig(capi-system-info)
27 BuildRequires:  pkgconfig(mmutil-magick)
28 BuildRequires:  pkgconfig(media-thumbnail)
29 BuildRequires:  pkgconfig(libpodofo)
30 BuildRequires:  pkgconfig(iniparser)
31
32 %if 0%{?gtests:1}
33 BuildRequires:  pkgconfig(gmock)
34 %endif
35
36 %description
37 This package is a library that provides the media information service for the multimedia applications.
38
39 %package devel
40 Summary:    Media information service library for multimedia applications. (development)
41 Group:      Multimedia/Development
42 Requires:   %{name} = %{version}-%{release}
43
44 %description devel
45 This package is a library that provides the media information service for the multimedia applications. (Development files included)
46
47 %prep
48 %setup -q
49 cp %{SOURCE1001} .
50
51 %build
52 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
53 %cmake . -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0}
54 make %{?jobs:-j%jobs}
55
56 %install
57 rm -rf %{buildroot}
58 %make_install
59
60 %post -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
62
63 %files
64 %manifest %{name}.manifest
65 %defattr(-,root,root,-)
66 %{_libdir}/libmedia-service.so.*
67 %{_libdir}/libmedia-svc-hash.so.*
68 %{_libdir}/libmedia-content-plugin.so
69 %{_libdir}/libmedia-content-plugin.so.*
70 %{_libdir}/libmedia-ebook-plugin.so
71 %if 0%{?gtests:1}
72 %{_bindir}/gtest*
73 %endif
74 #License
75 %license LICENSE.APLv2.0
76
77 %files devel
78 %manifest %{name}.manifest
79 %{_libdir}/libmedia-service.so
80 %{_libdir}/libmedia-svc-hash.so
81 %{_libdir}/pkgconfig/libmedia-service.pc
82 %{_includedir}/media-service/*.h