1 |
%define major 4 |
2 |
%define libname %mklibname %{name} %{major} |
3 |
%define develname %mklibname %{name} -d |
4 |
|
5 |
Summary: Lightweight video thumbnailer |
6 |
Name: ffmpegthumbnailer |
7 |
Version: 2.0.6 |
8 |
Release: %mkrel 1 |
9 |
License: GPLv2+ |
10 |
Group: Video |
11 |
URL: http://code.google.com/p/ffmpegthumbnailer/ |
12 |
Source0: http://ffmpegthumbnailer.googlecode.com/files/%{name}-%{version}.tar.gz |
13 |
BuildRequires: ffmpeg-devel |
14 |
BuildRequires: libpng-devel |
15 |
BuildRequires: libjpeg-devel |
16 |
Requires: %{libname} = %{version}-%{release} |
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
18 |
|
19 |
%description |
20 |
This video thumbnailer can be used by file managers to |
21 |
create thumbnails for your video files. The thumbnailer |
22 |
uses ffmpeg to decode frames from the video files, so |
23 |
supported videoformats depend on the configuration |
24 |
flags of ffmpeg. |
25 |
|
26 |
This thumbnailer was designed to be as fast and |
27 |
lightweight as possible. |
28 |
|
29 |
%package -n %{libname} |
30 |
Summary: Main library for %{name} |
31 |
Group: Video |
32 |
Obsoletes: %{mklibname %{name} 2} |
33 |
|
34 |
%description -n %{libname} |
35 |
Main library for %{name}. |
36 |
|
37 |
%package -n %{develname} |
38 |
Summary: Development files for %{name} |
39 |
Group: Development/C++ |
40 |
Requires: %{libname} = %{version}-%{release} |
41 |
Provides: lib%{name}-devel = %{version}-%{release} |
42 |
Provides: %{name}-devel = %{version}-%{release} |
43 |
|
44 |
%description -n %{develname} |
45 |
Development files for %{name}. |
46 |
|
47 |
%prep |
48 |
%setup -q |
49 |
|
50 |
%build |
51 |
%configure2_5x \ |
52 |
--disable-static |
53 |
|
54 |
%make |
55 |
|
56 |
%install |
57 |
rm -rf %{buildroot} |
58 |
|
59 |
%makeinstall_std |
60 |
|
61 |
rm -rf %{buildroot}%{_libdir}/libffmpegthumbnailer.la |
62 |
|
63 |
%clean |
64 |
rm -rf %{buildroot} |
65 |
|
66 |
%files |
67 |
%defattr(-,root,root) |
68 |
%doc AUTHORS ChangeLog README TODO |
69 |
%{_bindir}/ffmpegthumbnailer |
70 |
%{_mandir}/man1/* |
71 |
|
72 |
%files -n %{libname} |
73 |
%{_libdir}/*.so.%{major}* |
74 |
|
75 |
%files -n %{develname} |
76 |
%{_libdir}/*.so |
77 |
%{_includedir}/* |
78 |
%{_libdir}/pkgconfig/*.pc |
79 |
|
80 |
|