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