1 |
daviddavid |
860650 |
%define major 4 |
2 |
|
|
%define libname %mklibname %{name} %{major} |
3 |
|
|
%define develname %mklibname %{name} -d |
4 |
ahmad |
53161 |
|
5 |
|
|
Name: ffmpegthumbnailer |
6 |
daviddavid |
1079202 |
Version: 2.2.0 |
7 |
wally |
1257919 |
Release: %mkrel 5 |
8 |
daviddavid |
860650 |
Summary: Lightweight video thumbnailer |
9 |
ahmad |
53161 |
License: GPLv2+ |
10 |
fwang |
299978 |
Group: Video/Utilities |
11 |
daviddavid |
860652 |
URL: https://github.com/dirkvdb/ffmpegthumbnailer |
12 |
|
|
Source0: https://github.com/dirkvdb/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 |
13 |
|
|
BuildRequires: cmake |
14 |
ahmad |
53161 |
BuildRequires: ffmpeg-devel |
15 |
ovitters |
1144337 |
BuildRequires: pkgconfig(libpng) |
16 |
|
|
BuildRequires: pkgconfig(libjpeg) |
17 |
ahmad |
53161 |
|
18 |
|
|
%description |
19 |
akien |
797143 |
This video thumbnailer can be used by file managers to |
20 |
|
|
create thumbnails for your video files. The thumbnailer |
21 |
|
|
uses ffmpeg to decode frames from the video files, so |
22 |
|
|
supported videoformats depend on the configuration |
23 |
ahmad |
53161 |
flags of ffmpeg. |
24 |
|
|
|
25 |
akien |
797143 |
This thumbnailer was designed to be as fast and |
26 |
ahmad |
53161 |
lightweight as possible. |
27 |
|
|
|
28 |
daviddavid |
860650 |
%package -n %{libname} |
29 |
ahmad |
53161 |
Summary: Main library for %{name} |
30 |
fwang |
299978 |
Group: Video/Utilities |
31 |
ahmad |
53161 |
Obsoletes: %{mklibname %{name} 2} |
32 |
|
|
|
33 |
daviddavid |
860650 |
%description -n %{libname} |
34 |
ahmad |
53161 |
Main library for %{name}. |
35 |
|
|
|
36 |
daviddavid |
860650 |
%package -n %{develname} |
37 |
ahmad |
53161 |
Summary: Development files for %{name} |
38 |
|
|
Group: Development/C++ |
39 |
|
|
Requires: %{libname} = %{version}-%{release} |
40 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
41 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
42 |
|
|
|
43 |
daviddavid |
860650 |
%description -n %{develname} |
44 |
ahmad |
53161 |
Development files for %{name}. |
45 |
|
|
|
46 |
|
|
%prep |
47 |
|
|
%setup -q |
48 |
|
|
|
49 |
|
|
%build |
50 |
daviddavid |
860652 |
%cmake \ |
51 |
|
|
-DENABLE_STATIC:BOOL=OFF |
52 |
wally |
1473997 |
%cmake_build |
53 |
ahmad |
53161 |
|
54 |
|
|
%install |
55 |
wally |
1473997 |
%cmake_install |
56 |
ahmad |
53161 |
|
57 |
daviddavid |
860652 |
# we don't want these |
58 |
|
|
find %{buildroot} -name '*.la' -delete |
59 |
ahmad |
53161 |
|
60 |
|
|
%files |
61 |
|
|
%doc AUTHORS ChangeLog README TODO |
62 |
daviddavid |
860650 |
%{_bindir}/%{name} |
63 |
daviddavid |
860652 |
%{_mandir}/man1/%{name}.1* |
64 |
ahmad |
53161 |
|
65 |
|
|
%files -n %{libname} |
66 |
daviddavid |
860652 |
%{_libdir}/*.so.%{major} |
67 |
ovitters |
878400 |
%{_libdir}/*.so.%{major}.* |
68 |
ahmad |
53161 |
|
69 |
|
|
%files -n %{develname} |
70 |
|
|
%{_libdir}/*.so |
71 |
daviddavid |
860652 |
%{_includedir}/libffmpegthumbnailer/ |
72 |
ahmad |
53161 |
%{_libdir}/pkgconfig/*.pc |