]> git.pld-linux.org Git - packages/ffmpegthumbnailer.git/blob - ffmpegthumbnailer.spec
- release 3
[packages/ffmpegthumbnailer.git] / ffmpegthumbnailer.spec
1 #
2 # Conditional builds
3 %bcond_without  gnomevfs        # Support for gnome-vfs uris
4
5 Summary:        Lightweight video thumbnailer
6 Summary(pl.UTF-8):      Lekki program do wykonywania miniaturek dla filmów
7 Name:           ffmpegthumbnailer
8 Version:        2.0.4
9 Release:        3
10 License:        GPL v2
11 Group:          Applications/Graphics
12 Source0:        http://ffmpegthumbnailer.googlecode.com/files/%{name}-%{version}.tar.gz
13 # Source0-md5:  83b43130e29a26126a50705a011004be
14 URL:            http://code.google.com/p/ffmpegthumbnailer/
15 %{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1}
16 BuildRequires:  autoconf >= 2.62
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  ffmpeg-devel >= 0.6
19 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0}
20 %{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0}
21 BuildRequires:  libjpeg-devel
22 BuildRequires:  libpng-devel
23 BuildRequires:  libstdc++-devel
24 BuildRequires:  libtool
25 BuildRequires:  pkgconfig
26 BuildRequires:  sed >= 4.0
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
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
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
65 %prep
66 %setup -q
67
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
76 %build
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__automake}
81 %configure \
82         %{?with_gnomevfs:--enable-gnome-vfs}
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
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %files
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog README TODO
100 %attr(755,root,root) %{_bindir}/ffmpegthumbnailer
101 %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libffmpegthumbnailer.so.4
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
This page took 0.143217 seconds and 3 git commands to generate.