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