[packages/tracker-miners] - updated to 2.2.2

qboosh qboosh at pld-linux.org
Sun May 19 08:50:40 CEST 2019


commit 434d20672591d48b834eb584950889e52d2420b9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 19 08:51:22 2019 +0200

    - updated to 2.2.2

 tracker-miners.spec | 235 ++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 189 insertions(+), 46 deletions(-)
---
diff --git a/tracker-miners.spec b/tracker-miners.spec
index 5ccca20..0091ac8 100644
--- a/tracker-miners.spec
+++ b/tracker-miners.spec
@@ -1,18 +1,80 @@
-%define		ver	2.0
+#
+# Conditional build:
+%bcond_with	ffmpeg		# FFmpeg instead of GStreamer as generic media extractor
+%bcond_with	gupnp		# GStreamer gupnp backend instead of discoverer
+%bcond_with	icu		# ICU instead of enca for MP3 encoding detection
+
+%define		abiver	2.0
 Summary:	Tracker miners and metadata extractors
 Summary(pl.UTF-8):	Narzędzia wydobywania danych dla programu Tracker
 Name:		tracker-miners
-Version:	2.1.5
+Version:	2.2.2
 Release:	1
-License:	GPLv2+ and LGPLv2+
+# see COPYING for details
+License:	LGPL v2.1+ (libs), GPL v2+ (miners)
 Group:		Applications
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/tracker-miners/2.1/%{name}-%{version}.tar.xz
-# Source0-md5:	92e975487af4849379d0168fa23fe9c1
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/tracker-miners/2.2/%{name}-%{version}.tar.xz
+# Source0-md5:	a95842d4cbffb7230bde7cd98f6a9afe
 URL:		https://wiki.gnome.org/Projects/Tracker
-BuildRequires:	intltool >= 0.40.0
+BuildRequires:	dbus-devel >= 1.3.1
+%{!?with_icu:BuildRequires:	enca-devel >= 1.9}
+BuildRequires:	exempi-devel >= 2.1.0
+# libavcodec libavformat libavutil
+%{?with_ffmpeg:BuildRequires:	ffmpeg-devel >= 0.8.4}
+BuildRequires:	gexiv2-devel
+BuildRequires:	giflib-devel
+BuildRequires:	glib2-devel >= 1:2.40.0
+%if %{without ffmpeg}
+BuildRequires:	gstreamer-devel >= 1.0
+BuildRequires:	gstreamer-plugins-base-devel >= 1.0
+%endif
+%if %{with gupnp}
+BuildRequires:	gupnp-dlna-devel >= 0.9.4
+BuildRequires:	gupnp-dlna-gst-devel >= 0.9.4
+%endif
+BuildRequires:	libcue-devel
+BuildRequires:	libexif-devel >= 0.6
+BuildRequires:	libgrss-devel >= 0.7
+BuildRequires:	libgsf-devel >= 1.14.24
+BuildRequires:	libgxps-devel
+%{?with_icu:BuildRequires:	libicu-devel >= 4.8.1.1}
+BuildRequires:	libiptcdata-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	libosinfo-devel >= 0.2.9
+BuildRequires:	libpng-devel
+%ifnarch alpha ia64 m68k parisc sh4 sparc sparcv9 sparc64
+BuildRequires:	libseccomp-devel >= 2.0
+%endif
+BuildRequires:	libtiff-devel >= 4
+BuildRequires:	libvorbis-devel >= 0.22
+BuildRequires:	libxml2-devel >= 1:2.6
+BuildRequires:	meson >= 0.47
+BuildRequires:	ninja >= 1.5
 BuildRequires:	pkgconfig
-BuildRequires:	tracker-devel >= 2.0
-BuildRequires:	zstd-devel
+BuildRequires:	poppler-glib-devel >= 0.16.0
+BuildRequires:	rpmbuild(macros) >= 1.736
+BuildRequires:	systemd-units
+BuildRequires:	taglib-devel >= 1.6
+BuildRequires:	totem-pl-parser-devel
+BuildRequires:	tracker-devel >= 2.2.0
+BuildRequires:	upower-devel >= 0.9.0
+BuildRequires:	zlib-devel
+Requires:	dbus >= 1.3.1
+%{!?with_icu:Requires:	enca-libs >= 1.9}
+Requires:	exempi >= 2.1.0
+Requires:	glib2 >= 1:2.40.0
+%if %{with gupnp}
+Requires:	gupnp-dlna >= 0.9.4
+Requires:	gupnp-dlna-gst >= 0.9.4
+%endif
+Requires:	libexif >= 0.6
+Requires:	libgrss >= 0.7
+Requires:	libgsf >= 1.14.24
+Requires:	libosinfo >= 0.2.9
+Requires:	libvorbis >= 0.22
+Requires:	libxml2 >= 1:2.6
+Requires:	taglib >= 1.6
+Requires:	tracker >= 2.2.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,24 +88,20 @@ Ten pakiet zawiera narzędzia wydobywania danych dla programu Tracker.
 %setup -q
 
 %build
