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