diff --git a/autogen.sh b/autogen.sh new file mode 100644 index 0000000..df2e8f2 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. +# +# NOTE: compare_versions() is stolen from gnome-autogen.sh + +REQUIRED_VALA_VERSION=0.18.0 + +# Usage: +# compare_versions MIN_VERSION ACTUAL_VERSION +# returns true if ACTUAL_VERSION >= MIN_VERSION +compare_versions() { + ch_min_version=$1 + ch_actual_version=$2 + ch_status=0 + IFS="${IFS= }"; ch_save_IFS="$IFS"; IFS="." + set $ch_actual_version + for ch_min in $ch_min_version; do + ch_cur=`echo $1 | sed 's/[^0-9].*$//'`; shift # remove letter suffixes + if [ -z "$ch_min" ]; then break; fi + if [ -z "$ch_cur" ]; then ch_status=1; break; fi + if [ $ch_cur -gt $ch_min ]; then break; fi + if [ $ch_cur -lt $ch_min ]; then ch_status=1; break; fi + done + IFS="$ch_save_IFS" + return $ch_status +} + +# Vala version check +test -z "$VALAC" && VALAC=valac +VALA_VERSION=`$VALAC --version | cut -d" " -f2` + +if [ -z "$VALA_VERSION" ]; then + echo "**Error**: valac not installed or broken. You must have valac >= $REQUIRED_VALA_VERSION" + echo "installed to build." + exit 1 +fi + +echo "Found Vala $VALA_VERSION" + +if ! compare_versions $REQUIRED_VALA_VERSION $VALA_VERSION; then + echo "**Error**: You must have valac >= $REQUIRED_VALA_VERSION installed to build, you have $VALA_VERSION" + exit 1 +fi + +# Generate required files +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. +( + cd "$srcdir" && + touch ChangeLog && # Automake requires that ChangeLog exist + gtkdocize --flavour no-tmpl && + autopoint --force && + AUTOPOINT='intltoolize --automake --copy' autoreconf --verbose --force --install +) || exit +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" diff --git a/tracker-0.16.4.tar.xz b/tracker-0.16.4.tar.xz deleted file mode 100644 index 8f5c37b..0000000 --- a/tracker-0.16.4.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9c2f50839c2b8b352ab9a022597ef985c1900e6286c0c3bcb7a64da39dbb3580 -size 5745592 diff --git a/tracker-1.0.0.tar.xz b/tracker-1.0.0.tar.xz new file mode 100644 index 0000000..4ce5919 --- /dev/null +++ b/tracker-1.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1d033faf2c78f0e239f3c2c961b96623c9a7dabd938c08e3f5660bd70f54ba2 +size 6172700 diff --git a/tracker-extract-private.patch b/tracker-extract-private.patch new file mode 100644 index 0000000..2a2bde7 --- /dev/null +++ b/tracker-extract-private.patch @@ -0,0 +1,54 @@ +From ea6399a3836be11747ac60b9237a5e2a41b22767 Mon Sep 17 00:00:00 2001 +From: Dominique Leuenberger +Date: Tue, 4 Mar 2014 22:37:31 +0100 +Subject: [PATCH] libtracker-{common,data,extract}: do not maintain LT + versioning + +As these are private libraries, there is no reason to maintain LT versioning. + +https://bugzilla.gnome.org/show_bug.cgi?id=725689 +--- + src/libtracker-common/Makefile.am | 2 +- + src/libtracker-data/Makefile.am | 2 +- + src/libtracker-extract/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +Index: tracker-0.17.6/src/libtracker-common/Makefile.am +=================================================================== +--- tracker-0.17.6.orig/src/libtracker-common/Makefile.am ++++ tracker-0.17.6/src/libtracker-common/Makefile.am +@@ -64,6 +64,8 @@ libtracker_common_la_LIBADD = \ + $(LIBTRACKER_COMMON_LIBS) \ + -lm + ++libtracker_common_la_LDFLAGS = -avoid-version ++ + if HAVE_TRACKER_FTS + libtracker_common_la_LIBADD += $(top_builddir)/src/libstemmer/libstemmer.la + endif +Index: tracker-0.17.6/src/libtracker-data/Makefile.am +=================================================================== +--- tracker-0.17.6.orig/src/libtracker-data/Makefile.am ++++ tracker-0.17.6/src/libtracker-data/Makefile.am +@@ -49,6 +49,8 @@ libtracker_data_la_LIBADD = + $(LIBTRACKER_DATA_LIBS) \ + -lm + ++libtracker_data_la_LDFLAGS = -avoid-version ++ + if HAVE_TRACKER_FTS + libtracker_data_la_LIBADD += \ + $(top_builddir)/src/libtracker-fts/libtracker-fts.la +Index: tracker-0.17.6/src/libtracker-extract/Makefile.am +=================================================================== +--- tracker-0.17.6.orig/src/libtracker-extract/Makefile.am ++++ tracker-0.17.6/src/libtracker-extract/Makefile.am +@@ -16,6 +16,8 @@ libtracker_extract_la_LIBADD = \ + $(BUILD_LIBS) \ + $(LIBTRACKER_EXTRACT_LIBS) + ++libtracker_extract_la_LDFLAGS = -avoid-version ++ + libtracker_extract_la_SOURCES = \ + tracker-data.h \ + tracker-encoding.c \ diff --git a/tracker-extras.changes b/tracker-extras.changes index f2bbdc6..cafef43 100644 --- a/tracker-extras.changes +++ b/tracker-extras.changes @@ -1,3 +1,274 @@ +------------------------------------------------------------------- +Mon Mar 24 19:01:47 UTC 2014 - zaitor@opensuse.org + +- Update to version 1.0.0: + + Make decorator errors public. + + libtracker-sparql: Make sure we check the env before choosing + the bus type. + + Updated translations. + +------------------------------------------------------------------- +Sat Mar 22 18:17:22 UTC 2014 - zaitor@opensuse.org + +- Update to version 0.17.8: + + Fixes: bgo#705315 tracker-0.16.2: configure wrongly mixes + checks for enable-compile-warning while using + WITH-compile-warnings. + + Fixes: bgo#726419 tracker-extract reports sparql update errors + for jpeg with dc:indenfitier. + + Fixes: bgo#675198, tracker-store man page description needs + minor cleanup. + + Updated translations. + +------------------------------------------------------------------- +Wed Mar 19 16:10:22 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.7: + + libtracker-sparql: Fix undefined reference to symbol + 'tracker_ipc_bus'. + + Updated translations. + +------------------------------------------------------------------- +Wed Mar 19 09:18:51 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.6: + + Make GBusType run-time configurable with TRACKER_BUS_TYPE + environment variable. + + Removed dead code from coverity report. + + libtracker-fts: Fix memory leak for GList on property names + during FTS init. + + libtracker-data: + - getting FTS multivalued properties used unintialised variable + in ontology_get_fts_properties(). + - Protect potential NULL dereference in _db_cursor_iter_next(). + + libtracker-{common,data,extract}: do not maintain LT + versioning. + + libtracker-miner: + - Do not leak the TrackerSparqlConnection in + TrackerFileNotifier. + - Don't print uninitalised sparql variable for update_array_cb. + - Dispose GFileInfo objects ASAP when crawling (attempt to + reduce memory footprint). + + libtracker-extract: + - Lookup rules after initializing in get_fallback_rdf_types() + to avoid empty rules lists. + - Fix memory leak on .rule file load errors. + - Fix memory leak and unref rdf_types hash table in + _module_manager_get_fallback_rdf_types(). + + tracker-store: Remove the --low-memory option in the man pages, + not used since 0.9.x. + + tracker-miner-fs: Fix memory leaks + + tracker-extract: + - Removed support for libstreamanalyzer, xine and totem + extractors, not been used or supported in a long time. + - Removed support for obsolete GStreamer backends tagreadbin, + decodebin2 in gstreamer extractor. + - Don't report < 0 nfo:width for images with GStreamer + discoverer. + - Remove the need for fork() and sub-processes with PDF + extraction, no longer needed. + - Make logging clearer if we fail on no modules or no metadata. + - Fixed epub extractor so it doesn't use a broken ontology. + - Improve logging, too many g_debug() calls to other log + levels. + - set nfo:Video on the gstreamer guess rule for completeness. + - Add desktop file to autostart process. + - Make it clearer where MIME type came from in debug (from + GIO/xdgmime or tracker-miner-fs). + + tracker-sparql: Support listing properties with --tree and make + --search case insensitive. + + tracker-sandbox: Set the locale properly so queries don't fail + due to locale mismatch to DB. + + Build fixes. + + Bugs fixed: bgo#726421, bgo#726639, bgo#726640, bgo#725689, + bgo#726552, bgo#726553, bgo#725607, bgo#725890. + + Updated translations. +- Rebase tracker-extract-private.patch: Upstream decided to 'fix' + it as .so.0.0.0, which is not what we consider the right thing + for this kind of private library). + +------------------------------------------------------------------- +Tue Mar 4 21:10:41 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.5: + + Build fixes. + + libtracker-miner: Code fixes. + + libtracker-extract: Don't break compilation due to missing + rules/modules dir. + + tracker-extract: + - Don't leak FD on tiff extractor when opening file. + - set nfo:Document in FallbackRdfTypes for text documents. + + racker-miner-fs: Fix documentation for 'low-disk-space-limit', + was in MB not %. + + Updated functional tests. + + Updated translations. +- Add tracker-extract-private.patch: do not maintain LT versioning + on the now private library libtracker-{common,data,extract}. +- Add gnome-common BuildRequires and call to autogen.sh, as above + patch touches the build system. +- Add autogen.sh as source in order to use the upstream provided + bootstrap script (not part of the tarball). +- Rename libtracker-common-1_0-0 subpackage to + libtracker-common-1_0: the private libraries are no longer LT + versioned. +- Drop libtracker-extract-1_0-0 and typelib-1_0-TrackerExtract-1-0 + subpackages and the respective Requires to the same from the + -devel package. Package libtracker-extract and the corresponding + glib schema with the other private libraries in + libtracker-common-1_0. +- Add post/postun scriptlets for schema handling to + libtracker-common-1_0. + +------------------------------------------------------------------- +Sat Feb 22 22:20:41 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.4: + + rss: compile fix with the RSS miner enabled. + + Updated translations. + +------------------------------------------------------------------- +Fri Feb 21 19:44:22 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.3: + + tracker-extract: Prioritization of rdf:types has been + implemented, so certain file types are extracted before others, + on demand of applications. + + libtracker-extract: This library has been made private. + Implementing a TrackerDecorator is the recommended way to + provide additional data. + + libtracker-miner: Major API cleanups, + - TrackerMinerWeb has been removed, replaced by + TrackerMinerOnline. + - TrackerMinerManager has been splitted into a separate + libtracker-control. + - TrackerCrawler, TrackerStorage and the thumbnailer/mediaart + helper functions are no longer public. + + libtracker-control: New library, containing + TrackerMinerManager, it requires using tracker-control-1.0.pc. + + tracker-miner-fs: optional prioritization of folders has been + reimplemented, used on removable volumes and DBus requests. + + tests: GTester Makefile rules have been updated. + + utils: tracker-sparql gained a --tree switch to print (partial) + ontology trees, and longhands/shorthands for + classes/properties. +- Create new subpackages libtracker-control-1_0-0 and + typelib-1_0-TrackerControl-1_0: following upstream. +- Adjust -devel package requirements to the dropped and new library + package. + +------------------------------------------------------------------- +Fri Feb 14 16:49:26 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.2: + + build system changes: + - Use API version 1.0 instead of bumping it every stable + release (affects .pc and .so filenames). + - Require libmediaart >= 0.1.0, code has been exported from + Tracker to this library. + - Make sure --target-glib used with Vala is the correct GLib. + + libtracker-common: Add TRACKER_TRACKER_PREFIX define for + tracker: ontology prefix. + + libtracker-miner: + - Ensure the decorator nie:DataSource is queried as an IRI. + - Make sure we flush remaining TrackerDecorator SPARQL updates + when finished, avoids loosing extracted data for last files. + - Fix infinite loop TrackerDecorator. + - Fix warning for TrackerFileSystem registering properties + twice (with hash destroy function set to NULL). + - Improve TrackerDecoratorInfo to be a boxed type fixing a + ref-count issue and a requirement for introspection. + - Avoid unnecessary query calls when tracker_decorator_next() + is called consecutively, we now queue queries. + - Various improvements including moving string handling from + GArray to GPtrArray and code duplication in TrackerDecorator. + + tracker-extract: + - Split generic gstreamer/libav extract rules. + - Use fully expanded name for nie:DataSource in decorator to + avoid conflicts with shorthand insert IDs. + + tracker-needle: + - Fixed GTK+ 3.x deprecations. + - Fixed typo in Makefile.am, VALACFLAGS was not being used, + avoids warnings, + + firefox: Added Polish translations for plugin. + + thunderbird: + - Added UI localization support. + - Escape folder names in URIs. + - Port code to make sure it works for Thunderbird 24. + - Add and improve debug messages. + + Bugs fixed: bgo#696099, bgo#723097, bgo#721455. + + Updated translations. +- Add pkgconfig(libmediaart-1.0) BuildRequires: new dependency + after code was split out. + +------------------------------------------------------------------- +Fri Jan 24 20:01:54 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.1: + + New features: + - Passive extraction: Specific metadata extraction (e.g. image + orientation) is done by listening for insert signals for + resource metadata (e.g. file name, size, etc) and done + passively rather than being required before inserting ANY + information about a resource. + - SPARQL functions tracker:normalize() and tracker:unaccent(). + - libav extractor for extracting audio/video metadata. + - tracker-store GraphUpdated signal delay now configurable. + + libtracker-common: + - Added strnlen() compatibility function. + - Fixed unit test for SCHED_IDLE expecting SCHED_OTHER by + default, but jhbuild uses SCHED_IDLE as standard. + + libtracker-fts: Strengthen against SQLite failures. Ensure no + infinite loos in sqlite3_step() and don't use + g_once_init_enter() for init. + + tracker-extract: + - Support Qt5. + - Removed --disable-shutdown command line option now that it is + instantiated by DBus. + - Fixed memory leak with strings processed detected as UTF16. + - msoffice: Fixed memory leak, calling g_free() on wrong + pointer. + - mp3: Fixed memory leak, cases where "" was found in tags were + not always freed. + - gstreamer: Fixed memory leak on error for GstDiscovererInfo + structs. + - gif: Fixed memory leak on error for filename + + Build system fixes. + + Update functional tests. + + Bugs fixed: bgo#699412, bgo#715040, bgo#719512, bgo#720686, + bgo#721880, bgo#722353, bgo#722525, rh#1026283. + + Updated translations. + +------------------------------------------------------------------- +Sun Dec 1 18:15:45 UTC 2013 - dimstar@opensuse.org + +- Update to version 0.17.0: + + tracker-tag: + - Fixed GLib-WARNING **: goption.c:2193: ignoring no-arg. + - Fix --list (-t) to use logical OR, not AND. + + sparql: + - Fix AS ?foo handling in FTS queries. + - Stop using deprecated sqlite count_changes PRAGMA. + + extractors: + - EPUB extractor has been improved, content is now more + complete. + - Added ICU-based encoding detection. + - Improved media metadata in mp3 and gstreamer extractors. + - Detect GNOME screenshots and add these to a category. + + libtracker-sparql-backend: Fix connection singleton mutex + issue. + + libtracker-bus: allow cancellation when iterating cursor. + + libtracker-direct: don't allow connection if current and db + locale mismatch. + + miner-fs: Improvements in indexing of removable media. + + Utils: Added tracker-sandbox. + + Portability fixes. + + Build fixes. + + Updated documentation. + + Updated translations. +- Change TrackerAPI defines to 0.18 and RPMTrackerAPI to 0_18, + following upstream marking the beginning of the 0.18 development + cycle. + ------------------------------------------------------------------- Sat Nov 30 15:30:20 UTC 2013 - dimstar@opensuse.org diff --git a/tracker-extras.spec b/tracker-extras.spec index 3085701..1a0fb60 100644 --- a/tracker-extras.spec +++ b/tracker-extras.spec @@ -1,7 +1,7 @@ # # spec file for package tracker-extras # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 Luis Medinas, Portugal # # All modifications and additions to the file contributed by third parties @@ -45,21 +45,27 @@ # Do not edit this auto generated file! Edit tracker.spec. Name: tracker-extras %define _name tracker -Version: 0.16.4 +Version: 1.0.0 Release: 0 -%define TrackerAPI 0.16 -%define RPMTrackerAPI 0_16 +%define TrackerAPI 1.0 +%define RPMTrackerAPI 1_0 Summary: Powerful object database, tag/metadata database, search tool and indexer License: GPL-2.0+ Group: Productivity/Other Url: http://projects.gnome.org/tracker/ -Source0: http://download.gnome.org/sources/tracker/0.16/%{_name}-%{version}.tar.xz +Source0: http://download.gnome.org/sources/tracker/1.0/%{_name}-%{version}.tar.xz +# Needed for patch0: we need to bootstrap +Source1: autogen.sh Source2: README.SUSE.rss +# PATCH-FIX-UPSTREAM tracker-extract-private.patch bgo#725689 dimstar@opensuse.org -- Do not maintain LT versioning for private libs +Patch0: tracker-extract-private.patch BuildRequires: NetworkManager-devel >= 0.8 BuildRequires: enca-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: glib2-devel >= 2.35.1 +# Needed for patch0 +BuildRequires: gnome-common BuildRequires: gobject-introspection-devel BuildRequires: intltool %if 0%{?suse_version} >= 1130 @@ -79,6 +85,7 @@ BuildRequires: update-desktop-files BuildRequires: vala >= 0.12.0 BuildRequires: zlib-devel BuildRequires: pkgconfig(gee-0.8) +BuildRequires: pkgconfig(libmediaart-1.0) >= 0.1.0 %if !%{build_extras} # Dependencies for extractors / writeback BuildRequires: flac-devel @@ -169,30 +176,30 @@ database, tag/metadata database, search tool and indexer. This package contains a miner to index files and applications. # This package name is not correct as per SLPP, but the 'lib' lives in a -# private folder: the symbol provided is libtracker-common.so.0() (same +# private folder: the symbol provided is libtracker-common.so() (same # name across multiple versions of tracker). # Yet, different libtracker-miner-* packages require their explicit -# version of libtracker-common.so.0 as they link is done using rpath. -%package -n libtracker-common-%{RPMTrackerAPI}-0 +# version of libtracker-common.so as they link is done using rpath. +%package -n libtracker-common-%{RPMTrackerAPI} Summary: Conveniance libraries for Tracker Group: System/Libraries -%description -n libtracker-common-%{RPMTrackerAPI}-0 +%description -n libtracker-common-%{RPMTrackerAPI} Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. This package contains private conveniance libraries for the various tracker libraries. -%package -n libtracker-extract-%{RPMTrackerAPI}-0 -Summary: Extract library for Tracker +%package -n libtracker-control-%{RPMTrackerAPI}-0 +Summary: Control library for Tracker Group: System/Libraries -# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. -Requires: libtracker-common-%{RPMTrackerAPI}-0 +# rpm autodetects libtracker-common.so() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. +Requires: libtracker-common-%{RPMTrackerAPI} Recommends: %{_name} %glib2_gsettings_schema_requires -%description -n libtracker-extract-%{RPMTrackerAPI}-0 +%description -n libtracker-control-%{RPMTrackerAPI}-0 Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. @@ -210,8 +217,8 @@ and search all types of files and other first class objects. %package -n libtracker-miner-%{RPMTrackerAPI}-0 Summary: Miner library for Tracker Group: System/Libraries -# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. -Requires: libtracker-common-%{RPMTrackerAPI}-0 +# rpm autodetects libtracker-common.so() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. +Requires: libtracker-common-%{RPMTrackerAPI} Recommends: %{_name} %description -n libtracker-miner-%{RPMTrackerAPI}-0 @@ -251,11 +258,11 @@ and search all types of files and other first class objects. This package provides the GObject Introspection bindings for the sparql library for Tracker. -%package -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI} -Summary: Extract library for Tracker -- Introspection bindings +%package -n typelib-1_0-TrackerControl-%{RPMTrackerAPI} +Summary: Control library for Tracker -- Introspection bindings Group: System/Libraries -%description -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI} +%description -n typelib-1_0-TrackerControl-%{RPMTrackerAPI} Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. @@ -298,8 +305,8 @@ miner library for Tracker. %package -n libtracker-sparql-%{RPMTrackerAPI}-0 Summary: Sparql library for Tracker Group: System/Libraries -# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. -Requires: libtracker-common-%{RPMTrackerAPI}-0 +# rpm autodetects libtracker-common.so() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. +Requires: libtracker-common-%{RPMTrackerAPI} Recommends: %{_name} %description -n libtracker-sparql-%{RPMTrackerAPI}-0 @@ -320,11 +327,11 @@ and search all types of files and other first class objects. %package -n tracker-devel Summary: Tracker -- Development files Group: Development/Libraries/GNOME -Requires: libtracker-extract-%{RPMTrackerAPI}-0 = %{version} +Requires: libtracker-control-%{RPMTrackerAPI}-0 = %{version} Requires: libtracker-miner-%{RPMTrackerAPI}-0 = %{version} Requires: libtracker-sparql-%{RPMTrackerAPI}-0 = %{version} Requires: typelib-1_0-Tracker-%{RPMTrackerAPI} = %{version} -Requires: typelib-1_0-TrackerExtract-%{RPMTrackerAPI} = %{version} +Requires: typelib-1_0-TrackerControl-%{RPMTrackerAPI} = %{version} Requires: typelib-1_0-TrackerMiner-%{RPMTrackerAPI} = %{version} %description -n tracker-devel @@ -468,10 +475,14 @@ This package contains an nautilus plugin to tag files with Tracker. %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 +cp %{S:1} . translation-update-upstream cp %{S:2} src/miners/rss/README.SUSE %build +# Needed for patch0 +NOCONFIGURE=1 sh ./autogen.sh %configure \ %if !%{build_extras} --enable-libvorbis \ @@ -540,7 +551,7 @@ mkdir -p %{buildroot}%{_datadir}/tracker/icons/ %else ## Extras build: remove files from main, miner-files, devel, lang and lib subpackages -for file in `rpm -ql tracker tracker-devel tracker-miner-files libtracker-extract-%{RPMTrackerAPI}-0 libtracker-miner-%{RPMTrackerAPI}-0 libtracker-sparql-%{RPMTrackerAPI}-0 typelib-1_0-Tracker-%{RPMTrackerAPI} typelib-1_0-TrackerExtract-%{RPMTrackerAPI} typelib-1_0-TrackerMiner-%{RPMTrackerAPI} libtracker-common-%{RPMTrackerAPI}-0`; do +for file in `rpm -ql tracker tracker-devel tracker-miner-files libtracker-control-%{RPMTrackerAPI}-0 libtracker-miner-%{RPMTrackerAPI}-0 libtracker-sparql-%{RPMTrackerAPI}-0 typelib-1_0-Tracker-%{RPMTrackerAPI} typelib-1_0-TrackerControl-%{RPMTrackerAPI} typelib-1_0-TrackerMiner-%{RPMTrackerAPI} libtracker-common-%{RPMTrackerAPI}`; do # do not remove directories (might contain files we want); -f to not fail if # file doesn't exist test ! -d %{buildroot}${file} && rm -f %{buildroot}${file} @@ -578,19 +589,21 @@ rm -rf %{buildroot} %postun %glib2_gsettings_schema_postun +%post -n libtracker-common-%{RPMTrackerAPI} +%glib2_gsettings_schema_post + +%postun -n libtracker-common-%{RPMTrackerAPI} +%glib2_gsettings_schema_postun + %post -n %{_name}-miner-files %glib2_gsettings_schema_post %postun -n %{_name}-miner-files %glib2_gsettings_schema_postun -%post -n libtracker-extract-%{RPMTrackerAPI}-0 -%glib2_gsettings_schema_post -/sbin/ldconfig +%post -n libtracker-control-%{RPMTrackerAPI}-0 -p /sbin/ldconfig -%postun -n libtracker-extract-%{RPMTrackerAPI}-0 -%glib2_gsettings_schema_postun -/sbin/ldconfig +%postun -n libtracker-control-%{RPMTrackerAPI}-0 -p /sbin/ldconfig %post -n libtracker-miner-%{RPMTrackerAPI}-0 -p /sbin/ldconfig @@ -645,7 +658,7 @@ rm -rf %{buildroot} %{_libdir}/tracker-%{TrackerAPI}/extract-modules/ %{_libdir}/tracker-%{TrackerAPI}/writeback-modules/ %{_datadir}/tracker/ -%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Extract.service +%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Extract.service %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Writeback.service %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.service %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.DB.gschema.xml @@ -664,6 +677,7 @@ rm -rf %{buildroot} %{_mandir}/man1/tracker-store.1%{ext_man} %{_mandir}/man1/tracker-tag.1%{ext_man} %{_mandir}/man1/tracker-writeback.1%{ext_man} +%{_sysconfdir}/xdg/autostart/tracker-extract.desktop # Exclude files which live in other packages %exclude %{_datadir}/tracker/miners/tracker-miner-applications.desktop %if %{build_evo} @@ -689,16 +703,17 @@ rm -rf %{buildroot} %{_datadir}/tracker/miners/tracker-miner-files.desktop %{_mandir}/man1/tracker-miner-fs.1%{ext_man} -%files -n libtracker-common-%{RPMTrackerAPI}-0 +%files -n libtracker-common-%{RPMTrackerAPI} %defattr(-,root,root) -%{_libdir}/tracker-%{TrackerAPI}/libtracker-common.so.* -%{_libdir}/tracker-%{TrackerAPI}/libtracker-data.so.* - -%files -n libtracker-extract-%{RPMTrackerAPI}-0 -%defattr(-,root,root) -%{_libdir}/libtracker-extract*.so.* +%{_libdir}/tracker-%{TrackerAPI}/libtracker-common.so +%{_libdir}/tracker-%{TrackerAPI}/libtracker-data.so +%{_libdir}/tracker-%{TrackerAPI}/libtracker-extract*.so %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml +%files -n libtracker-control-%{RPMTrackerAPI}-0 +%defattr(-,root,root) +%{_libdir}/libtracker-control*.so.* + %files -n libtracker-miner-%{RPMTrackerAPI}-0 %defattr(-,root,root) %{_libdir}/libtracker-miner*.so.* @@ -711,9 +726,9 @@ rm -rf %{buildroot} %defattr(-,root,root) %{_libdir}/girepository-1.0/Tracker-%{TrackerAPI}.typelib -%files -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI} +%files -n typelib-1_0-TrackerControl-%{RPMTrackerAPI} %defattr(-,root,root) -%{_libdir}/girepository-1.0/TrackerExtract-%{TrackerAPI}.typelib +%{_libdir}/girepository-1.0/TrackerControl-%{TrackerAPI}.typelib %files -n typelib-1_0-TrackerMiner-%{RPMTrackerAPI} %defattr(-,root,root) @@ -723,14 +738,12 @@ rm -rf %{buildroot} %defattr(-,root,root) %{_libdir}/lib*.so %{_includedir}/tracker-%{TrackerAPI}/ -%{_libdir}/tracker-%{TrackerAPI}/libtracker-common.so -%{_libdir}/tracker-%{TrackerAPI}/libtracker-data.so -%{_libdir}/pkgconfig/tracker-extract-%{TrackerAPI}.pc +%{_libdir}/pkgconfig/tracker-control-%{TrackerAPI}.pc %{_libdir}/pkgconfig/tracker-miner-%{TrackerAPI}.pc %{_libdir}/pkgconfig/tracker-sparql-%{TrackerAPI}.pc %{_datadir}/gir-1.0/*.gir %{_datadir}/gtk-doc/html/libtracker-miner/ -%{_datadir}/gtk-doc/html/libtracker-extract/ +%{_datadir}/gtk-doc/html/libtracker-control/ %{_datadir}/gtk-doc/html/libtracker-sparql/ %dir %{_datadir}/vala %dir %{_datadir}/vala/vapi diff --git a/tracker.changes b/tracker.changes index f2bbdc6..cafef43 100644 --- a/tracker.changes +++ b/tracker.changes @@ -1,3 +1,274 @@ +------------------------------------------------------------------- +Mon Mar 24 19:01:47 UTC 2014 - zaitor@opensuse.org + +- Update to version 1.0.0: + + Make decorator errors public. + + libtracker-sparql: Make sure we check the env before choosing + the bus type. + + Updated translations. + +------------------------------------------------------------------- +Sat Mar 22 18:17:22 UTC 2014 - zaitor@opensuse.org + +- Update to version 0.17.8: + + Fixes: bgo#705315 tracker-0.16.2: configure wrongly mixes + checks for enable-compile-warning while using + WITH-compile-warnings. + + Fixes: bgo#726419 tracker-extract reports sparql update errors + for jpeg with dc:indenfitier. + + Fixes: bgo#675198, tracker-store man page description needs + minor cleanup. + + Updated translations. + +------------------------------------------------------------------- +Wed Mar 19 16:10:22 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.7: + + libtracker-sparql: Fix undefined reference to symbol + 'tracker_ipc_bus'. + + Updated translations. + +------------------------------------------------------------------- +Wed Mar 19 09:18:51 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.6: + + Make GBusType run-time configurable with TRACKER_BUS_TYPE + environment variable. + + Removed dead code from coverity report. + + libtracker-fts: Fix memory leak for GList on property names + during FTS init. + + libtracker-data: + - getting FTS multivalued properties used unintialised variable + in ontology_get_fts_properties(). + - Protect potential NULL dereference in _db_cursor_iter_next(). + + libtracker-{common,data,extract}: do not maintain LT + versioning. + + libtracker-miner: + - Do not leak the TrackerSparqlConnection in + TrackerFileNotifier. + - Don't print uninitalised sparql variable for update_array_cb. + - Dispose GFileInfo objects ASAP when crawling (attempt to + reduce memory footprint). + + libtracker-extract: + - Lookup rules after initializing in get_fallback_rdf_types() + to avoid empty rules lists. + - Fix memory leak on .rule file load errors. + - Fix memory leak and unref rdf_types hash table in + _module_manager_get_fallback_rdf_types(). + + tracker-store: Remove the --low-memory option in the man pages, + not used since 0.9.x. + + tracker-miner-fs: Fix memory leaks + + tracker-extract: + - Removed support for libstreamanalyzer, xine and totem + extractors, not been used or supported in a long time. + - Removed support for obsolete GStreamer backends tagreadbin, + decodebin2 in gstreamer extractor. + - Don't report < 0 nfo:width for images with GStreamer + discoverer. + - Remove the need for fork() and sub-processes with PDF + extraction, no longer needed. + - Make logging clearer if we fail on no modules or no metadata. + - Fixed epub extractor so it doesn't use a broken ontology. + - Improve logging, too many g_debug() calls to other log + levels. + - set nfo:Video on the gstreamer guess rule for completeness. + - Add desktop file to autostart process. + - Make it clearer where MIME type came from in debug (from + GIO/xdgmime or tracker-miner-fs). + + tracker-sparql: Support listing properties with --tree and make + --search case insensitive. + + tracker-sandbox: Set the locale properly so queries don't fail + due to locale mismatch to DB. + + Build fixes. + + Bugs fixed: bgo#726421, bgo#726639, bgo#726640, bgo#725689, + bgo#726552, bgo#726553, bgo#725607, bgo#725890. + + Updated translations. +- Rebase tracker-extract-private.patch: Upstream decided to 'fix' + it as .so.0.0.0, which is not what we consider the right thing + for this kind of private library). + +------------------------------------------------------------------- +Tue Mar 4 21:10:41 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.5: + + Build fixes. + + libtracker-miner: Code fixes. + + libtracker-extract: Don't break compilation due to missing + rules/modules dir. + + tracker-extract: + - Don't leak FD on tiff extractor when opening file. + - set nfo:Document in FallbackRdfTypes for text documents. + + racker-miner-fs: Fix documentation for 'low-disk-space-limit', + was in MB not %. + + Updated functional tests. + + Updated translations. +- Add tracker-extract-private.patch: do not maintain LT versioning + on the now private library libtracker-{common,data,extract}. +- Add gnome-common BuildRequires and call to autogen.sh, as above + patch touches the build system. +- Add autogen.sh as source in order to use the upstream provided + bootstrap script (not part of the tarball). +- Rename libtracker-common-1_0-0 subpackage to + libtracker-common-1_0: the private libraries are no longer LT + versioned. +- Drop libtracker-extract-1_0-0 and typelib-1_0-TrackerExtract-1-0 + subpackages and the respective Requires to the same from the + -devel package. Package libtracker-extract and the corresponding + glib schema with the other private libraries in + libtracker-common-1_0. +- Add post/postun scriptlets for schema handling to + libtracker-common-1_0. + +------------------------------------------------------------------- +Sat Feb 22 22:20:41 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.4: + + rss: compile fix with the RSS miner enabled. + + Updated translations. + +------------------------------------------------------------------- +Fri Feb 21 19:44:22 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.3: + + tracker-extract: Prioritization of rdf:types has been + implemented, so certain file types are extracted before others, + on demand of applications. + + libtracker-extract: This library has been made private. + Implementing a TrackerDecorator is the recommended way to + provide additional data. + + libtracker-miner: Major API cleanups, + - TrackerMinerWeb has been removed, replaced by + TrackerMinerOnline. + - TrackerMinerManager has been splitted into a separate + libtracker-control. + - TrackerCrawler, TrackerStorage and the thumbnailer/mediaart + helper functions are no longer public. + + libtracker-control: New library, containing + TrackerMinerManager, it requires using tracker-control-1.0.pc. + + tracker-miner-fs: optional prioritization of folders has been + reimplemented, used on removable volumes and DBus requests. + + tests: GTester Makefile rules have been updated. + + utils: tracker-sparql gained a --tree switch to print (partial) + ontology trees, and longhands/shorthands for + classes/properties. +- Create new subpackages libtracker-control-1_0-0 and + typelib-1_0-TrackerControl-1_0: following upstream. +- Adjust -devel package requirements to the dropped and new library + package. + +------------------------------------------------------------------- +Fri Feb 14 16:49:26 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.2: + + build system changes: + - Use API version 1.0 instead of bumping it every stable + release (affects .pc and .so filenames). + - Require libmediaart >= 0.1.0, code has been exported from + Tracker to this library. + - Make sure --target-glib used with Vala is the correct GLib. + + libtracker-common: Add TRACKER_TRACKER_PREFIX define for + tracker: ontology prefix. + + libtracker-miner: + - Ensure the decorator nie:DataSource is queried as an IRI. + - Make sure we flush remaining TrackerDecorator SPARQL updates + when finished, avoids loosing extracted data for last files. + - Fix infinite loop TrackerDecorator. + - Fix warning for TrackerFileSystem registering properties + twice (with hash destroy function set to NULL). + - Improve TrackerDecoratorInfo to be a boxed type fixing a + ref-count issue and a requirement for introspection. + - Avoid unnecessary query calls when tracker_decorator_next() + is called consecutively, we now queue queries. + - Various improvements including moving string handling from + GArray to GPtrArray and code duplication in TrackerDecorator. + + tracker-extract: + - Split generic gstreamer/libav extract rules. + - Use fully expanded name for nie:DataSource in decorator to + avoid conflicts with shorthand insert IDs. + + tracker-needle: + - Fixed GTK+ 3.x deprecations. + - Fixed typo in Makefile.am, VALACFLAGS was not being used, + avoids warnings, + + firefox: Added Polish translations for plugin. + + thunderbird: + - Added UI localization support. + - Escape folder names in URIs. + - Port code to make sure it works for Thunderbird 24. + - Add and improve debug messages. + + Bugs fixed: bgo#696099, bgo#723097, bgo#721455. + + Updated translations. +- Add pkgconfig(libmediaart-1.0) BuildRequires: new dependency + after code was split out. + +------------------------------------------------------------------- +Fri Jan 24 20:01:54 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.17.1: + + New features: + - Passive extraction: Specific metadata extraction (e.g. image + orientation) is done by listening for insert signals for + resource metadata (e.g. file name, size, etc) and done + passively rather than being required before inserting ANY + information about a resource. + - SPARQL functions tracker:normalize() and tracker:unaccent(). + - libav extractor for extracting audio/video metadata. + - tracker-store GraphUpdated signal delay now configurable. + + libtracker-common: + - Added strnlen() compatibility function. + - Fixed unit test for SCHED_IDLE expecting SCHED_OTHER by + default, but jhbuild uses SCHED_IDLE as standard. + + libtracker-fts: Strengthen against SQLite failures. Ensure no + infinite loos in sqlite3_step() and don't use + g_once_init_enter() for init. + + tracker-extract: + - Support Qt5. + - Removed --disable-shutdown command line option now that it is + instantiated by DBus. + - Fixed memory leak with strings processed detected as UTF16. + - msoffice: Fixed memory leak, calling g_free() on wrong + pointer. + - mp3: Fixed memory leak, cases where "" was found in tags were + not always freed. + - gstreamer: Fixed memory leak on error for GstDiscovererInfo + structs. + - gif: Fixed memory leak on error for filename + + Build system fixes. + + Update functional tests. + + Bugs fixed: bgo#699412, bgo#715040, bgo#719512, bgo#720686, + bgo#721880, bgo#722353, bgo#722525, rh#1026283. + + Updated translations. + +------------------------------------------------------------------- +Sun Dec 1 18:15:45 UTC 2013 - dimstar@opensuse.org + +- Update to version 0.17.0: + + tracker-tag: + - Fixed GLib-WARNING **: goption.c:2193: ignoring no-arg. + - Fix --list (-t) to use logical OR, not AND. + + sparql: + - Fix AS ?foo handling in FTS queries. + - Stop using deprecated sqlite count_changes PRAGMA. + + extractors: + - EPUB extractor has been improved, content is now more + complete. + - Added ICU-based encoding detection. + - Improved media metadata in mp3 and gstreamer extractors. + - Detect GNOME screenshots and add these to a category. + + libtracker-sparql-backend: Fix connection singleton mutex + issue. + + libtracker-bus: allow cancellation when iterating cursor. + + libtracker-direct: don't allow connection if current and db + locale mismatch. + + miner-fs: Improvements in indexing of removable media. + + Utils: Added tracker-sandbox. + + Portability fixes. + + Build fixes. + + Updated documentation. + + Updated translations. +- Change TrackerAPI defines to 0.18 and RPMTrackerAPI to 0_18, + following upstream marking the beginning of the 0.18 development + cycle. + ------------------------------------------------------------------- Sat Nov 30 15:30:20 UTC 2013 - dimstar@opensuse.org diff --git a/tracker.spec b/tracker.spec index d425b54..bb72215 100644 --- a/tracker.spec +++ b/tracker.spec @@ -1,7 +1,7 @@ # # spec file for package tracker # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 Luis Medinas, Portugal # # All modifications and additions to the file contributed by third parties @@ -44,21 +44,27 @@ Name: tracker %define _name tracker -Version: 0.16.4 +Version: 1.0.0 Release: 0 -%define TrackerAPI 0.16 -%define RPMTrackerAPI 0_16 +%define TrackerAPI 1.0 +%define RPMTrackerAPI 1_0 Summary: Powerful object database, tag/metadata database, search tool and indexer License: GPL-2.0+ Group: Productivity/Other Url: http://projects.gnome.org/tracker/ -Source0: http://download.gnome.org/sources/tracker/0.16/%{_name}-%{version}.tar.xz +Source0: http://download.gnome.org/sources/tracker/1.0/%{_name}-%{version}.tar.xz +# Needed for patch0: we need to bootstrap +Source1: autogen.sh Source2: README.SUSE.rss +# PATCH-FIX-UPSTREAM tracker-extract-private.patch bgo#725689 dimstar@opensuse.org -- Do not maintain LT versioning for private libs +Patch0: tracker-extract-private.patch BuildRequires: NetworkManager-devel >= 0.8 BuildRequires: enca-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: glib2-devel >= 2.35.1 +# Needed for patch0 +BuildRequires: gnome-common BuildRequires: gobject-introspection-devel BuildRequires: intltool %if 0%{?suse_version} >= 1130 @@ -78,6 +84,7 @@ BuildRequires: update-desktop-files BuildRequires: vala >= 0.12.0 BuildRequires: zlib-devel BuildRequires: pkgconfig(gee-0.8) +BuildRequires: pkgconfig(libmediaart-1.0) >= 0.1.0 %if !%{build_extras} # Dependencies for extractors / writeback BuildRequires: flac-devel @@ -168,30 +175,30 @@ database, tag/metadata database, search tool and indexer. This package contains a miner to index files and applications. # This package name is not correct as per SLPP, but the 'lib' lives in a -# private folder: the symbol provided is libtracker-common.so.0() (same +# private folder: the symbol provided is libtracker-common.so() (same # name across multiple versions of tracker). # Yet, different libtracker-miner-* packages require their explicit -# version of libtracker-common.so.0 as they link is done using rpath. -%package -n libtracker-common-%{RPMTrackerAPI}-0 +# version of libtracker-common.so as they link is done using rpath. +%package -n libtracker-common-%{RPMTrackerAPI} Summary: Conveniance libraries for Tracker Group: System/Libraries -%description -n libtracker-common-%{RPMTrackerAPI}-0 +%description -n libtracker-common-%{RPMTrackerAPI} Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. This package contains private conveniance libraries for the various tracker libraries. -%package -n libtracker-extract-%{RPMTrackerAPI}-0 -Summary: Extract library for Tracker +%package -n libtracker-control-%{RPMTrackerAPI}-0 +Summary: Control library for Tracker Group: System/Libraries -# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. -Requires: libtracker-common-%{RPMTrackerAPI}-0 +# rpm autodetects libtracker-common.so() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. +Requires: libtracker-common-%{RPMTrackerAPI} Recommends: %{_name} %glib2_gsettings_schema_requires -%description -n libtracker-extract-%{RPMTrackerAPI}-0 +%description -n libtracker-control-%{RPMTrackerAPI}-0 Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. @@ -209,8 +216,8 @@ and search all types of files and other first class objects. %package -n libtracker-miner-%{RPMTrackerAPI}-0 Summary: Miner library for Tracker Group: System/Libraries -# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. -Requires: libtracker-common-%{RPMTrackerAPI}-0 +# rpm autodetects libtracker-common.so() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. +Requires: libtracker-common-%{RPMTrackerAPI} Recommends: %{_name} %description -n libtracker-miner-%{RPMTrackerAPI}-0 @@ -250,11 +257,11 @@ and search all types of files and other first class objects. This package provides the GObject Introspection bindings for the sparql library for Tracker. -%package -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI} -Summary: Extract library for Tracker -- Introspection bindings +%package -n typelib-1_0-TrackerControl-%{RPMTrackerAPI} +Summary: Control library for Tracker -- Introspection bindings Group: System/Libraries -%description -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI} +%description -n typelib-1_0-TrackerControl-%{RPMTrackerAPI} Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. @@ -297,8 +304,8 @@ miner library for Tracker. %package -n libtracker-sparql-%{RPMTrackerAPI}-0 Summary: Sparql library for Tracker Group: System/Libraries -# rpm autodetects libtracker-common.so.0() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. -Requires: libtracker-common-%{RPMTrackerAPI}-0 +# rpm autodetects libtracker-common.so() symbol, which is provided by all versions of libtracker-common, so we need to help with an explicit Requires. +Requires: libtracker-common-%{RPMTrackerAPI} Recommends: %{_name} %description -n libtracker-sparql-%{RPMTrackerAPI}-0 @@ -319,11 +326,11 @@ and search all types of files and other first class objects. %package -n tracker-devel Summary: Tracker -- Development files Group: Development/Libraries/GNOME -Requires: libtracker-extract-%{RPMTrackerAPI}-0 = %{version} +Requires: libtracker-control-%{RPMTrackerAPI}-0 = %{version} Requires: libtracker-miner-%{RPMTrackerAPI}-0 = %{version} Requires: libtracker-sparql-%{RPMTrackerAPI}-0 = %{version} Requires: typelib-1_0-Tracker-%{RPMTrackerAPI} = %{version} -Requires: typelib-1_0-TrackerExtract-%{RPMTrackerAPI} = %{version} +Requires: typelib-1_0-TrackerControl-%{RPMTrackerAPI} = %{version} Requires: typelib-1_0-TrackerMiner-%{RPMTrackerAPI} = %{version} %description -n tracker-devel @@ -467,10 +474,14 @@ This package contains an nautilus plugin to tag files with Tracker. %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 +cp %{S:1} . translation-update-upstream cp %{S:2} src/miners/rss/README.SUSE %build +# Needed for patch0 +NOCONFIGURE=1 sh ./autogen.sh %configure \ %if !%{build_extras} --enable-libvorbis \ @@ -539,7 +550,7 @@ mkdir -p %{buildroot}%{_datadir}/tracker/icons/ %else ## Extras build: remove files from main, miner-files, devel, lang and lib subpackages -for file in `rpm -ql tracker tracker-devel tracker-miner-files libtracker-extract-%{RPMTrackerAPI}-0 libtracker-miner-%{RPMTrackerAPI}-0 libtracker-sparql-%{RPMTrackerAPI}-0 typelib-1_0-Tracker-%{RPMTrackerAPI} typelib-1_0-TrackerExtract-%{RPMTrackerAPI} typelib-1_0-TrackerMiner-%{RPMTrackerAPI} libtracker-common-%{RPMTrackerAPI}-0`; do +for file in `rpm -ql tracker tracker-devel tracker-miner-files libtracker-control-%{RPMTrackerAPI}-0 libtracker-miner-%{RPMTrackerAPI}-0 libtracker-sparql-%{RPMTrackerAPI}-0 typelib-1_0-Tracker-%{RPMTrackerAPI} typelib-1_0-TrackerControl-%{RPMTrackerAPI} typelib-1_0-TrackerMiner-%{RPMTrackerAPI} libtracker-common-%{RPMTrackerAPI}`; do # do not remove directories (might contain files we want); -f to not fail if # file doesn't exist test ! -d %{buildroot}${file} && rm -f %{buildroot}${file} @@ -577,19 +588,21 @@ rm -rf %{buildroot} %postun %glib2_gsettings_schema_postun +%post -n libtracker-common-%{RPMTrackerAPI} +%glib2_gsettings_schema_post + +%postun -n libtracker-common-%{RPMTrackerAPI} +%glib2_gsettings_schema_postun + %post -n %{_name}-miner-files %glib2_gsettings_schema_post %postun -n %{_name}-miner-files %glib2_gsettings_schema_postun -%post -n libtracker-extract-%{RPMTrackerAPI}-0 -%glib2_gsettings_schema_post -/sbin/ldconfig +%post -n libtracker-control-%{RPMTrackerAPI}-0 -p /sbin/ldconfig -%postun -n libtracker-extract-%{RPMTrackerAPI}-0 -%glib2_gsettings_schema_postun -/sbin/ldconfig +%postun -n libtracker-control-%{RPMTrackerAPI}-0 -p /sbin/ldconfig %post -n libtracker-miner-%{RPMTrackerAPI}-0 -p /sbin/ldconfig @@ -644,7 +657,7 @@ rm -rf %{buildroot} %{_libdir}/tracker-%{TrackerAPI}/extract-modules/ %{_libdir}/tracker-%{TrackerAPI}/writeback-modules/ %{_datadir}/tracker/ -%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Extract.service +%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Extract.service %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Writeback.service %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.service %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.DB.gschema.xml @@ -663,6 +676,7 @@ rm -rf %{buildroot} %{_mandir}/man1/tracker-store.1%{ext_man} %{_mandir}/man1/tracker-tag.1%{ext_man} %{_mandir}/man1/tracker-writeback.1%{ext_man} +%{_sysconfdir}/xdg/autostart/tracker-extract.desktop # Exclude files which live in other packages %exclude %{_datadir}/tracker/miners/tracker-miner-applications.desktop %if %{build_evo} @@ -688,16 +702,17 @@ rm -rf %{buildroot} %{_datadir}/tracker/miners/tracker-miner-files.desktop %{_mandir}/man1/tracker-miner-fs.1%{ext_man} -%files -n libtracker-common-%{RPMTrackerAPI}-0 +%files -n libtracker-common-%{RPMTrackerAPI} %defattr(-,root,root) -%{_libdir}/tracker-%{TrackerAPI}/libtracker-common.so.* -%{_libdir}/tracker-%{TrackerAPI}/libtracker-data.so.* - -%files -n libtracker-extract-%{RPMTrackerAPI}-0 -%defattr(-,root,root) -%{_libdir}/libtracker-extract*.so.* +%{_libdir}/tracker-%{TrackerAPI}/libtracker-common.so +%{_libdir}/tracker-%{TrackerAPI}/libtracker-data.so +%{_libdir}/tracker-%{TrackerAPI}/libtracker-extract*.so %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml +%files -n libtracker-control-%{RPMTrackerAPI}-0 +%defattr(-,root,root) +%{_libdir}/libtracker-control*.so.* + %files -n libtracker-miner-%{RPMTrackerAPI}-0 %defattr(-,root,root) %{_libdir}/libtracker-miner*.so.* @@ -710,9 +725,9 @@ rm -rf %{buildroot} %defattr(-,root,root) %{_libdir}/girepository-1.0/Tracker-%{TrackerAPI}.typelib -%files -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI} +%files -n typelib-1_0-TrackerControl-%{RPMTrackerAPI} %defattr(-,root,root) -%{_libdir}/girepository-1.0/TrackerExtract-%{TrackerAPI}.typelib +%{_libdir}/girepository-1.0/TrackerControl-%{TrackerAPI}.typelib %files -n typelib-1_0-TrackerMiner-%{RPMTrackerAPI} %defattr(-,root,root) @@ -722,14 +737,12 @@ rm -rf %{buildroot} %defattr(-,root,root) %{_libdir}/lib*.so %{_includedir}/tracker-%{TrackerAPI}/ -%{_libdir}/tracker-%{TrackerAPI}/libtracker-common.so -%{_libdir}/tracker-%{TrackerAPI}/libtracker-data.so -%{_libdir}/pkgconfig/tracker-extract-%{TrackerAPI}.pc +%{_libdir}/pkgconfig/tracker-control-%{TrackerAPI}.pc %{_libdir}/pkgconfig/tracker-miner-%{TrackerAPI}.pc %{_libdir}/pkgconfig/tracker-sparql-%{TrackerAPI}.pc %{_datadir}/gir-1.0/*.gir %{_datadir}/gtk-doc/html/libtracker-miner/ -%{_datadir}/gtk-doc/html/libtracker-extract/ +%{_datadir}/gtk-doc/html/libtracker-control/ %{_datadir}/gtk-doc/html/libtracker-sparql/ %dir %{_datadir}/vala %dir %{_datadir}/vala/vapi