3 %bcond_without static_libs # don't build static library
5 Summary: Meta-data extraction library
6 Summary(pl): Biblioteka do ekstrakcji metadanych
12 Source0: http://gnunet.org/libextractor/download/%{name}-%{version}.tar.gz
13 # Source0-md5: aab48c75879aab5ad918b1f9f4445558
14 URL: http://gnunet.org/libextractor/
15 BuildRequires: ImageMagick-devel >= 1:6.0.0
16 BuildRequires: autoconf >= 2.57
17 BuildRequires: automake
18 BuildRequires: gettext-devel >= 0.14.5
19 BuildRequires: glib2-devel >= 2.0.0
20 BuildRequires: gtk+2-devel >= 2:2.6.0
21 BuildRequires: libltdl-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool >= 2:1.5
24 BuildRequires: libvorbis-devel
25 BuildRequires: zlib-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 libextractor is a simple library for meta-data extraction.
30 libextractor uses a plugin-mechanism that makes it easy to add support
31 for more file formats, allowing anybody to add new extractors quickly.
33 libextractor currently features meta-data extractors for HTML, JPEG,
34 Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real Audio and Video,
35 PostScript and PDF documents. It also detects many more MIME-types in
36 a fashion similar to the well-known "file" tool.
38 Each item of meta-data that is extracted from a file is categorized
39 into one of currently about 40 meta-data categories (e.g. title,
40 author, description or MIME-type).
42 This libextractor package also contains a little binary tool "extract"
43 that can be used to invoke libextractor from the command line.
44 "extract" can be used similar to "file", but while "file" currently
45 supports a wider range of file types, "extract" should be able to
46 provide more precise and more detailed information for the supported
47 types of documents (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS,
51 libextractor to prosta biblioteka s³u¿±ca do ekstrakcji metadanych.
52 libextractor u¿ywa mechanizmu "wtyczek", dziêki czemu ³atwo jest dodaæ
53 wsparcie dla nowych formatów plików.
55 libextractor obecnie pozwala na pozyskanie metadanych z plików w
56 formatach HTML, JPEG, Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real
57 Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje du¿o wiêcej
58 typów MIME w sposób podobny do dobrze znanego narzêdzia "file".
60 Ka¿da informacja pobrana z pliku nale¿y do jednej z oko³o 40
61 kategorii (np. tytu³, autor, opis, typ MIME).
63 Ta paczka zawiera te¿ narzêdzie "extract", które pozwala skorzystaæ z
64 us³ug libextractor bezpo¶rednio z linii poleceñ. "extract" mo¿e byæ
65 u¿ywane w podobny sposób, co "file". "file" zna wiêcej typów danych,
66 "extract" natomiast dostarcza bardziej precyzyjnych i szczegó³owych
67 informacji na temat obs³ugiwanych formatów (HTML, JPEG, Ogg, MP3, PNG,
68 GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF).
71 Summary: Printable text support plugins for libextractor
72 Summary(pl): Wtyczki obs³uguj±ce tekst dla biblioteki libextractor
74 Requires: %{name} = %{version}-%{release}
76 %description printable
77 libextractor plugins that support printable text in few languages.
79 %description printable -l pl
80 Wtyczki biblioteki libextractor obs³uguj±ce tekst w kilku jêzykach.
83 Summary: Thumbnail plugin for libextractor
84 Summary(pl): Wtyczka obs³uguj±ce miniaturki obrazów dla biblioteki libextractor
86 Requires: %{name} = %{version}-%{release}
87 Requires: gtk+2 >= 2:2.6.0
89 %description thumbnail
90 libextractor plugin that supports thumbnails.
92 %description thumbnail -l pl
93 Wtyczka biblioteki libextractor obs³uguj±ca miniaturki obrazów.
96 Summary: Development files for libextractor
97 Summary(pl): Pliki nag³ówkowe libextractor
98 Group: Development/Libraries
99 Requires: %{name} = %{version}-%{release}
100 Requires: libltdl-devel
103 This package contains files to develop with libextractor, that is
104 either to create plugins or to compile applications with libextractor.
106 %description devel -l pl
107 Piki nag³ówkowe wymagane do tworzenia aplikacji i wtyczek
108 korzystaj±cych z libextractor.
111 Summary: Static libextractor libraries
112 Summary(pl): Statyczne biblioteki libextractor
113 Group: Development/Libraries
114 Requires: %{name}-devel = %{version}-%{release}
117 This package contains static libraries of libextractor.
119 %description static -l pl
120 Statyczna wersja bibliotek libextractor.
127 %{__libtoolize} --ltdl
133 %{?with_static_libs:--enable-static}
138 rm -rf $RPM_BUILD_ROOT
141 DESTDIR=$RPM_BUILD_ROOT
144 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.a
149 rm -rf $RPM_BUILD_ROOT
151 %post -p /sbin/ldconfig
152 %postun -p /sbin/ldconfig
154 %files -f %{name}.lang
155 %defattr(644,root,root,755)
156 %doc AUTHORS ChangeLog NEWS README TODO
157 %attr(755,root,root) %{_bindir}/extract
158 %attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
159 # plugins are lt_dlopened without extension, so *.la are needed
160 %dir %{_libdir}/%{name}
161 %attr(755,root,root) %{_libdir}/%{name}/libextractor_asf.so
162 %attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so
163 %attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so
164 %attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so
165 %attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so
166 %attr(755,root,root) %{_libdir}/%{name}/libextractor_filename.so
167 %attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so
168 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_md5.so
169 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_rmd160.so
170 %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_sha1.so
171 %attr(755,root,root) %{_libdir}/%{name}/libextractor_html.so
172 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v2.so
173 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v23.so
174 %attr(755,root,root) %{_libdir}/%{name}/libextractor_id3v24.so
175 %attr(755,root,root) %{_libdir}/%{name}/libextractor_jpeg.so
176 %attr(755,root,root) %{_libdir}/%{name}/libextractor_lower.so
177 %attr(755,root,root) %{_libdir}/%{name}/libextractor_man.so
178 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so
179 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mp3.so
180 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so
181 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so
182 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so
183 %attr(755,root,root) %{_libdir}/%{name}/libextractor_oo.so
184 %attr(755,root,root) %{_libdir}/%{name}/libextractor_pdf.so
185 %attr(755,root,root) %{_libdir}/%{name}/libextractor_png.so
186 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ps.so
187 %attr(755,root,root) %{_libdir}/%{name}/libextractor_qt.so
188 %attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so
189 %attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so
190 %attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so
191 %attr(755,root,root) %{_libdir}/%{name}/libextractor_split.so
192 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tar.so
193 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so
194 %attr(755,root,root) %{_libdir}/%{name}/libextractor_translit.so
195 %attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so
196 %attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so
197 %{_libdir}/%{name}/libextractor_asf.la
198 %{_libdir}/%{name}/libextractor_deb.la
199 %{_libdir}/%{name}/libextractor_dvi.la
200 %{_libdir}/%{name}/libextractor_elf.la
201 %{_libdir}/%{name}/libextractor_exiv2.la
202 %{_libdir}/%{name}/libextractor_filename.la
203 %{_libdir}/%{name}/libextractor_gif.la
204 %{_libdir}/%{name}/libextractor_hash_md5.la
205 %{_libdir}/%{name}/libextractor_hash_rmd160.la
206 %{_libdir}/%{name}/libextractor_hash_sha1.la
207 %{_libdir}/%{name}/libextractor_html.la
208 %{_libdir}/%{name}/libextractor_id3v2.la
209 %{_libdir}/%{name}/libextractor_id3v23.la
210 %{_libdir}/%{name}/libextractor_id3v24.la
211 %{_libdir}/%{name}/libextractor_jpeg.la
212 %{_libdir}/%{name}/libextractor_lower.la
213 %{_libdir}/%{name}/libextractor_man.la
214 %{_libdir}/%{name}/libextractor_mime.la
215 %{_libdir}/%{name}/libextractor_mp3.la
216 %{_libdir}/%{name}/libextractor_mpeg.la
217 %{_libdir}/%{name}/libextractor_ogg.la
218 %{_libdir}/%{name}/libextractor_ole2.la
219 %{_libdir}/%{name}/libextractor_oo.la
220 %{_libdir}/%{name}/libextractor_pdf.la
221 %{_libdir}/%{name}/libextractor_png.la
222 %{_libdir}/%{name}/libextractor_ps.la
223 %{_libdir}/%{name}/libextractor_qt.la
224 %{_libdir}/%{name}/libextractor_real.la
225 %{_libdir}/%{name}/libextractor_riff.la
226 %{_libdir}/%{name}/libextractor_rpm.la
227 %{_libdir}/%{name}/libextractor_split.la
228 %{_libdir}/%{name}/libextractor_tar.la
229 %{_libdir}/%{name}/libextractor_tiff.la
230 %{_libdir}/%{name}/libextractor_translit.la
231 %{_libdir}/%{name}/libextractor_wav.la
232 %{_libdir}/%{name}/libextractor_zip.la
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/%{name}/libextractor_printable_*.so
238 %{_libdir}/%{name}/libextractor_printable_*.la
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnail.so
243 %{_libdir}/%{name}/libextractor_thumbnail.la
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/libextractor.so
248 %{_libdir}/libextractor.la
249 %{_includedir}/extractor.h
252 %if %{with static_libs}
254 %defattr(644,root,root,755)
255 %{_libdir}/libextractor.a