Fix a bug to remove thumb for music
[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.36
4 Release:    1
5 Group:      System/Libraries
6 License:    Apache License, Version 2.0
7 Source0:    %{name}-%{version}.tar.gz
8
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11
12 BuildRequires:  cmake
13 BuildRequires:  pkgconfig(glib-2.0)
14 BuildRequires:  pkgconfig(dlog)
15 BuildRequires:  pkgconfig(aul)
16 BuildRequires:  pkgconfig(libexif)
17 BuildRequires:  pkgconfig(mm-common)
18 BuildRequires:  pkgconfig(sqlite3)
19 BuildRequires:  pkgconfig(db-util)
20 BuildRequires:  pkgconfig(mm-fileinfo)
21 BuildRequires:  pkgconfig(media-thumbnail)
22 BuildRequires:  pkgconfig(drm-client)
23 BuildRequires:  pkgconfig(libmedia-utils)
24
25 %description
26 Media information service library for multimedia applications.
27
28 %package devel
29 Summary:    Media information service library for multimedia applications. (development)
30 Group:      Development/Libraries
31 Requires:   %{name} = %{version}-%{release}
32
33 %description devel
34 Media information service library for multimedia applications. (development files)
35
36
37 %prep
38 %setup -q 
39
40
41 %build
42 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
43 make %{?jobs:-j%jobs}
44
45 %install
46 rm -rf %{buildroot}
47 %make_install
48
49 #License
50 mkdir -p %{buildroot}/%{_datadir}/license
51 cp -rf %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/license/%{name}
52
53 %post -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
55
56 %files
57 %manifest libmedia-service.manifest
58 %defattr(-,root,root,-)
59 %{_libdir}/libmedia-service.so
60 %{_libdir}/libmedia-service.so.1
61 %{_libdir}/libmedia-service.so.1.0.0
62 %{_libdir}/libmedia-svc-hash.so
63 %{_libdir}/libmedia-svc-hash.so.1
64 %{_libdir}/libmedia-svc-hash.so.1.0.0
65 %{_libdir}/libmedia-content-plugin.so
66 %{_libdir}/libmedia-content-plugin.so.1
67 %{_libdir}/libmedia-content-plugin.so.1.0.0
68 #License
69 %{_datadir}/license/%{name}
70
71 %files devel
72 %{_libdir}/pkgconfig/libmedia-service.pc
73 %{_includedir}/media-service/*.h