Fix bug: some triggers are missed
[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.2.84
4 Release:    0
5 Group:      Multimedia/Libraries
6 License:    Apache-2.0 and public domain
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(db-util)
20 BuildRequires:  pkgconfig(mm-fileinfo)
21 BuildRequires:  pkgconfig(media-thumbnail)
22 BuildRequires:  pkgconfig(libmedia-utils)
23 BuildRequires:  pkgconfig(uuid)
24 BuildRequires:  pkgconfig(libtzplatform-config)
25 BuildRequires:  pkgconfig(capi-media-image-util)
26
27 %description
28 This package is a library that provides the media information service for the multimedia applications.
29
30 %package devel
31 Summary:    Media information service library for multimedia applications. (development)
32 Group:      Multimedia/Development
33 Requires:   %{name} = %{version}-%{release}
34
35 %description devel
36 This package is a library that provides the media information service for the multimedia applications. (Development files included)
37
38 %prep
39 %setup -q
40 cp %{SOURCE1001} .
41
42 %build
43 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
44 %cmake .
45 make %{?jobs:-j%jobs}
46
47 %install
48 rm -rf %{buildroot}
49 %make_install
50
51 #License
52 mkdir -p %{buildroot}/%{_datadir}/license
53 cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
54
55 %post -p /sbin/ldconfig
56 %postun -p /sbin/ldconfig
57
58 %files
59 %manifest %{name}.manifest
60 %defattr(-,root,root,-)
61 %{_libdir}/libmedia-service.so
62 %{_libdir}/libmedia-service.so.1
63 %{_libdir}/libmedia-service.so.1.0.0
64 %{_libdir}/libmedia-svc-hash.so
65 %{_libdir}/libmedia-svc-hash.so.1
66 %{_libdir}/libmedia-svc-hash.so.1.0.0
67 %{_libdir}/libmedia-content-plugin.so
68 %{_libdir}/libmedia-content-plugin.so.1
69 %{_libdir}/libmedia-content-plugin.so.1.0.0
70
71 #License
72 %{_datadir}/license/%{name}
73
74 %files devel
75 %manifest %{name}.manifest
76 %{_libdir}/pkgconfig/libmedia-service.pc
77 %{_includedir}/media-service/*.h