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