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: b71833f1c1b8299b01df2d7669600030
15 Patch0: %{name}-64bit.patch
16 Patch1: %{name}-make.patch
17 Patch2: %{name}-info.patch
18 Patch3: %{name}-pmake.patch
19 Patch4: %{name}-lt.patch
20 URL: http://gnunet.org/libextractor/
22 BuildRequires: QtSvg-devel >= 4.0.1
24 BuildRequires: autoconf >= 2.57
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: texinfo
39 BuildRequires: zlib-devel
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _noautoreqfiles %{_libdir}/%{name}/libextractor_.*\\.la
45 libextractor is a simple library for meta-data extraction.
46 libextractor uses a plugin-mechanism that makes it easy to add support
47 for more file formats, allowing anybody to add new extractors quickly.
49 libextractor currently features meta-data extractors for HTML, JPEG,
50 Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real Audio and Video,
51 PostScript and PDF documents. It also detects many more MIME-types in
52 a fashion similar to the well-known "file" tool.
54 Each item of meta-data that is extracted from a file is categorized
55 into one of currently about 40 meta-data categories (e.g. title,
56 author, description or MIME-type).
58 This libextractor package also contains a little binary tool "extract"
59 that can be used to invoke libextractor from the command line.
60 "extract" can be used similar to "file", but while "file" currently
61 supports a wider range of file types, "extract" should be able to
62 provide more precise and more detailed information for the supported
63 types of documents (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS,
66 %description -l pl.UTF-8
67 libextractor to prosta biblioteka służąca do ekstrakcji metadanych.
68 libextractor używa mechanizmu "wtyczek", dzięki czemu łatwo jest dodać
69 wsparcie dla nowych formatów plików.
71 libextractor obecnie pozwala na pozyskanie metadanych z plików w
72 formatach HTML, JPEG, Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real
73 Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje dużo więcej
74 typów MIME w sposób podobny do dobrze znanego narzędzia "file".
76 Każda informacja pobrana z pliku należy do jednej z około 40
77 kategorii (np. tytuł, autor, opis, typ MIME).
79 Ta paczka zawiera też narzędzie "extract", które pozwala skorzystać z
80 usług libextractor bezpośrednio z linii poleceń. "extract" może być
81 używane w podobny sposób, co "file". "file" zna więcej typów danych,
82 "extract" natomiast dostarcza bardziej precyzyjnych i szczegółowych
83 informacji na temat obsługiwanych formatów (HTML, JPEG, Ogg, MP3, PNG,
84 GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF).
87 Summary: Printable text support plugins for libextractor
88 Summary(pl.UTF-8): Wtyczki obsługujące tekst dla biblioteki libextractor
90 Requires: %{name} = %{version}-%{release}
92 %description printable
93 libextractor plugins that support printable text in few languages.
95 %description printable -l pl.UTF-8
96 Wtyczki biblioteki libextractor obsługujące tekst w kilku językach.
99 Summary: GTK+ Thumbnail plugin for libextractor
100 Summary(pl.UTF-8): Wtyczka obsługująca miniaturki obrazów poprzez GTK+ dla biblioteki libextractor
102 Requires: %{name} = %{version}-%{release}
103 Requires: gtk+2 >= 2:2.6.0
105 %description thumbnail
106 libextractor plugin that supports thumbnails through GTK+.
108 %description thumbnail -l pl.UTF-8
109 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
112 %package thumbnail-qt
113 Summary: Qt Thumbnail plugin for libextractor
114 Summary(pl.UTF-8): Wtyczka obsługujące miniaturki obrazów poprzez Qt dla biblioteki libextractor
116 Requires: %{name} = %{version}-%{release}
118 %description thumbnail-qt
119 libextractor plugin that supports thumbnails through Qt.
121 %description thumbnail-qt -l pl.UTF-8
122 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
126 Summary: Development files for libextractor
127 Summary(pl.UTF-8): Pliki nagłówkowe libextractor
128 Group: Development/Libraries
129 Requires: %{name} = %{version}-%{release}
130 Requires: bzip2-devel
131 Requires: libgsf-devel
132 Requires: libltdl-devel
135 This package contains files to develop with libextractor, that is
136 either to create plugins or to compile applications with libextractor.
138 %description devel -l pl.UTF-8
139 Piki nagłówkowe wymagane do tworzenia aplikacji i wtyczek
140 korzystających z libextractor.
143 Summary: Static libextractor libraries
144 Summary(pl.UTF-8): Statyczne biblioteki libextractor
145 Group: Development/Libraries
146 Requires: %{name}-devel = %{version}-%{release}
149 This package contains static libraries of libextractor.
151 %description static -l pl.UTF-8
152 Statyczna wersja bibliotek libextractor.
169 %{?with_qt:CPPFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt"}
171 %{?with_static_libs:--enable-static} \
172 %{?with_qt:--with-qt}
177 rm -rf $RPM_BUILD_ROOT
180 DESTDIR=$RPM_BUILD_ROOT
183 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.a
188 rm -rf $RPM_BUILD_ROOT
190 %post -p /sbin/ldconfig
191 %postun -p /sbin/ldconfig
193 %post devel -p /sbin/postshell
194 -/usr/sbin/fix-info-dir -c %{_infodir}
196 %postun devel -p /sbin/postshell
197 -/usr/sbin/fix-info-dir -c %{_infodir}
199 %files -f %{name}.lang
200 %defattr(644,root,root,755)
201 %doc AUTHORS ChangeLog NEWS README TODO
202 %attr(755,root,root) %{_bindir}/extract
203 %attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
204 %attr(755,root,root) %ghost %{_libdir}/libextractor.so.1
205 # plugins are lt_dlopened without extension, so *.la are needed
206 %dir %{_libdir}/%{name}
207 %attr(755,root,root) %{_libdir}/%{name}/libextractor_applefile.so
208 %attr(755,root,root) %{_libdir}/%{name}/libextractor_asf.so
209 %attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so
210 %attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so
211 %attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so
212 %attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so
213 %attr(755,root,root) %{_libdir}/%{name}/libextractor_filename.so
214 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so
215 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flv.so
216 %attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so
217 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_md5.so
218 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_rmd160.so
219 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_sha1.so
220 %attr(755,root,root) %{_libdir}/%{name}/libextractor_html.so
221 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v2.so
222 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v23.so
223 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v24.so
224 %attr(755,root,root) %{_libdir}/%{name}/libextractor_jpeg.so
225 %attr(755,root,root) %{_libdir}/%{name}/libextractor_lower.so
226 %attr(755,root,root) %{_libdir}/%{name}/libextractor_man.so
227 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so
228 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mp3.so
229 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so
230 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so
231 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so
232 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so
233 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so
234 %attr(755,root,root) %{_libdir}/%{name}/libextractor_oo.so
235 %attr(755,root,root) %{_libdir}/%{name}/libextractor_pdf.so
236 %attr(755,root,root) %{_libdir}/%{name}/libextractor_png.so
237 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ps.so
238 %attr(755,root,root) %{_libdir}/%{name}/libextractor_qt.so
239 %attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so
240 %attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so
241 %attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so
242 %attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so
243 %attr(755,root,root) %{_libdir}/%{name}/libextractor_split.so
244 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tar.so
245 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so
246 %attr(755,root,root) %{_libdir}/%{name}/libextractor_translit.so
247 %attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so
248 %attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so
249 %{_libdir}/%{name}/libextractor_applefile.la
250 %{_libdir}/%{name}/libextractor_asf.la
251 %{_libdir}/%{name}/libextractor_deb.la
252 %{_libdir}/%{name}/libextractor_dvi.la
253 %{_libdir}/%{name}/libextractor_elf.la
254 %{_libdir}/%{name}/libextractor_exiv2.la
255 %{_libdir}/%{name}/libextractor_filename.la
256 %{_libdir}/%{name}/libextractor_flac.la
257 %{_libdir}/%{name}/libextractor_flv.la
258 %{_libdir}/%{name}/libextractor_gif.la
259 %{_libdir}/%{name}/libextractor_hash_md5.la
260 %{_libdir}/%{name}/libextractor_hash_rmd160.la
261 %{_libdir}/%{name}/libextractor_hash_sha1.la
262 %{_libdir}/%{name}/libextractor_html.la
263 %{_libdir}/%{name}/libextractor_id3v2.la
264 %{_libdir}/%{name}/libextractor_id3v23.la
265 %{_libdir}/%{name}/libextractor_id3v24.la
266 %{_libdir}/%{name}/libextractor_jpeg.la
267 %{_libdir}/%{name}/libextractor_lower.la
268 %{_libdir}/%{name}/libextractor_man.la
269 %{_libdir}/%{name}/libextractor_mime.la
270 %{_libdir}/%{name}/libextractor_mp3.la
271 %{_libdir}/%{name}/libextractor_mpeg.la
272 %{_libdir}/%{name}/libextractor_nsf.la
273 %{_libdir}/%{name}/libextractor_nsfe.la
274 %{_libdir}/%{name}/libextractor_ogg.la
275 %{_libdir}/%{name}/libextractor_ole2.la
276 %{_libdir}/%{name}/libextractor_oo.la
277 %{_libdir}/%{name}/libextractor_pdf.la
278 %{_libdir}/%{name}/libextractor_png.la
279 %{_libdir}/%{name}/libextractor_ps.la
280 %{_libdir}/%{name}/libextractor_qt.la
281 %{_libdir}/%{name}/libextractor_real.la
282 %{_libdir}/%{name}/libextractor_riff.la
283 %{_libdir}/%{name}/libextractor_rpm.la
284 %{_libdir}/%{name}/libextractor_sid.la
285 %{_libdir}/%{name}/libextractor_split.la
286 %{_libdir}/%{name}/libextractor_tar.la
287 %{_libdir}/%{name}/libextractor_tiff.la
288 %{_libdir}/%{name}/libextractor_translit.la
289 %{_libdir}/%{name}/libextractor_wav.la
290 %{_libdir}/%{name}/libextractor_zip.la
291 %{_mandir}/man1/extract.1*
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/%{name}/libextractor_printable_*.so
296 %{_libdir}/%{name}/libextractor_printable_*.la
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnail.so
301 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so
302 %{_libdir}/%{name}/libextractor_thumbnailgtk.la
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailqt.so
307 %{_libdir}/%{name}/libextractor_thumbnailqt.la
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libextractor.so
312 %{_libdir}/libextractor.la
313 %{_includedir}/extractor.h
314 %{_pkgconfigdir}/libextractor.pc
315 %{_mandir}/man3/libextractor.3*
316 %{_infodir}/extractor.info*
318 %if %{with static_libs}
320 %defattr(644,root,root,755)
321 %{_libdir}/libextractor.a