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