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