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