]> git.pld-linux.org Git - packages/ffmpegthumbnailer.git/blob - ffmpegthumbnailer.spec
800c992764732683a7312fdee420fb1a7594673b
[packages/ffmpegthumbnailer.git] / ffmpegthumbnailer.spec
1 Summary:        Lightweight video thumbnailer
2 Summary(pl.UTF-8):      Lekki program do wykonywania miniaturek dla filmów
3 Name:           ffmpegthumbnailer
4 Version:        2.0.8
5 Release:        3
6 License:        GPL v2
7 Group:          Applications/Graphics
8 Source0:        http://ffmpegthumbnailer.googlecode.com/files/%{name}-%{version}.tar.gz
9 # Source0-md5:  03e081f89778cd5e4fce30b29a4630e1
10 URL:            http://code.google.com/p/ffmpegthumbnailer/
11 BuildRequires:  autoconf >= 2.62
12 BuildRequires:  automake >= 1:1.11
13 # libavcodec >= 52.26.0 libavformat libavutil libswscale
14 BuildRequires:  ffmpeg-devel >= 0.6
15 BuildRequires:  libjpeg-devel
16 BuildRequires:  libpng-devel
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool
19 BuildRequires:  pkgconfig
20 BuildRequires:  sed >= 4.0
21 # dlopens libglib-2.0.so.0 libgobject-2.0.so.0 libgio-2.0.so.0
22 Requires:       glib2
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
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
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
41 Requires:       libjpeg-devel
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
62 %prep
63 %setup -q
64
65 # use runtime library paths for dlopen
66 %{__sed} -i -e '
67         # glib2
68         s,"libglib-2.0.so","libglib-2.0.so.0",
69         s,"libgobject-2.0.so","libgobject-2.0.so.0",
70         s,"libgio-2.0.so","libgio-2.0.so.0",
71 ' main.cpp
72
73 %build
74 %configure \
75         --enable-gio \
76         --enable-thumbnailer
77
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
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog README TODO
95 %attr(755,root,root) %{_bindir}/ffmpegthumbnailer
96 %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libffmpegthumbnailer.so.4
98 %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer
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
This page took 0.042604 seconds and 2 git commands to generate.