[packages/libextractor] - updated to 1.14

qboosh qboosh at pld-linux.org
Fri May 29 18:18:43 CEST 2026


commit 33ff12e2f62d7dd0f599b6a38e5e5bc36a3fca95
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 29 18:18:52 2026 +0200

    - updated to 1.14

 libextractor-exiv2.patch |  24 ---------
 libextractor.spec        | 123 +++++++++++++++++++++++++++--------------------
 2 files changed, 70 insertions(+), 77 deletions(-)
---
diff --git a/libextractor.spec b/libextractor.spec
index 4d36309..8f39717 100644
--- a/libextractor.spec
+++ b/libextractor.spec
@@ -1,32 +1,31 @@
+# TODO: consider splitting some plugins (e.g. vlc)
 #
 # Conditional build:
 %bcond_without	static_libs	# static library
 %bcond_without	tests		# perform tests [some problems with rpm5]
 %bcond_without	gstreamer	# GStreamer plugin
-%bcond_without	mp4v2		# MP4v2 plugin
 %bcond_with	rpm5		# build with rpm5
 %bcond_without	tidy		# HTML plugin (based on tidy library)
 #
 Summary:	Meta-data extraction library
 Summary(pl.UTF-8):	Biblioteka do ekstrakcji metadanych
 Name:		libextractor
-Version:	1.13
-Release:	4
+Version:	1.14
+Release:	1
 License:	GPL v3+
 Group:		Libraries
 Source0:	https://ftp.gnu.org/gnu/libextractor/%{name}-%{version}.tar.gz
-# Source0-md5:	7f28aeb17fb360a78a71069375934e6f
+# Source0-md5:	56c6a9f1b4ceb1ed97455ddc1e8ba0bb
 Patch0:		%{name}-info.patch
 Patch1:		%{name}-rpm5.patch
-Patch2:		%{name}-exiv2.patch
 URL:		http://www.gnu.org/software/libextractor/
-BuildRequires:	autoconf >= 2.71
+BuildRequires:	autoconf >= 2.72
 BuildRequires:	automake >= 1:1.11
 BuildRequires:	bzip2-devel
 BuildRequires:	exiv2-devel
 BuildRequires:	flac-devel
 BuildRequires:	gdk-pixbuf2-devel >= 2.4
-BuildRequires:	gettext-tools >= 0.21
+BuildRequires:	gettext-tools >= 0.23.1
 BuildRequires:	giflib-devel >= 5.1.0
 BuildRequires:	glib2-devel >= 2.0.0
 %if %{with gstreamer}
@@ -41,19 +40,23 @@ BuildRequires:	libjpeg-devel
 BuildRequires:	libltdl-devel >= 2:2
 BuildRequires:	libmagic-devel
 BuildRequires:	libmpeg2-devel
+BuildRequires:	libogg-devel
 BuildRequires:	libsmf-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtiff-devel
 BuildRequires:	libtool >= 2:2
 BuildRequires:	libvorbis-devel
-%{?with_mp4v2:BuildRequires:	mp4v2-devel >= 2.0.0}
 BuildRequires:	pkgconfig >= 1:0.7
+BuildRequires:	poppler-cpp-devel >= 0.73.0
 BuildRequires:	rpm-devel >= 4.5
 BuildRequires:	sed >= 4.0
+BuildRequires:	vlc-devel
 BuildRequires:	texinfo
 %{?with_tidy:BuildRequires:	tidy-devel >= 5}
 BuildRequires:	zlib-devel
 %{?with_tests:BuildRequires:	zzuf}
+# iso-639 for langauge translations in ole2 extractor
+Suggests:	iso-codes
 Obsoletes:	libextractor-printable < 0.6
 Obsoletes:	libextractor-thumbnail-qt < 1.0.1
 Obsoletes:	thumbnail-ffmpeg < 1.11-3
@@ -150,10 +153,17 @@ Statyczna wersja bibliotek libextractor.
 %setup -q
 %patch -P 0 -p1
 %{?with_rpm5:%patch -P 1 -p1}
-%patch -P 2 -p1
 
 %{__rm} po/stamp-po
 
+# as of 1.14:
+# - test_thumbnailgtk fails with gdk-pixbuf2 2.44.x
+# - test_mime fails with libmagic 5.47 on ogg file
+%{__sed} -i \
+	-e '/^TEST_MIME=/ s/=.*/=/' \
+	-e '/^TEST_GTK=/ s/=.*/=/' \
+	src/plugins/Makefile.am
+
 %build
 %{__gettextize}
 %{__libtoolize}
@@ -169,7 +179,9 @@ Statyczna wersja bibliotek libextractor.
 
 %{__make}
 
-%{?with_tests:%{__make} check}
+%if %{with tests}
+%{__make} check
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -202,70 +214,75 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
 %attr(755,root,root) %{_bindir}/extract
-%attr(755,root,root) %{_libdir}/libextractor.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libextractor.so.3
-%attr(755,root,root) %{_libdir}/libextractor_common.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libextractor_common.so.1
+%{_libdir}/libextractor.so.*.*.*
+%ghost %{_libdir}/libextractor.so.3
+%{_libdir}/libextractor_common.so.*.*.*
+%ghost %{_libdir}/libextractor_common.so.1
 %dir %{_libdir}/%{name}
