blob: 38a5a85baa7408c8f363c25a95edbfa637c08a6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications.
Version: 0.2.0
Release: 1
Group: System/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/libmedia-thumbnail.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(mm-fileinfo)
BuildRequires: pkgconfig(mmutil-imgp)
BuildRequires: pkgconfig(mmutil-jpeg)
BuildRequires: pkgconfig(drm-service)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(heynoti)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(aul)
%description
Description: Media thumbnail service library for multimedia applications.
%package devel
License: Apache-2.0
Summary: Media thumbnail service library for multimedia applications. (development)
Requires: %{name} = %{version}-%{release}
Group: Development/Libraries
%description devel
Description: Media thumbnail service library for multimedia applications. (development)
%package -n media-thumbnail-server
License: Apache-2.0
Summary: Thumbnail generator.
Requires: %{name} = %{version}-%{release}
Group: Development/Libraries
%description -n media-thumbnail-server
Description: Media Thumbnail Server.
%prep
%setup -q
%build
cp %{SOURCE1001} .
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
%files
%manifest libmedia-thumbnail.manifest
%{_libdir}/libmedia-thumbnail.so
%{_libdir}/libmedia-thumbnail.so.*
%{_libdir}/libmedia-hash.so
%{_libdir}/libmedia-hash.so.*
%files devel
%manifest libmedia-thumbnail.manifest
%{_libdir}/pkgconfig/media-thumbnail.pc
%{_includedir}/media-thumbnail/media-thumb-types.h
%{_includedir}/media-thumbnail/media-thumb-error.h
%{_includedir}/media-thumbnail/media-thumbnail.h
%{_includedir}/media-thumbnail/media-thumbnail-private.h
%files -n media-thumbnail-server
%manifest libmedia-thumbnail.manifest
%{_bindir}/media-thumbnail-server
%attr(755,root,root) %{_sysconfdir}/init.d/thumbsvr
%attr(755,root,root) %{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
%attr(755,root,root) %{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
%exclude %{_bindir}/test-thumb
|