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