]> git.pld-linux.org Git - packages/libextractor.git/blob - libextractor.spec
91c08a77b5a022f9261eb7c01a620ed60a7f3b0a
[packages/libextractor.git] / libextractor.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 %bcond_without  tests           # perform tests [some problems with rpm5]
5 %bcond_without  gstreamer       # GStreamer plugin
6 %bcond_without  mp4v2           # MP4v2 plugin
7 %bcond_with     rpm5            # build with rpm5
8 %bcond_without  tidy            # HTML plugin (based on tidy library)
9 #
10 Summary:        Meta-data extraction library
11 Summary(pl.UTF-8):      Biblioteka do ekstrakcji metadanych
12 Name:           libextractor
13 Version:        1.13
14 Release:        1
15 License:        GPL v3+
16 Group:          Libraries
17 Source0:        https://ftp.gnu.org/gnu/libextractor/%{name}-%{version}.tar.gz
18 # Source0-md5:  7f28aeb17fb360a78a71069375934e6f
19 Patch0:         %{name}-info.patch
20 Patch1:         %{name}-rpm5.patch
21 Patch2:         %{name}-exiv2.patch
22 URL:            http://www.gnu.org/software/libextractor/
23 BuildRequires:  autoconf >= 2.71
24 BuildRequires:  automake >= 1:1.11
25 BuildRequires:  bzip2-devel
26 BuildRequires:  exiv2-devel
27 BuildRequires:  gdk-pixbuf2-devel >= 2.4
28 BuildRequires:  gettext-tools >= 0.21
29 BuildRequires:  flac-devel
30 BuildRequires:  giflib-devel >= 5.1.0
31 BuildRequires:  glib2-devel >= 2.0.0
32 %if %{with gstreamer}
33 BuildRequires:  gstreamer-devel >= 0.11.93
34 BuildRequires:  gstreamer-plugins-base >= 0.11.93
35 %endif
36 BuildRequires:  gtk+3-devel >= 3.0.0
37 BuildRequires:  libapparmor-devel
38 BuildRequires:  libarchive-devel
39 BuildRequires:  libgsf-devel
40 BuildRequires:  libjpeg-devel
41 BuildRequires:  libltdl-devel >= 2:2
42 BuildRequires:  libmagic-devel
43 BuildRequires:  libmpeg2-devel
44 BuildRequires:  libsmf-devel
45 BuildRequires:  libstdc++-devel
46 BuildRequires:  libtiff-devel
47 BuildRequires:  libtool >= 2:2
48 BuildRequires:  libvorbis-devel
49 %{?with_mp4v2:BuildRequires:    mp4v2-devel >= 2.0.0}
50 BuildRequires:  pkgconfig >= 1:0.7
51 BuildRequires:  rpm-devel >= 4.5
52 BuildRequires:  sed >= 4.0
53 BuildRequires:  texinfo
54 %{?with_tidy:BuildRequires:     tidy-devel >= 5}
55 BuildRequires:  zlib-devel
56 %{?with_tests:BuildRequires:    zzuf}
57 Obsoletes:      libextractor-printable < 0.6
58 Obsoletes:      libextractor-thumbnail-qt < 1.0.1
59 Obsoletes:      thumbnail-ffmpeg < 1.11-3
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %description
63 libextractor is a simple library for meta-data extraction.
64 libextractor uses a plugin-mechanism that makes it easy to add support
65 for more file formats, allowing anybody to add new extractors quickly.
66
67 libextractor currently features meta-data extractors for HTML, JPEG,
68 Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real Audio and Video,
69 PostScript and PDF documents. It also detects many more MIME-types in
70 a fashion similar to the well-known "file" tool.
71
72 Each item of meta-data that is extracted from a file is categorized
73 into one of currently about 40 meta-data categories (e.g. title,
74 author, description or MIME-type).
75
76 This libextractor package also contains a little binary tool "extract"
77 that can be used to invoke libextractor from the command line.
78 "extract" can be used similar to "file", but while "file" currently
79 supports a wider range of file types, "extract" should be able to
80 provide more precise and more detailed information for the supported
81 types of documents (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS,
82 PDF, ZIP, QT, ASF).
83
84 %description -l pl.UTF-8
85 libextractor to prosta biblioteka służąca do ekstrakcji metadanych.
86 libextractor używa mechanizmu "wtyczek", dzięki czemu łatwo jest dodać
87 wsparcie dla nowych formatów plików.
88
89 libextractor obecnie pozwala na pozyskanie metadanych z plików w
90 formatach HTML, JPEG, Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real
91 Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje dużo więcej
92 typów MIME w sposób podobny do dobrze znanego narzędzia "file".
93
94 Każda informacja pobrana z pliku należy do jednej z około 40
95 kategorii (np. tytuł, autor, opis, typ MIME).
96
97 Ta paczka zawiera też narzędzie "extract", które pozwala skorzystać z
98 usług libextractor bezpośrednio z linii poleceń. "extract" może być
99 używane w podobny sposób, co "file". "file" zna więcej typów danych,
100 "extract" natomiast dostarcza bardziej precyzyjnych i szczegółowych
101 informacji na temat obsługiwanych formatów (HTML, JPEG, Ogg, MP3, PNG,
102 GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF).
103
104 %package thumbnail-gtk
105 Summary:        GTK+ Thumbnail plugin for libextractor
106 Summary(pl.UTF-8):      Wtyczka obsługująca miniaturki obrazów poprzez GTK+ dla biblioteki libextractor
107 Group:          Libraries
108 Requires:       %{name} = %{version}-%{release}
109 Requires:       gdk-pixbuf2 >= 2.4
110 Obsoletes:      libextractor-thumbnail < 1.0.1
111
112 %description thumbnail-gtk
113 libextractor plugin that supports thumbnails through GTK+.
114
115 %description thumbnail-gtk -l pl.UTF-8
116 Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
117 GTK+.
118
119 %package devel
120 Summary:        Development files for libextractor
121 Summary(pl.UTF-8):      Pliki nagłówkowe libextractor
122 Group:          Development/Libraries
123 Requires:       %{name} = %{version}-%{release}
124 Requires:       bzip2-devel
125 Requires:       libapparmor-devel
126 Requires:       libltdl-devel
127 Requires:       zlib-devel
128
129 %description devel
130 This package contains files to develop with libextractor, that is
131 either to create plugins or to compile applications with libextractor.
132
133 %description devel -l pl.UTF-8
134 Piki nagłówkowe wymagane do tworzenia aplikacji i wtyczek
135 korzystających z libextractor.
136
137 %package static
138 Summary:        Static libextractor libraries
139 Summary(pl.UTF-8):      Statyczne biblioteki libextractor
140 Group:          Development/Libraries
141 Requires:       %{name}-devel = %{version}-%{release}
142
143 %description static
144 This package contains static libraries of libextractor.
145
146 %description static -l pl.UTF-8
147 Statyczna wersja bibliotek libextractor.
148
149 %prep
150 %setup -q
151 %patch0 -p1
152 %{?with_rpm5:%patch1 -p1}
153 %patch2 -p1
154
155 %{__rm} po/stamp-po
156
157 %build
158 %{__gettextize}
159 %{__libtoolize}
160 %{__aclocal} -I m4
161 %{__autoconf}
162 %{__autoheader}
163 %{__automake}
164 %configure \
165         %{!?with_tests:--disable-testruns} \
166         --enable-experimental \
167         %{?with_static_libs:--enable-static} \
168         %{!?with_gstreamer:--without-gstreamer}
169
170 %{__make}
171
172 %{?with_tests:%{__make} check}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %{__make} install \
178         DESTDIR=$RPM_BUILD_ROOT
179
180 # lt_dlopen is used, but .la files are not required now
181 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.la
182 %if %{with static_libs}
183 # useless
184 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/libextractor_*.a
185 %endif
186
187 %find_lang %{name}
188
189 %clean
190 rm -rf $RPM_BUILD_ROOT
191
192 %post   -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
194
195 %post   devel -p /sbin/postshell
196 -/usr/sbin/fix-info-dir -c %{_infodir}
197
198 %postun devel -p /sbin/postshell
199 -/usr/sbin/fix-info-dir -c %{_infodir}
200
201 %files -f %{name}.lang
202 %defattr(644,root,root,755)
203 %doc AUTHORS ChangeLog NEWS README TODO
204 %attr(755,root,root) %{_bindir}/extract
205 %attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
206 %attr(755,root,root) %ghost %{_libdir}/libextractor.so.3
207 %attr(755,root,root) %{_libdir}/libextractor_common.so.*.*.*
208 %attr(755,root,root) %ghost %{_libdir}/libextractor_common.so.1
209 %dir %{_libdir}/%{name}
210 # R: libarchive
211 %attr(755,root,root) %{_libdir}/%{name}/libextractor_archive.so
212 %attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so
213 %attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so
214 %attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so
215 # R: exiv2
216 %attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so
217 # R: flac
218 %attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so
219 # R: giflib
220 %attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so
221 # R: gstreamer gstreamer-plugins-base
222 %attr(755,root,root) %{_libdir}/%{name}/libextractor_gstreamer.so
223 # R: libmagic tidy
224 %{?with_tidy:%attr(755,root,root) %{_libdir}/%{name}/libextractor_html.so}
225 %attr(755,root,root) %{_libdir}/%{name}/libextractor_it.so
226 # R: libjepg
227 %attr(755,root,root) %{_libdir}/%{name}/libextractor_jpeg.so
228 %attr(755,root,root) %{_libdir}/%{name}/libextractor_man.so
229 # R: libsmf
230 %attr(755,root,root) %{_libdir}/%{name}/libextractor_midi.so
231 # R: libmagic
232 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so
233 # R: mp4v2
234 %{?with_mp4v2:%attr(755,root,root) %{_libdir}/%{name}/libextractor_mp4.so}
235 # R: libmpeg2
236 %attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so
237 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so
238 %attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so
239 %attr(755,root,root) %{_libdir}/%{name}/libextractor_odf.so
240 # R: libvorbis
241 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so
242 # R: libgsf
243 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so
244 %attr(755,root,root) %{_libdir}/%{name}/libextractor_pdf.so
245 # R: zlib
246 %attr(755,root,root) %{_libdir}/%{name}/libextractor_png.so
247 %attr(755,root,root) %{_libdir}/%{name}/libextractor_ps.so
248 %attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so
249 %attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so
250 # R: rpm-lib
251 %attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so
252 %attr(755,root,root) %{_libdir}/%{name}/libextractor_s3m.so
253 %attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so
254 # R: libtiff
255 %attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so
256 %attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so
257 %attr(755,root,root) %{_libdir}/%{name}/libextractor_xm.so
258 %attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so
259 %{_mandir}/man1/extract.1*
260
261 %files thumbnail-gtk
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so
264
265 %files devel
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libextractor.so
268 %attr(755,root,root) %{_libdir}/libextractor_common.so
269 %{_libdir}/libextractor.la
270 %{_libdir}/libextractor_common.la
271 %{_includedir}/extractor.h
272 %{_pkgconfigdir}/libextractor.pc
273 %{_mandir}/man3/libextractor.3*
274 %{_infodir}/libextractor.info*
275
276 %if %{with static_libs}
277 %files static
278 %defattr(644,root,root,755)
279 %{_libdir}/libextractor.a
280 %{_libdir}/libextractor_common.a
281 %endif
This page took 0.037382 seconds and 3 git commands to generate.