]>
Commit | Line | Data |
---|---|---|
f62a8524 | 1 | # |
b9f124d2 | 2 | # Conditional build: |
d4fec0d7 | 3 | %bcond_without qt # don't build Qt-based thumbnail plugin |
9ef92358 | 4 | %bcond_without static_libs # don't build static library |
f62a8524 | 5 | # |
e6895d44 | 6 | Summary: Meta-data extraction library |
b0bb8262 | 7 | Summary(pl.UTF-8): Biblioteka do ekstrakcji metadanych |
e6895d44 | 8 | Name: libextractor |
51643bdb JB |
9 | Version: 0.5.19a |
10 | Release: 1 | |
ab09d25a | 11 | License: GPL v2+ |
e6895d44 | 12 | Group: Libraries |
bf567ee8 | 13 | Source0: http://gnunet.org/libextractor/download/%{name}-%{version}.tar.gz |
51643bdb | 14 | # Source0-md5: 4716cd95d67a8f08781440ea1c7187a6 |
fcbde899 | 15 | Patch0: %{name}-64bit.patch |
d4fec0d7 | 16 | Patch1: %{name}-make.patch |
51643bdb | 17 | Patch2: %{name}-info.patch |
e4c3c699 | 18 | Patch3: %{name}-pmake.patch |
bf567ee8 | 19 | URL: http://gnunet.org/libextractor/ |
d4fec0d7 | 20 | %if %{with qt} |
84556c19 | 21 | BuildRequires: QtSvg-devel >= 4.0.1 |
d4fec0d7 | 22 | %endif |
1611298c JB |
23 | BuildRequires: autoconf >= 2.57 |
24 | BuildRequires: automake | |
ac956507 | 25 | BuildRequires: bzip2-devel |
6ee1ab83 | 26 | BuildRequires: gettext-devel >= 0.14.5 |
51643bdb | 27 | BuildRequires: flac-devel |
f62a8524 | 28 | BuildRequires: glib2-devel >= 2.0.0 |
6ee1ab83 | 29 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
7e423ac2 | 30 | BuildRequires: libgsf-devel |
22ef719f JB |
31 | BuildRequires: libltdl-devel |
32 | BuildRequires: libstdc++-devel | |
1611298c | 33 | BuildRequires: libtool >= 2:1.5 |
e6895d44 | 34 | BuildRequires: libvorbis-devel |
86780d97 | 35 | BuildRequires: mpeg2dec-devel |
84556c19 | 36 | BuildRequires: pkgconfig |
51643bdb | 37 | BuildRequires: texinfo |
22ef719f | 38 | BuildRequires: zlib-devel |
e6895d44 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
84556c19 JB |
41 | %define _noautoreqfiles %{_libdir}/%{name}/libextractor_.*\\.la |
42 | ||
e6895d44 | 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, | |
dba19c27 | 49 | Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real Audio and Video, |
e6895d44 | 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 | |
dba19c27 | 62 | types of documents (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS, |
e6895d44 | 63 | PDF, ZIP, QT, ASF). |
64 | ||
3048b7f3 JR |
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. | |
e6895d44 | 69 | |
3048b7f3 | 70 | libextractor obecnie pozwala na pozyskanie metadanych z plików w |
dba19c27 | 71 | formatach HTML, JPEG, Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real |
3048b7f3 JR |
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". | |
e6895d44 | 74 | |
3048b7f3 JR |
75 | Każda informacja pobrana z pliku należy do jednej z około 40 |
76 | kategorii (np. tytuł, autor, opis, typ MIME). | |
e6895d44 | 77 | |
3048b7f3 JR |
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, | |
e6895d44 | 83 | GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF). |
84 | ||
30717bee JB |
85 | %package printable |
86 | Summary: Printable text support plugins for libextractor | |
b0bb8262 | 87 | Summary(pl.UTF-8): Wtyczki obsługujące tekst dla biblioteki libextractor |
30717bee JB |
88 | Group: Libraries |
89 | Requires: %{name} = %{version}-%{release} | |
90 | ||
91 | %description printable | |
92 | libextractor plugins that support printable text in few languages. | |
93 | ||
3048b7f3 JR |
94 | %description printable -l pl.UTF-8 |
95 | Wtyczki biblioteki libextractor obsługujące tekst w kilku językach. | |
30717bee | 96 | |
6ee1ab83 | 97 | %package thumbnail |
d4fec0d7 | 98 | Summary: GTK+ Thumbnail plugin for libextractor |
b0bb8262 | 99 | Summary(pl.UTF-8): Wtyczka obsługująca miniaturki obrazów poprzez GTK+ dla biblioteki libextractor |
6ee1ab83 JB |
100 | Group: Libraries |
101 | Requires: %{name} = %{version}-%{release} | |
102 | Requires: gtk+2 >= 2:2.6.0 | |
103 | ||
104 | %description thumbnail | |
d4fec0d7 | 105 | libextractor plugin that supports thumbnails through GTK+. |
6ee1ab83 | 106 | |
3048b7f3 JR |
107 | %description thumbnail -l pl.UTF-8 |
108 | Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez | |
d4fec0d7 JB |
109 | GTK+. |
110 | ||
111 | %package thumbnail-qt | |
112 | Summary: Qt Thumbnail plugin for libextractor | |
b0bb8262 | 113 | Summary(pl.UTF-8): Wtyczka obsługujące miniaturki obrazów poprzez Qt dla biblioteki libextractor |
d4fec0d7 JB |
114 | Group: Libraries |
115 | Requires: %{name} = %{version}-%{release} | |
116 | ||
117 | %description thumbnail-qt | |
118 | libextractor plugin that supports thumbnails through Qt. | |
119 | ||
3048b7f3 JR |
120 | %description thumbnail-qt -l pl.UTF-8 |
121 | Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez | |
d4fec0d7 | 122 | Qt. |
6ee1ab83 | 123 | |
7a97c3f0 | 124 | %package devel |
125 | Summary: Development files for libextractor | |
b0bb8262 | 126 | Summary(pl.UTF-8): Pliki nagłówkowe libextractor |
7a97c3f0 | 127 | Group: Development/Libraries |
30717bee | 128 | Requires: %{name} = %{version}-%{release} |
ac956507 | 129 | Requires: bzip2-devel |
3d7704dc | 130 | Requires: libgsf-devel |
1611298c | 131 | Requires: libltdl-devel |
7a97c3f0 | 132 | |
e6895d44 | 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 | ||
3048b7f3 JR |
137 | %description devel -l pl.UTF-8 |
138 | Piki nagłówkowe wymagane do tworzenia aplikacji i wtyczek | |
139 | korzystających z libextractor. | |
e6895d44 | 140 | |
7a97c3f0 | 141 | %package static |
142 | Summary: Static libextractor libraries | |
b0bb8262 | 143 | Summary(pl.UTF-8): Statyczne biblioteki libextractor |
7a97c3f0 | 144 | Group: Development/Libraries |
30717bee | 145 | Requires: %{name}-devel = %{version}-%{release} |
7a97c3f0 | 146 | |
e6895d44 | 147 | %description static |
148 | This package contains static libraries of libextractor. | |
149 | ||
3048b7f3 | 150 | %description static -l pl.UTF-8 |
e6895d44 | 151 | Statyczna wersja bibliotek libextractor. |
152 | ||
153 | %prep | |
154 | %setup -q | |
fcbde899 | 155 | %patch0 -p1 |
d4fec0d7 JB |
156 | %patch1 -p1 |
157 | %patch2 -p1 | |
e4c3c699 | 158 | %patch3 -p1 |
f62a8524 | 159 | |
e6895d44 | 160 | %build |
a4491c19 | 161 | %{__gettextize} |
e4c3c699 | 162 | %{__libtoolize} |
d809ecde | 163 | %{__aclocal} -I m4 |
0271649d | 164 | %{__autoconf} |
165 | %{__autoheader} | |
166 | %{__automake} | |
d4fec0d7 | 167 | %{?with_qt:CPPFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt"} |
9ef92358 | 168 | %configure \ |
d4fec0d7 JB |
169 | %{?with_static_libs:--enable-static} \ |
170 | %{?with_qt:--with-qt} | |
e6895d44 | 171 | |
7a97c3f0 | 172 | %{__make} |
e6895d44 | 173 | |
174 | %install | |
175 | rm -rf $RPM_BUILD_ROOT | |
22ef719f JB |
176 | |
177 | %{__make} install \ | |
178 | DESTDIR=$RPM_BUILD_ROOT | |
179 | ||
180 | # useless | |
b70ad6ab | 181 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.a |
7a97c3f0 | 182 | |
a4491c19 JB |
183 | %find_lang %{name} |
184 | ||
7a97c3f0 | 185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
22ef719f JB |
188 | %post -p /sbin/ldconfig |
189 | %postun -p /sbin/ldconfig | |
e6895d44 | 190 | |
a2621b7e ER |
191 | %post devel -p /sbin/postshell |
192 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
51643bdb | 193 | |
a2621b7e ER |
194 | %postun devel -p /sbin/postshell |
195 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
51643bdb | 196 | |
a4491c19 | 197 | %files -f %{name}.lang |
e6895d44 | 198 | %defattr(644,root,root,755) |
22ef719f | 199 | %doc AUTHORS ChangeLog NEWS README TODO |
e6895d44 | 200 | %attr(755,root,root) %{_bindir}/extract |
30717bee | 201 | %attr(755,root,root) %{_libdir}/libextractor.so.*.*.* |
51643bdb | 202 | %attr(755,root,root) %ghost %{_libdir}/libextractor.so.1 |
30717bee | 203 | # plugins are lt_dlopened without extension, so *.la are needed |
b70ad6ab | 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 | |
6ee1ab83 | 209 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so |
b70ad6ab | 210 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_filename.so |
51643bdb JB |
211 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so |
212 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_flv.so | |
b70ad6ab | 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 | |
62aaded9 | 227 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so |
51643bdb | 228 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so |
b70ad6ab | 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 | |
84556c19 | 239 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so |
b70ad6ab | 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 | |
bf567ee8 | 243 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_translit.so |
b70ad6ab | 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 | |
6ee1ab83 | 250 | %{_libdir}/%{name}/libextractor_exiv2.la |
b70ad6ab | 251 | %{_libdir}/%{name}/libextractor_filename.la |
51643bdb JB |
252 | %{_libdir}/%{name}/libextractor_flac.la |
253 | %{_libdir}/%{name}/libextractor_flv.la | |
b70ad6ab | 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 | |
62aaded9 | 268 | %{_libdir}/%{name}/libextractor_nsf.la |
51643bdb | 269 | %{_libdir}/%{name}/libextractor_nsfe.la |
b70ad6ab | 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 | |
84556c19 | 280 | %{_libdir}/%{name}/libextractor_sid.la |
b70ad6ab | 281 | %{_libdir}/%{name}/libextractor_split.la |
282 | %{_libdir}/%{name}/libextractor_tar.la | |
283 | %{_libdir}/%{name}/libextractor_tiff.la | |
bf567ee8 | 284 | %{_libdir}/%{name}/libextractor_translit.la |
b70ad6ab | 285 | %{_libdir}/%{name}/libextractor_wav.la |
286 | %{_libdir}/%{name}/libextractor_zip.la | |
51643bdb | 287 | %{_mandir}/man1/extract.1* |
e6895d44 | 288 | |
30717bee JB |
289 | %files printable |
290 | %defattr(644,root,root,755) | |
b70ad6ab | 291 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_printable_*.so |
292 | %{_libdir}/%{name}/libextractor_printable_*.la | |
30717bee | 293 | |
6ee1ab83 JB |
294 | %files thumbnail |
295 | %defattr(644,root,root,755) | |
d4fec0d7 | 296 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnail.so |
d24853e4 JB |
297 | %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so |
298 | %{_libdir}/%{name}/libextractor_thumbnailgtk.la | |
6ee1ab83 | 299 | |
d4fec0d7 JB |
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 | ||
e6895d44 | 305 | %files devel |
306 | %defattr(644,root,root,755) | |
22ef719f JB |
307 | %attr(755,root,root) %{_libdir}/libextractor.so |
308 | %{_libdir}/libextractor.la | |
e6895d44 | 309 | %{_includedir}/extractor.h |
84556c19 | 310 | %{_pkgconfigdir}/libextractor.pc |
51643bdb JB |
311 | %{_mandir}/man3/libextractor.3* |
312 | %{_infodir}/extractor.info* | |
e6895d44 | 313 | |
9ef92358 | 314 | %if %{with static_libs} |
e6895d44 | 315 | %files static |
316 | %defattr(644,root,root,755) | |
22ef719f | 317 | %{_libdir}/libextractor.a |
9ef92358 | 318 | %endif |