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