1 Summary: Meta-data extraction library
2 Summary(pl): Biblioteka do ekstrakcji metadanych
8 # strange, .tar.gz is ~500kB smaller than .tar.bz2
9 Source0: http://www.ovmj.org/libextractor/download/%{name}-%{version}.tar.gz
10 # Source0-md5: 49de0466f5d25d6cbe8f76502c50ee87
11 URL: http://www.ovmj.org/libextractor/
12 BuildRequires: autoconf >= 2.57
13 BuildRequires: automake
14 BuildRequires: gettext-devel >= 0.14
15 BuildRequires: libltdl-devel
16 BuildRequires: libstdc++-devel
17 BuildRequires: libtool >= 2:1.5
18 BuildRequires: libvorbis-devel
19 BuildRequires: zlib-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 libextractor is a simple library for meta-data extraction.
24 libextractor uses a plugin-mechanism that makes it easy to add support
25 for more file formats, allowing anybody to add new extractors quickly.
27 libextractor currently features meta-data extractors for HTML, JPEG,
28 OGG, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real Audio and Video,
29 PostScript and PDF documents. It also detects many more MIME-types in
30 a fashion similar to the well-known "file" tool.
32 Each item of meta-data that is extracted from a file is categorized
33 into one of currently about 40 meta-data categories (e.g. title,
34 author, description or MIME-type).
36 This libextractor package also contains a little binary tool "extract"
37 that can be used to invoke libextractor from the command line.
38 "extract" can be used similar to "file", but while "file" currently
39 supports a wider range of file types, "extract" should be able to
40 provide more precise and more detailed information for the supported
41 types of documents (HTML, JPEG, OGG, MP3, PNG, GIF, RPM, RA, RM, PS,
45 libextractor to prosta biblioteka s³u¿±ca do ekstrakcji metadanych.
46 libextractor u¿ywa mechanizmu "wtyczek", dziêki czemu ³atwo jest dodaæ
47 wsparcie dla nowych formatów plików.
49 libextractor obecnie pozwala na pozyskanie metadanych z plików w
50 formatach HTML, JPEG, OGG, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real
51 Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje du¿o wiêcej
52 typów MIME w sposób podobny do dobrze znanego narzêdzia "file".
54 Ka¿da informacja pobrana z pliku nale¿y do jednej z oko³o 40
55 kategorii (np. tytu³, autor, opis, typ MIME).
57 Ta paczka zawiera te¿ narzêdzie "extract", które pozwala skorzystaæ z
58 us³ug libextractor bezpo¶rednio z linii poleceñ. "extract" mo¿e byæ
59 u¿ywane w podobny sposób, co "file". "file" zna wiêcej typów danych,
60 "extract" natomiast dostarcza bardziej precyzyjnych i szczegó³owych
61 informacji na temat obs³ugiwanych formatów (HTML, JPEG, OGG, MP3, PNG,
62 GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF).
65 Summary: Printable text support plugins for libextractor
66 Summary(pl): Wtyczki obs³uguj±ce tekst dla biblioteki libextractor
68 Requires: %{name} = %{version}-%{release}
70 %description printable
71 libextractor plugins that support printable text in few languages.
73 %description printable -l pl
74 Wtyczki biblioteki libextractor obs³uguj±ce tekst w kilku jêzykach.
77 Summary: Development files for libextractor
78 Summary(pl): Pliki nag³ówkowe libextractor
79 Group: Development/Libraries
80 Requires: %{name} = %{version}-%{release}
81 Requires: libltdl-devel
84 This package contains files to develop with libextractor, that is
85 either to create plugins or to compile applications with libextractor.
87 %description devel -l pl
88 Piki nag³ówkowe wymagane do tworzenia aplikacji i wtyczek
89 korzystaj±cych z libextractor.
92 Summary: Static libextractor libraries
93 Summary(pl): Statyczne biblioteki libextractor
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
98 This package contains static libraries of libextractor.
100 %description static -l pl
101 Statyczna wersja bibliotek libextractor.
108 %{__libtoolize} --ltdl
118 rm -rf $RPM_BUILD_ROOT
121 DESTDIR=$RPM_BUILD_ROOT
124 rm -f $RPM_BUILD_ROOT%{_libdir}/libextractor_[!u]*.a
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
134 %files -f %{name}.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS ChangeLog NEWS README TODO
137 %attr(755,root,root) %{_bindir}/extract
138 %attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
139 # plugins are lt_dlopened without extension, so *.la are needed
140 %attr(755,root,root) %{_libdir}/libextractor_asf.so
141 %attr(755,root,root) %{_libdir}/libextractor_elf.so
142 %attr(755,root,root) %{_libdir}/libextractor_filename.so
143 %attr(755,root,root) %{_libdir}/libextractor_gif.so
144 %attr(755,root,root) %{_libdir}/libextractor_html.so
145 %attr(755,root,root) %{_libdir}/libextractor_jpeg.so
146 %attr(755,root,root) %{_libdir}/libextractor_lower.so
147 %attr(755,root,root) %{_libdir}/libextractor_mime.so
148 %attr(755,root,root) %{_libdir}/libextractor_mp3.so
149 %attr(755,root,root) %{_libdir}/libextractor_mpeg.so
150 %attr(755,root,root) %{_libdir}/libextractor_ogg.so
151 %attr(755,root,root) %{_libdir}/libextractor_pdf.so
152 %attr(755,root,root) %{_libdir}/libextractor_png.so
153 %attr(755,root,root) %{_libdir}/libextractor_ps.so
154 %attr(755,root,root) %{_libdir}/libextractor_qt.so
155 %attr(755,root,root) %{_libdir}/libextractor_real.so
156 %attr(755,root,root) %{_libdir}/libextractor_riff.so
157 %attr(755,root,root) %{_libdir}/libextractor_rpm.so
158 %attr(755,root,root) %{_libdir}/libextractor_split.so
159 %attr(755,root,root) %{_libdir}/libextractor_tiff.so
160 %attr(755,root,root) %{_libdir}/libextractor_wav.so
161 %attr(755,root,root) %{_libdir}/libextractor_zip.so
162 %{_libdir}/libextractor_asf.la
163 %{_libdir}/libextractor_elf.la
164 %{_libdir}/libextractor_filename.la
165 %{_libdir}/libextractor_gif.la
166 %{_libdir}/libextractor_html.la
167 %{_libdir}/libextractor_jpeg.la
168 %{_libdir}/libextractor_lower.la
169 %{_libdir}/libextractor_mime.la
170 %{_libdir}/libextractor_mp3.la
171 %{_libdir}/libextractor_mpeg.la
172 %{_libdir}/libextractor_ogg.la
173 %{_libdir}/libextractor_pdf.la
174 %{_libdir}/libextractor_png.la
175 %{_libdir}/libextractor_ps.la
176 %{_libdir}/libextractor_qt.la
177 %{_libdir}/libextractor_real.la
178 %{_libdir}/libextractor_riff.la
179 %{_libdir}/libextractor_rpm.la
180 %{_libdir}/libextractor_split.la
181 %{_libdir}/libextractor_tiff.la
182 %{_libdir}/libextractor_wav.la
183 %{_libdir}/libextractor_zip.la
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/libextractor_printable_*.so
189 %{_libdir}/libextractor_printable_*.la
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_libdir}/libextractor.so
194 %{_libdir}/libextractor.la
195 %{_includedir}/extractor.h
199 %defattr(644,root,root,755)
200 %{_libdir}/libextractor.a