+%{_libdir}/%{name}/libextractor_applefile.so
 # R: libarchive
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_archive.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so
+%{_libdir}/%{name}/libextractor_archive.so
+%{_libdir}/%{name}/libextractor_deb.so
+%{_libdir}/%{name}/libextractor_dvi.so
+%{_libdir}/%{name}/libextractor_elf.so
 # R: exiv2
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so
+%{_libdir}/%{name}/libextractor_exiv2.so
 # R: flac
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so
+%{_libdir}/%{name}/libextractor_flac.so
 # R: giflib
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so
+%{_libdir}/%{name}/libextractor_gif.so
 # R: gstreamer gstreamer-plugins-base
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_gstreamer.so
+%{_libdir}/%{name}/libextractor_gstreamer.so
+%if %{with tidy}
 # R: libmagic tidy
-%{?with_tidy:%attr(755,root,root) %{_libdir}/%{name}/libextractor_html.so}
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_it.so
-# R: libjepg
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_jpeg.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_man.so
+%{_libdir}/%{name}/libextractor_html.so
+%endif
+%{_libdir}/%{name}/libextractor_it.so
+# R: libjpeg
+%{_libdir}/%{name}/libextractor_jpeg.so
+%{_libdir}/%{name}/libextractor_man.so
 # R: libsmf
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_midi.so
+%{_libdir}/%{name}/libextractor_midi.so
 # R: libmagic
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so
-# R: mp4v2
-%{?with_mp4v2:%attr(755,root,root) %{_libdir}/%{name}/libextractor_mp4.so}
+%{_libdir}/%{name}/libextractor_mime.so
 # R: libmpeg2
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_odf.so
+%{_libdir}/%{name}/libextractor_mpeg.so
+%{_libdir}/%{name}/libextractor_nsf.so
+%{_libdir}/%{name}/libextractor_nsfe.so
+%{_libdir}/%{name}/libextractor_odf.so
 # R: libvorbis
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so
-# R: libgsf
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_pdf.so
+%{_libdir}/%{name}/libextractor_ogg.so
+# R: libgsf, S: iso-codes
+%{_libdir}/%{name}/libextractor_ole2.so
+%{_libdir}/%{name}/libextractor_pdf.so
+# R: zlib
+%{_libdir}/%{name}/libextractor_png.so
+%{_libdir}/%{name}/libextractor_ps.so
+%{_libdir}/%{name}/libextractor_real.so
+%{_libdir}/%{name}/libextractor_riff.so
 # R: zlib
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_png.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_ps.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so
+%{_libdir}/%{name}/libextractor_qt.so
 # R: rpm-lib
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_s3m.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so
+%{_libdir}/%{name}/libextractor_rpm.so
+%{_libdir}/%{name}/libextractor_s3m.so
+%{_libdir}/%{name}/libextractor_sid.so
 # R: libtiff
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_xm.so
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so
+%{_libdir}/%{name}/libextractor_tiff.so
+# R: vlc
+%{_libdir}/%{name}/libextractor_vlc.so
+%{_libdir}/%{name}/libextractor_wav.so
+%{_libdir}/%{name}/libextractor_xm.so
+%{_libdir}/%{name}/libextractor_zip.so
 %{_mandir}/man1/extract.1*
 
 %files thumbnail-gtk
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so
+%{_libdir}/%{name}/libextractor_thumbnailgtk.so
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libextractor.so
-%attr(755,root,root) %{_libdir}/libextractor_common.so
+%{_libdir}/libextractor.so
+%{_libdir}/libextractor_common.so
 %{_libdir}/libextractor.la
 %{_libdir}/libextractor_common.la
 %{_includedir}/extractor.h
diff --git a/libextractor-exiv2.patch b/libextractor-exiv2.patch
deleted file mode 100644
index c1645b4..0000000
--- a/libextractor-exiv2.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- libextractor-1.13/src/plugins/test_exiv2.c.orig	2021-04-08 13:30:42.000000000 +0200
-+++ libextractor-1.13/src/plugins/test_exiv2.c	2024-01-13 15:43:17.804290064 +0100
-@@ -49,8 +49,8 @@ main (int argc, char *argv[])
-       EXTRACTOR_METATYPE_GPS_LATITUDE,
-       EXTRACTOR_METAFORMAT_UTF8,
-       "text/plain",
--      "28deg 8' (18|17.585)\" ?",
--      strlen ("28deg 8' (18|17.585)\" ?") + 1,
-+      "28 ?deg 8' (18|17.58|17.585)\" ?",
-+      strlen ("28 ?deg 8' (18|17.58|17.585)\" ?") + 1,
-       0,
-       .regex = 1
-     },
-@@ -66,8 +66,8 @@ main (int argc, char *argv[])
-       EXTRACTOR_METATYPE_GPS_LONGITUDE,
-       EXTRACTOR_METAFORMAT_UTF8,
-       "text/plain",
--      "14deg 14' (22|21.713)\" ?",
--      strlen ("14deg 14' (22|21.713)\" ?"),
-+      "14 ?deg 14' (22|21.71|21.713)\" ?",
-+      strlen ("14 ?deg 14' (22|21.71|21.713)\" ?"),
-       0,
-       .regex = 1
-     },
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libextractor.git/commitdiff/33ff12e2f62d7dd0f599b6a38e5e5bc36a3fca95



More information about the pld-cvs-commit mailing list