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