]>
Commit | Line | Data |
---|---|---|
893cf8a4 | 1 | %define snap 9503bb9b |
7a0f7637 | 2 | Summary: Lightweight video thumbnailer |
a8b04dac | 3 | Summary(pl.UTF-8): Lekki program do wykonywania miniaturek dla filmów |
7a0f7637 | 4 | Name: ffmpegthumbnailer |
893cf8a4 JR |
5 | Version: 2.1.1 |
6 | Release: 0.%{snap}.1 | |
7a0f7637 | 7 | License: GPL v2 |
c507c284 | 8 | Group: Applications/Graphics |
893cf8a4 JR |
9 | Source0: %{name}-%{version}-%{snap}.tar.bz2 |
10 | # Source0-md5: df7d3bc94a4cf37e1337eab246715e10 | |
11 | URL: https://github.com/dirkvdb/ffmpegthumbnailer | |
12 | BuildRequires: cmake | |
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 | 17 | BuildRequires: libstdc++-devel |
c507c284 | 18 | BuildRequires: pkgconfig |
191710e7 | 19 | BuildRequires: sed >= 4.0 |
fae5264b | 20 | # dlopens libglib-2.0.so.0 libgobject-2.0.so.0 libgio-2.0.so.0 |
3fd37711 | 21 | Requires: glib2 |
7a0f7637 MB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | ffmpegthumbnailer can be used by file managers to create thumbnails | |
26 | for your video files. It uses ffmpeg to decode frames from the video | |
27 | files. | |
28 | ||
a8b04dac JB |
29 | %description -l pl.UTF-8 |
30 | ffmpegthumbnailer może być używany przez zarządców plików do tworzenia | |
31 | miniaturek dla plików filmów. Wykorzystuje ffmpeg do dekodowania | |
32 | klatek. | |
33 | ||
2d5a747b MB |
34 | %package devel |
35 | Summary: Header files for libffmpegthumbnailer library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libffmpegthumbnailer | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: ffmpeg-devel | |
fae5264b | 40 | Requires: libjpeg-devel |
2d5a747b MB |
41 | Requires: libpng-devel |
42 | ||
43 | %description devel | |
44 | Header files for libffmpegthumbnailer library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki libffmpegthumbnailer. | |
48 | ||
49 | %package static | |
50 | Summary: Static libffmpegthumbnailer library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka libffmpegthumbnailer | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static libffmpegthumbnailer library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka libffmpegthumbnailer. | |
60 | ||
7a0f7637 MB |
61 | %prep |
62 | %setup -q | |
191710e7 | 63 | |
7a0f7637 | 64 | %build |
893cf8a4 JR |
65 | mkdir build |
66 | cd build | |
67 | %{cmake} \ | |
68 | -DENABLE_TESTS=ON \ | |
69 | -DENABLE_STATIC=ON \ | |
70 | -DENABLE_GIO=ON \ | |
71 | -DENABLE_THUMBNAILER=ON \ | |
72 | .. | |
3fd37711 | 73 | |
7a0f7637 MB |
74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
893cf8a4 | 79 | cd build |
7a0f7637 MB |
80 | %{__make} install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
2d5a747b MB |
86 | %post -p /sbin/ldconfig |
87 | %postun -p /sbin/ldconfig | |
88 | ||
7a0f7637 MB |
89 | %files |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS ChangeLog README TODO | |
92 | %attr(755,root,root) %{_bindir}/ffmpegthumbnailer | |
2d5a747b | 93 | %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so.*.*.* |
191710e7 | 94 | %attr(755,root,root) %ghost %{_libdir}/libffmpegthumbnailer.so.4 |
3fd37711 | 95 | %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer |
2d5a747b MB |
96 | %{_mandir}/man1/ffmpegthumbnailer.1* |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so | |
2d5a747b MB |
101 | %{_includedir}/libffmpegthumbnailer |
102 | %{_pkgconfigdir}/libffmpegthumbnailer.pc | |
103 | ||
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/libffmpegthumbnailer.a |