3 %bcond_without qt # don't build Qt-based thumbnail plugin
4 %bcond_without static_libs # don't build static library
6 Summary: Meta-data extraction library
7 Summary(pl.UTF-8): Biblioteka do ekstrakcji metadanych
13 Source0: ftp://ftp.gnu.org/gnu/libextractor/%{name}-%{version}.tar.gz
14 # Source0-md5: 4b2af1167061430d58a101d5dfc6b4c7
15 Patch0: %{name}-64bit.patch
16 Patch1: %{name}-pmake.patch
17 Patch2: %{name}-info.patch
18 Patch5: %{name}-rpm5.patch
19 URL: http://gnunet.org/libextractor/
21 BuildRequires: QtSvg-devel >= 4.0.1
23 BuildRequires: autoconf >= 2.61
24 BuildRequires: automake
25 BuildRequires: bzip2-devel
26 BuildRequires: gettext-devel >= 0.14.5
27 BuildRequires: flac-devel
28 BuildRequires: glib2-devel >= 2.0.0
29 BuildRequires: gtk+2-devel >= 2:2.6.0
30 BuildRequires: libgsf-devel
31 BuildRequires: libltdl-devel
32 BuildRequires: libstdc++-devel
33 BuildRequires: libtool >= 2:1.5
34 BuildRequires: libvorbis-devel
35 BuildRequires: mpeg2dec-devel
36 BuildRequires: pkgconfig
37 BuildRequires: rpm-devel
38 BuildRequires: texinfo
39 BuildRequires: zlib-devel
40 Obsoletes: libextractor-printable
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _noautoreqfiles %{_libdir}/%{name}/libextractor_.*\\.la
46 libextractor is a simple library for meta-data extraction.
47 libextractor uses a plugin-mechanism that makes it easy to add support
48 for more file formats, allowing anybody to add new extractors quickly.
50 libextractor currently features meta-data extractors for HTML, JPEG,
51 Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real Audio and Video,
52 PostScript and PDF documents. It also detects many more MIME-types in
53 a fashion similar to the well-known "file" tool.
55 Each item of meta-data that is extracted from a file is categorized
56 into one of currently about 40 meta-data categories (e.g. title,
57 author, description or MIME-type).
59 This libextractor package also contains a little binary tool "extract"
60 that can be used to invoke libextractor from the command line.
61 "extract" can be used similar to "file", but while "file" currently
62 supports a wider range of file types, "extract" should be able to
63 provide more precise and more detailed information for the supported
64 types of documents (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS,
67 %description -l pl.UTF-8
68 libextractor to prosta biblioteka służąca do ekstrakcji metadanych.
69 libextractor używa mechanizmu "wtyczek", dzięki czemu łatwo jest dodać
70 wsparcie dla nowych formatów plików.
72 libextractor obecnie pozwala na pozyskanie metadanych z plików w
73 formatach HTML, JPEG, Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real
74 Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje dużo więcej
75 typów MIME w sposób podobny do dobrze znanego narzędzia "file".
77 Każda informacja pobrana z pliku należy do jednej z około 40
78 kategorii (np. tytuł, autor, opis, typ MIME).
80 Ta paczka zawiera też narzędzie "extract", które pozwala skorzystać z
81 usług libextractor bezpośrednio z linii poleceń. "extract" może być
82 używane w podobny sposób, co "file". "file" zna więcej typów danych,
83 "extract" natomiast dostarcza bardziej precyzyjnych i szczegółowych
84 informacji na temat obsługiwanych formatów (HTML, JPEG, Ogg, MP3, PNG,
85 GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF).
88 Summary: GTK+ Thumbnail plugin for libextractor
89 Summary(pl.UTF-8): Wtyczka obsługująca miniaturki obrazów poprzez GTK+ dla biblioteki libextractor
91 Requires: %{name} = %{version}-%{release}
92 Requires: gtk+2 >= 2:2.6.0
94 %description thumbnail
95 libextractor plugin that supports thumbnails through GTK+.
97 %description thumbnail -l pl.UTF-8
98 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
101 %package thumbnail-qt
102 Summary: Qt Thumbnail plugin for libextractor
103 Summary(pl.UTF-8): Wtyczka obsługujące miniaturki obrazów poprzez Qt dla biblioteki libextractor
105 Requires: %{name} = %{version}-%{release}
107 %description thumbnail-qt
108 libextractor plugin that supports thumbnails through Qt.
110 %description thumbnail-qt -l pl.UTF-8
111 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
115 Summary: Development files for libextractor
116 Summary(pl.UTF-8): Pliki nagłówkowe libextractor
117 Group: Development/Libraries
118 Requires: %{name} = %{version}-%{release}
119 Requires: bzip2-devel
120 Requires: libgsf-devel
121 Requires: libltdl-devel
124 This package contains files to develop with libextractor, that is
125 either to create plugins or to compile applications with libextractor.
127 %description devel -l pl.UTF-8
128 Piki nagłówkowe wymagane do tworzenia aplikacji i wtyczek
129 korzystających z libextractor.
132 Summary: Static libextractor libraries
133 Summary(pl.UTF-8): Statyczne biblioteki libextractor
134 Group: Development/Libraries
135 Requires: %{name}-devel = %{version}-%{release}
138 This package contains static libraries of libextractor.
140 %description static -l pl.UTF-8
141 Statyczna wersja bibliotek libextractor.
157 %{?with_qt:CPPFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt"}
159 %{?with_static_libs:--enable-static} \
160 %{?with_qt:--with-qt}
165 rm -rf $RPM_BUILD_ROOT
168 DESTDIR=$RPM_BUILD_ROOT
171 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.a
176 rm -rf $RPM_BUILD_ROOT
178 %post -p /sbin/ldconfig
179 %postun -p /sbin/ldconfig
181 %post devel -p /sbin/postshell
182 -/usr/sbin/fix-info-dir -c %{_infodir}
184 %postun devel -p /sbin/postshell
185 -/usr/sbin/fix-info-dir -c %{_infodir}
187 %files -f %{name}.lang
188 %defattr(644,root,root,755)
189 %doc AUTHORS ChangeLog NEWS README TODO
190 %attr(755,root,root) %{_bindir}/extract
191 %attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
192 %attr(755,root,root) %{_libdir}/libextractor_common.so.*.*.*
193 %attr(755,root,root) %ghost %{_libdir}/libextractor.so.3
194 %attr(755,root,root) %ghost %{_libdir}/libextractor_common.so.0
195 # plugins are lt_dlopened without extension, so *.la are needed
196 %dir %{_libdir}/%{name}
197 %attr(755,root,root) %{_libdir}/%{name}/libextractor_applefile.so
198 %attr(755,root,root) %{_libdir}/%{name}/libextractor_asf.so
199 %attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so
200 %attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so
201 %attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so
202 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so
203 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flv.so
204 %attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so
205 %attr(755,root,root) %{_libdir}/%{name}/libextractor_html.so
206 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3.so
207 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v2.so
208 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v23.so
209 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v24.so
210 %attr(755,root,root) %{_libdir}/%{name}/libextractor_it.so
211 %attr(755,root,root) %{_libdir}/%{name}/libextractor_jpeg.so
212 %attr(755,root,root) %{_libdir}/%{name}/libextractor_man.so
213 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so
214 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mp3.so
215 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so
216 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so
217 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so
218 %attr(755,root,root) %{_libdir}/%{name}/libextractor_odf.so
219 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so
220 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so
221 %attr(755,root,root) %{_libdir}/%{name}/libextractor_png.so
222 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ps.so
223 %attr(755,root,root) %{_libdir}/%{name}/libextractor_qt.so
224 %attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so
225 %attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so
226 %attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so
227 %attr(755,root,root) %{_libdir}/%{name}/libextractor_s3m.so
228 %attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so
229 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tar.so
230 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so
231 %attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so
232 %attr(755,root,root) %{_libdir}/%{name}/libextractor_xm.so
233 %attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so
234 %{_libdir}/%{name}/libextractor_applefile.la
235 %{_libdir}/%{name}/libextractor_asf.la
236 %{_libdir}/%{name}/libextractor_deb.la
237 %{_libdir}/%{name}/libextractor_dvi.la
238 %{_libdir}/%{name}/libextractor_elf.la
239 %{_libdir}/%{name}/libextractor_flac.la
240 %{_libdir}/%{name}/libextractor_flv.la
241 %{_libdir}/%{name}/libextractor_gif.la
242 %{_libdir}/%{name}/libextractor_html.la
243 %{_libdir}/%{name}/libextractor_id3.la
244 %{_libdir}/%{name}/libextractor_id3v2.la
245 %{_libdir}/%{name}/libextractor_id3v23.la
246 %{_libdir}/%{name}/libextractor_id3v24.la
247 %{_libdir}/%{name}/libextractor_it.la
248 %{_libdir}/%{name}/libextractor_jpeg.la
249 %{_libdir}/%{name}/libextractor_man.la
250 %{_libdir}/%{name}/libextractor_mime.la
251 %{_libdir}/%{name}/libextractor_mp3.la
252 %{_libdir}/%{name}/libextractor_mpeg.la
253 %{_libdir}/%{name}/libextractor_nsf.la
254 %{_libdir}/%{name}/libextractor_nsfe.la
255 %{_libdir}/%{name}/libextractor_odf.la
256 %{_libdir}/%{name}/libextractor_ogg.la
257 %{_libdir}/%{name}/libextractor_ole2.la
258 %{_libdir}/%{name}/libextractor_png.la
259 %{_libdir}/%{name}/libextractor_ps.la
260 %{_libdir}/%{name}/libextractor_qt.la
261 %{_libdir}/%{name}/libextractor_real.la
262 %{_libdir}/%{name}/libextractor_riff.la
263 %{_libdir}/%{name}/libextractor_rpm.la
264 %{_libdir}/%{name}/libextractor_s3m.la
265 %{_libdir}/%{name}/libextractor_sid.la
266 %{_libdir}/%{name}/libextractor_tar.la
267 %{_libdir}/%{name}/libextractor_tiff.la
268 %{_libdir}/%{name}/libextractor_wav.la
269 %{_libdir}/%{name}/libextractor_xm.la
270 %{_libdir}/%{name}/libextractor_zip.la
271 %{_mandir}/man1/extract.1*
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so
276 %{_libdir}/%{name}/libextractor_thumbnailgtk.la
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailqt.so
281 %{_libdir}/%{name}/libextractor_thumbnailqt.la
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libextractor.so
286 %attr(755,root,root) %{_libdir}/libextractor_common.so
287 %{_libdir}/libextractor.la
288 %{_libdir}/libextractor_common.la
289 %{_includedir}/extractor.h
290 %{_pkgconfigdir}/libextractor.pc
291 %{_mandir}/man3/libextractor.3*
292 %{_infodir}/extractor.info*
294 %if %{with static_libs}
296 %defattr(644,root,root,755)
297 %{_libdir}/libextractor.a
298 %{_libdir}/libextractor_common.a