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