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