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