]>
Commit | Line | Data |
---|---|---|
7a0f7637 | 1 | Summary: Lightweight video thumbnailer |
a8b04dac | 2 | Summary(pl.UTF-8): Lekki program do wykonywania miniaturek dla filmów |
7a0f7637 | 3 | Name: ffmpegthumbnailer |
4705676e | 4 | Version: 2.0.8 |
45fb1878 | 5 | Release: 5 |
7a0f7637 | 6 | License: GPL v2 |
c507c284 | 7 | Group: Applications/Graphics |
7a0f7637 | 8 | Source0: http://ffmpegthumbnailer.googlecode.com/files/%{name}-%{version}.tar.gz |
4705676e | 9 | # Source0-md5: 03e081f89778cd5e4fce30b29a4630e1 |
45fb1878 | 10 | Patch0: %{name}-build.patch |
7a0f7637 | 11 | URL: http://code.google.com/p/ffmpegthumbnailer/ |
35f24e98 ER |
12 | BuildRequires: autoconf >= 2.62 |
13 | BuildRequires: automake >= 1:1.11 | |
fae5264b | 14 | # libavcodec >= 52.26.0 libavformat libavutil libswscale |
191710e7 | 15 | BuildRequires: ffmpeg-devel >= 0.6 |
e12f335b | 16 | BuildRequires: libjpeg-devel |
7a0f7637 | 17 | BuildRequires: libpng-devel |
2d5a747b MB |
18 | BuildRequires: libstdc++-devel |
19 | BuildRequires: libtool | |
c507c284 | 20 | BuildRequires: pkgconfig |
191710e7 | 21 | BuildRequires: sed >= 4.0 |
fae5264b | 22 | # dlopens libglib-2.0.so.0 libgobject-2.0.so.0 libgio-2.0.so.0 |
3fd37711 | 23 | Requires: glib2 |
7a0f7637 MB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | ffmpegthumbnailer can be used by file managers to create thumbnails | |
28 | for your video files. It uses ffmpeg to decode frames from the video | |
29 | files. | |
30 | ||
a8b04dac JB |
31 | %description -l pl.UTF-8 |
32 | ffmpegthumbnailer może być używany przez zarządców plików do tworzenia | |
33 | miniaturek dla plików filmów. Wykorzystuje ffmpeg do dekodowania | |
34 | klatek. | |
35 | ||
2d5a747b MB |
36 | %package devel |
37 | Summary: Header files for libffmpegthumbnailer library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libffmpegthumbnailer | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: ffmpeg-devel | |
fae5264b | 42 | Requires: libjpeg-devel |
2d5a747b MB |
43 | Requires: libpng-devel |
44 | ||
45 | %description devel | |
46 | Header files for libffmpegthumbnailer library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki libffmpegthumbnailer. | |
50 | ||
51 | %package static | |
52 | Summary: Static libffmpegthumbnailer library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka libffmpegthumbnailer | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static libffmpegthumbnailer library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka libffmpegthumbnailer. | |
62 | ||
7a0f7637 MB |
63 | %prep |
64 | %setup -q | |
45fb1878 | 65 | %patch0 -p1 |
7a0f7637 | 66 | |
191710e7 | 67 | # use runtime library paths for dlopen |
fae5264b | 68 | %{__sed} -i -e ' |
191710e7 ER |
69 | # glib2 |
70 | s,"libglib-2.0.so","libglib-2.0.so.0", | |
3fd37711 JR |
71 | s,"libgobject-2.0.so","libgobject-2.0.so.0", |
72 | s,"libgio-2.0.so","libgio-2.0.so.0", | |
191710e7 ER |
73 | ' main.cpp |
74 | ||
7a0f7637 | 75 | %build |
191710e7 | 76 | %configure \ |
3fd37711 JR |
77 | --enable-gio \ |
78 | --enable-thumbnailer | |
79 | ||
7a0f7637 MB |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
2d5a747b MB |
91 | %post -p /sbin/ldconfig |
92 | %postun -p /sbin/ldconfig | |
93 | ||
7a0f7637 MB |
94 | %files |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS ChangeLog README TODO | |
97 | %attr(755,root,root) %{_bindir}/ffmpegthumbnailer | |
2d5a747b | 98 | %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so.*.*.* |
191710e7 | 99 | %attr(755,root,root) %ghost %{_libdir}/libffmpegthumbnailer.so.4 |
3fd37711 | 100 | %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer |
2d5a747b MB |
101 | %{_mandir}/man1/ffmpegthumbnailer.1* |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so | |
106 | %{_libdir}/libffmpegthumbnailer.la | |
107 | %{_includedir}/libffmpegthumbnailer | |
108 | %{_pkgconfigdir}/libffmpegthumbnailer.pc | |
109 | ||
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libffmpegthumbnailer.a |