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: http://gnunet.org/libextractor/download/%{name}-%{version}.tar.gz
14 # Source0-md5: f6d6ea1264a471189eee99728b983c4e
15 Patch0: %{name}-64bit.patch
16 Patch1: %{name}-make.patch
17 Patch2: %{name}-info.patch
18 Patch3: %{name}-pmake.patch
19 Patch4: %{name}-rpm.patch
20 URL: http://gnunet.org/libextractor/
22 BuildRequires: QtSvg-devel >= 4.0.1
24 BuildRequires: autoconf >= 2.61
25 BuildRequires: automake
26 BuildRequires: bzip2-devel
27 BuildRequires: gettext-devel >= 0.14.5
28 BuildRequires: flac-devel
29 BuildRequires: glib2-devel >= 2.0.0
30 BuildRequires: gtk+2-devel >= 2:2.6.0
31 BuildRequires: libgsf-devel
32 BuildRequires: libltdl-devel
33 BuildRequires: libstdc++-devel
34 BuildRequires: libtool >= 2:1.5
35 BuildRequires: libvorbis-devel
36 BuildRequires: mpeg2dec-devel
37 BuildRequires: pkgconfig
38 BuildRequires: rpm-devel
39 BuildRequires: texinfo
40 BuildRequires: zlib-devel
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: Printable text support plugins for libextractor
89 Summary(pl.UTF-8): Wtyczki obsługujące tekst dla biblioteki libextractor
91 Requires: %{name} = %{version}-%{release}
93 %description printable
94 libextractor plugins that support printable text in few languages.
96 %description printable -l pl.UTF-8
97 Wtyczki biblioteki libextractor obsługujące tekst w kilku językach.
100 Summary: GTK+ Thumbnail plugin for libextractor
101 Summary(pl.UTF-8): Wtyczka obsługująca miniaturki obrazów poprzez GTK+ dla biblioteki libextractor
103 Requires: %{name} = %{version}-%{release}
104 Requires: gtk+2 >= 2:2.6.0
106 %description thumbnail
107 libextractor plugin that supports thumbnails through GTK+.
109 %description thumbnail -l pl.UTF-8
110 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
113 %package thumbnail-qt
114 Summary: Qt Thumbnail plugin for libextractor
115 Summary(pl.UTF-8): Wtyczka obsługujące miniaturki obrazów poprzez Qt dla biblioteki libextractor
117 Requires: %{name} = %{version}-%{release}
119 %description thumbnail-qt
120 libextractor plugin that supports thumbnails through Qt.
122 %description thumbnail-qt -l pl.UTF-8
123 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
127 Summary: Development files for libextractor
128 Summary(pl.UTF-8): Pliki nagłówkowe libextractor
129 Group: Development/Libraries
130 Requires: %{name} = %{version}-%{release}
131 Requires: bzip2-devel
132 Requires: libgsf-devel
133 Requires: libltdl-devel
136 This package contains files to develop with libextractor, that is
137 either to create plugins or to compile applications with libextractor.
139 %description devel -l pl.UTF-8
140 Piki nagłówkowe wymagane do tworzenia aplikacji i wtyczek
141 korzystających z libextractor.
144 Summary: Static libextractor libraries
145 Summary(pl.UTF-8): Statyczne biblioteki libextractor
146 Group: Development/Libraries
147 Requires: %{name}-devel = %{version}-%{release}
150 This package contains static libraries of libextractor.
152 %description static -l pl.UTF-8
153 Statyczna wersja bibliotek libextractor.
170 %{?with_qt:CPPFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt"}
172 %{?with_static_libs:--enable-static} \
173 %{?with_qt:--with-qt}
178 rm -rf $RPM_BUILD_ROOT
181 DESTDIR=$RPM_BUILD_ROOT
184 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.a
189 rm -rf $RPM_BUILD_ROOT
191 %post -p /sbin/ldconfig
192 %postun -p /sbin/ldconfig
194 %post devel -p /sbin/postshell
195 -/usr/sbin/fix-info-dir -c %{_infodir}
197 %postun devel -p /sbin/postshell
198 -/usr/sbin/fix-info-dir -c %{_infodir}
200 %files -f %{name}.lang
201 %defattr(644,root,root,755)
202 %doc AUTHORS ChangeLog NEWS README TODO
203 %attr(755,root,root) %{_bindir}/extract
204 %attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
205 %attr(755,root,root) %{_libdir}/libextractor_common.so.*.*.*
206 %attr(755,root,root) %ghost %{_libdir}/libextractor.so.1
207 %attr(755,root,root) %ghost %{_libdir}/libextractor_common.so.0
208 # plugins are lt_dlopened without extension, so *.la are needed
209 %dir %{_libdir}/%{name}
210 %attr(755,root,root) %{_libdir}/%{name}/libextractor_applefile.so
211 %attr(755,root,root) %{_libdir}/%{name}/libextractor_asf.so
212 %attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so
213 %attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so
214 %attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so
215 %attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so
216 %attr(755,root,root) %{_libdir}/%{name}/libextractor_filename.so
217 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so
218 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flv.so
219 %attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so
220 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_md5.so
221 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_rmd160.so
222 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_sha1.so
223 %attr(755,root,root) %{_libdir}/%{name}/libextractor_html.so
224 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v2.so
225 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v23.so
226 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v24.so
227 %attr(755,root,root) %{_libdir}/%{name}/libextractor_it.so
228 %attr(755,root,root) %{_libdir}/%{name}/libextractor_jpeg.so
229 %attr(755,root,root) %{_libdir}/%{name}/libextractor_lower.so
230 %attr(755,root,root) %{_libdir}/%{name}/libextractor_man.so
231 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so
232 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mp3.so
233 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so
234 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so
235 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so
236 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so
237 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so
238 %attr(755,root,root) %{_libdir}/%{name}/libextractor_oo.so
239 %attr(755,root,root) %{_libdir}/%{name}/libextractor_pdf.so
240 %attr(755,root,root) %{_libdir}/%{name}/libextractor_png.so
241 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ps.so
242 %attr(755,root,root) %{_libdir}/%{name}/libextractor_qt.so
243 %attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so
244 %attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so
245 %attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so
246 %attr(755,root,root) %{_libdir}/%{name}/libextractor_s3m.so
247 %attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so
248 %attr(755,root,root) %{_libdir}/%{name}/libextractor_split.so
249 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tar.so
250 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so
251 %attr(755,root,root) %{_libdir}/%{name}/libextractor_translit.so
252 %attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so
253 %attr(755,root,root) %{_libdir}/%{name}/libextractor_xm.so
254 %attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so
255 %{_libdir}/%{name}/libextractor_applefile.la
256 %{_libdir}/%{name}/libextractor_asf.la
257 %{_libdir}/%{name}/libextractor_deb.la
258 %{_libdir}/%{name}/libextractor_dvi.la
259 %{_libdir}/%{name}/libextractor_elf.la
260 %{_libdir}/%{name}/libextractor_exiv2.la
261 %{_libdir}/%{name}/libextractor_filename.la
262 %{_libdir}/%{name}/libextractor_flac.la
263 %{_libdir}/%{name}/libextractor_flv.la
264 %{_libdir}/%{name}/libextractor_gif.la
265 %{_libdir}/%{name}/libextractor_hash_md5.la
266 %{_libdir}/%{name}/libextractor_hash_rmd160.la
267 %{_libdir}/%{name}/libextractor_hash_sha1.la
268 %{_libdir}/%{name}/libextractor_html.la
269 %{_libdir}/%{name}/libextractor_id3v2.la
270 %{_libdir}/%{name}/libextractor_id3v23.la
271 %{_libdir}/%{name}/libextractor_id3v24.la
272 %{_libdir}/%{name}/libextractor_it.la
273 %{_libdir}/%{name}/libextractor_jpeg.la
274 %{_libdir}/%{name}/libextractor_lower.la
275 %{_libdir}/%{name}/libextractor_man.la
276 %{_libdir}/%{name}/libextractor_mime.la
277 %{_libdir}/%{name}/libextractor_mp3.la
278 %{_libdir}/%{name}/libextractor_mpeg.la
279 %{_libdir}/%{name}/libextractor_nsf.la
280 %{_libdir}/%{name}/libextractor_nsfe.la
281 %{_libdir}/%{name}/libextractor_ogg.la
282 %{_libdir}/%{name}/libextractor_ole2.la
283 %{_libdir}/%{name}/libextractor_oo.la
284 %{_libdir}/%{name}/libextractor_pdf.la
285 %{_libdir}/%{name}/libextractor_png.la
286 %{_libdir}/%{name}/libextractor_ps.la
287 %{_libdir}/%{name}/libextractor_qt.la
288 %{_libdir}/%{name}/libextractor_real.la
289 %{_libdir}/%{name}/libextractor_riff.la
290 %{_libdir}/%{name}/libextractor_rpm.la
291 %{_libdir}/%{name}/libextractor_s3m.la
292 %{_libdir}/%{name}/libextractor_sid.la
293 %{_libdir}/%{name}/libextractor_split.la
294 %{_libdir}/%{name}/libextractor_tar.la
295 %{_libdir}/%{name}/libextractor_tiff.la
296 %{_libdir}/%{name}/libextractor_translit.la
297 %{_libdir}/%{name}/libextractor_wav.la
298 %{_libdir}/%{name}/libextractor_xm.la
299 %{_libdir}/%{name}/libextractor_zip.la
300 %{_mandir}/man1/extract.1*
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/%{name}/libextractor_printable_*.so
305 %{_libdir}/%{name}/libextractor_printable_*.la
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnail.so
310 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so
311 %{_libdir}/%{name}/libextractor_thumbnailgtk.la
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailqt.so
316 %{_libdir}/%{name}/libextractor_thumbnailqt.la
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libextractor.so
321 %attr(755,root,root) %{_libdir}/libextractor_common.so
322 %{_libdir}/libextractor.la
323 %{_libdir}/libextractor_common.la
324 %{_includedir}/extractor.h
325 %{_pkgconfigdir}/libextractor.pc
326 %{_mandir}/man3/libextractor.3*
327 %{_infodir}/extractor.info*
329 %if %{with static_libs}
331 %defattr(644,root,root,755)
332 %{_libdir}/libextractor.a
333 %{_libdir}/libextractor_common.a