-%configure \
-	--enable-libvorbis \
-	--enable-libflac \
-	--disable-silent-rules
-%{__make}
+%meson build \
+	--default-library=shared \
+	-Dbattery-detection=upower \
+	-Dcharset_detection=%{?with_icu:icu}%{!?with_icu:enca} \
+	-Dfunctional_tests=false \
+	-Dgeneric_media_extractor=%{?with_ffmpeg:libav}%{!?with_ffmpeg:gstreamer} \
+	-Dgstreamer_backend=%{?with_gupnp:gupnp}%{!?with_gupnp:discoverer}
+
+%ninja_build -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
-
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{ver}/*.a
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{ver}/*.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{ver}/extract-modules/*.a
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{ver}/extract-modules/*.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{ver}/writeback-modules/*.a
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}-%{ver}/writeback-modules/*.la
+%ninja_install -C build
 
 %find_lang tracker-miners
 
@@ -58,19 +116,68 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f tracker-miners.lang
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS
-%{_sysconfdir}/xdg/autostart/tracker-*.desktop
-%{systemduserunitdir}/tracker-*.service
-%attr(755,root,root) %{_libdir}/%{name}-%{ver}/libtracker-extract.so.0.0.0
-%attr(755,root,root) %{_libdir}/%{name}-%{ver}/libtracker-extract.so.0
-%attr(755,root,root) %{_libdir}/%{name}-%{ver}/libtracker-extract.so
-%dir %{_libdir}/%{name}-%{ver}
-%dir %{_libdir}/%{name}-%{ver}/extract-modules
-%dir %{_libdir}/%{name}-%{ver}/writeback-modules
-%attr(755,root,root) %{_libdir}/tracker-miners-2.0/extract-modules/libextract-*.so
-%attr(755,root,root) %{_libdir}/tracker-miners-2.0/writeback-modules/libwriteback-*.so
-%attr(755,root,root) %{_prefix}/libexec/tracker-*
-%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Applications.service
+%doc AUTHORS COPYING MAINTAINERS NEWS README.md
+%attr(755,root,root) %{_libexecdir}/tracker-extract
+%attr(755,root,root) %{_libexecdir}/tracker-miner-fs
+%attr(755,root,root) %{_libexecdir}/tracker-miner-rss
+%attr(755,root,root) %{_libexecdir}/tracker-writeback
+%{_sysconfdir}/xdg/autostart/tracker-extract.desktop
+%{_sysconfdir}/xdg/autostart/tracker-miner-fs.desktop
+%{_sysconfdir}/xdg/autostart/tracker-miner-rss.desktop
+%{systemduserunitdir}/tracker-extract.service
+%{systemduserunitdir}/tracker-miner-fs.service
+%{systemduserunitdir}/tracker-miner-rss.service
+%{systemduserunitdir}/tracker-writeback.service
+%dir %{_libdir}/%{name}-%{abiver}
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/libtracker-extract.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/libtracker-miners-common.so
+%dir %{_libdir}/%{name}-%{abiver}/extract-modules
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-abw.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-bmp.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-desktop.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-dummy.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-dvi.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-epub.so
+# R: flac
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-flac.so
+# R: giflib
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-gif.so
+# R: gstreamer gstreamer-plugins-base
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-gstreamer.so
+# R: libxml2
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-html.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-icon.so
+# R: libosinfo
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-iso.so
+# R: libiptcdata libjpeg
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-jpeg.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-mp3.so
+# R: libgsf
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-msoffice.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-msoffice-xml.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-oasis.so
+# R: poppler-glib
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-pdf.so
+# R: totem-plparser
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-playlist.so
+# R: libpng
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-png.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-ps.so
+# R: libgexiv2
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-raw.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-text.so
+# R: libtiff
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-tiff.so
+# R: libvorbis
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-vorbis.so
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-xmp.so
+# R: libgxps
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/extract-modules/libextract-xps.so
+%dir %{_libdir}/%{name}-%{abiver}/writeback-modules
+# R: taglib
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/writeback-modules/libwriteback-taglib.so
+# R: exempi
+%attr(755,root,root) %{_libdir}/%{name}-%{abiver}/writeback-modules/libwriteback-xmp.so
 %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Extract.service
 %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Files.service
 %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.RSS.service
@@ -79,18 +186,54 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml
 %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Writeback.gschema.xml
 %{_datadir}/glib-2.0/schemas/org.freedesktop.TrackerMiners.enums.xml
-%{_mandir}/man1/tracker-extract.1*
-%{_mandir}/man1/tracker-miner-fs.1*
-%{_mandir}/man1/tracker-miner-rss.1*
-%{_mandir}/man1/tracker-writeback.1*
-%dir %{_datadir}/%{name}
-%dir %{_datadir}/%{name}/extract-rules
-%dir %{_datadir}/tracker-tests
-%{_datadir}/tracker-miners/extract-rules/*.rule
-%{_datadir}/tracker-tests/01-writeback.py
 %dir %{_datadir}/tracker/miners
-%{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.Applications.service
 %{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.Extract.service
 %{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.Files.service
 %{_datadir}/tracker/miners/org.freedesktop.Tracker1.Miner.RSS.service
-
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/extract-rules
+# standalone (builtin?) rules
+%{_datadir}/%{name}/extract-rules/10-comics.rule
+%{_datadir}/%{name}/extract-rules/10-ebooks.rule
+%{_datadir}/%{name}/extract-rules/10-svg.rule
+# modules
+%{_datadir}/%{name}/extract-rules/10-abw.rule
+%{_datadir}/%{name}/extract-rules/10-bmp.rule
+%{_datadir}/%{name}/extract-rules/10-desktop.rule
+%{_datadir}/%{name}/extract-rules/10-dvi.rule
+%{_datadir}/%{name}/extract-rules/10-epub.rule
+%{_datadir}/%{name}/extract-rules/10-flac.rule
+%{_datadir}/%{name}/extract-rules/10-gif.rule
+%{_datadir}/%{name}/extract-rules/10-html.rule
+%{_datadir}/%{name}/extract-rules/10-ico.rule
+%{_datadir}/%{name}/extract-rules/10-jpeg.rule
+%{_datadir}/%{name}/extract-rules/10-mp3.rule
+%{_datadir}/%{name}/extract-rules/10-msoffice.rule
+%{_datadir}/%{name}/extract-rules/10-oasis.rule
+%{_datadir}/%{name}/extract-rules/10-pdf.rule
+%{_datadir}/%{name}/extract-rules/10-png.rule
+%{_datadir}/%{name}/extract-rules/10-ps.rule
+%{_datadir}/%{name}/extract-rules/10-raw.rule
+%{_datadir}/%{name}/extract-rules/10-tiff.rule
+%{_datadir}/%{name}/extract-rules/10-vorbis.rule
+%{_datadir}/%{name}/extract-rules/10-xmp.rule
+%{_datadir}/%{name}/extract-rules/10-xps.rule
+%{_datadir}/%{name}/extract-rules/11-iso.rule
+%{_datadir}/%{name}/extract-rules/11-msoffice-xml.rule
+# libextract-gstreamer
+%{_datadir}/%{name}/extract-rules/15-gstreamer-guess.rule
+%{_datadir}/%{name}/extract-rules/15-playlist.rule
+# libextract-text
+%{_datadir}/%{name}/extract-rules/15-source-code.rule
+# libextract-gstreamer
+%{_datadir}/%{name}/extract-rules/90-gstreamer-audio-generic.rule
+# libextract-gstreamer
+%{_datadir}/%{name}/extract-rules/90-gstreamer-image-generic.rule
+# libextract-gstreamer
+%{_datadir}/%{name}/extract-rules/90-gstreamer-video-generic.rule
+# libextract-text
+%{_datadir}/%{name}/extract-rules/90-text-generic.rule
+%{_mandir}/man1/tracker-extract.1*
+%{_mandir}/man1/tracker-miner-fs.1*
+%{_mandir}/man1/tracker-miner-rss.1*
+%{_mandir}/man1/tracker-writeback.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tracker-miners.git/commitdiff/434d20672591d48b834eb584950889e52d2420b9



More information about the pld-cvs-commit mailing list