From 17ea091a2fbb356f42c994ed99ae207d6bcb5f39 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 01 2017 03:45:48 +0000 Subject: import tracker-1.10.5-4.el7 --- diff --git a/.gitignore b/.gitignore index f677a83..939f546 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/tracker-1.2.7.tar.xz +SOURCES/tracker-1.10.5.tar.xz diff --git a/.tracker.metadata b/.tracker.metadata index 9cbd43c..c3b9dde 100644 --- a/.tracker.metadata +++ b/.tracker.metadata @@ -1 +1 @@ -f88cedafca451054d1e83e3a3018b69a35205364 SOURCES/tracker-1.2.7.tar.xz +244b0ec43714ea935242c707417c2b2442d77a85 SOURCES/tracker-1.10.5.tar.xz diff --git a/SOURCES/0001-Only-autostart-in-GNOME-771601.patch b/SOURCES/0001-Only-autostart-in-GNOME-771601.patch new file mode 100644 index 0000000..7d83de0 --- /dev/null +++ b/SOURCES/0001-Only-autostart-in-GNOME-771601.patch @@ -0,0 +1,54 @@ +From 5b4d18d3f8b69773be59ccc45bd09e5fa84d5f1b Mon Sep 17 00:00:00 2001 +From: David King +Date: Fri, 28 Nov 2014 14:21:37 +0000 +Subject: [PATCH] Only autostart in GNOME (#771601) + +https://bugzilla.redhat.com/show_bug.cgi?id=771601 +--- + src/miners/fs/tracker-miner-fs.desktop.in.in | 2 +- + src/miners/rss/tracker-miner-rss.desktop.in.in | 2 +- + src/tracker-store/tracker-store.desktop.in.in | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/miners/fs/tracker-miner-fs.desktop.in.in b/src/miners/fs/tracker-miner-fs.desktop.in.in +index a1620f6..75dba52 100644 +--- a/src/miners/fs/tracker-miner-fs.desktop.in.in ++++ b/src/miners/fs/tracker-miner-fs.desktop.in.in +@@ -12,7 +12,7 @@ X-KDE-autostart-after=panel + X-KDE-StartupNotify=false + X-KDE-UniqueApplet=true + NoDisplay=true +-OnlyShowIn=GNOME;KDE;XFCE;X-MEEGO-HS;X-MEEGO-NB;X-IVI;Unity; ++OnlyShowIn=GNOME; + X-GNOME-Bugzilla-Bugzilla=GNOME + X-GNOME-Bugzilla-Product=tracker + X-GNOME-Bugzilla-Component=Miners +diff --git a/src/miners/rss/tracker-miner-rss.desktop.in.in b/src/miners/rss/tracker-miner-rss.desktop.in.in +index 49be401..505aec7 100644 +--- a/src/miners/rss/tracker-miner-rss.desktop.in.in ++++ b/src/miners/rss/tracker-miner-rss.desktop.in.in +@@ -11,7 +11,7 @@ X-KDE-autostart-after=panel + X-KDE-StartupNotify=false + X-KDE-UniqueApplet=true + NoDisplay=true +-OnlyShowIn=GNOME;KDE;XFCE;Unity; ++OnlyShowIn=GNOME; + X-GNOME-Bugzilla-Bugzilla=GNOME + X-GNOME-Bugzilla-Product=tracker + X-GNOME-Bugzilla-Component=Miners +diff --git a/src/tracker-store/tracker-store.desktop.in.in b/src/tracker-store/tracker-store.desktop.in.in +index 78e855d..aff4c16 100644 +--- a/src/tracker-store/tracker-store.desktop.in.in ++++ b/src/tracker-store/tracker-store.desktop.in.in +@@ -11,7 +11,7 @@ X-KDE-autostart-after=panel + X-KDE-StartupNotify=false + X-KDE-UniqueApplet=true + NoDisplay=true +-OnlyShowIn=GNOME;KDE;XFCE;X-MEEGO-HS;X-MEEGO-NB;X-IVI;Unity; ++OnlyShowIn=GNOME; + X-GNOME-Bugzilla-Bugzilla=GNOME + X-GNOME-Bugzilla-Product=tracker + X-GNOME-Bugzilla-Component=Store +-- +2.1.0 + diff --git a/SOURCES/0001-Revert-functions-tracker-Fix-collate-order.patch b/SOURCES/0001-Revert-functions-tracker-Fix-collate-order.patch deleted file mode 100644 index d10976e..0000000 --- a/SOURCES/0001-Revert-functions-tracker-Fix-collate-order.patch +++ /dev/null @@ -1,36 +0,0 @@ -From e0159ada2697b3006a4e0aa0145bbc9db7c33936 Mon Sep 17 00:00:00 2001 -From: Debarshi Ray -Date: Mon, 27 Jun 2016 13:43:35 +0200 -Subject: [PATCH] Revert "functions-tracker: Fix collate order" - -This reverts commit 38764ae59415868bbe0acad1c923cde20f2879fa. ---- - tests/libtracker-data/functions/functions-tracker-1.out | 2 +- - tests/libtracker-data/functions/functions-tracker-2.out | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/libtracker-data/functions/functions-tracker-1.out b/tests/libtracker-data/functions/functions-tracker-1.out -index 8fc886dca89a..d8c248445257 100644 ---- a/tests/libtracker-data/functions/functions-tracker-1.out -+++ b/tests/libtracker-data/functions/functions-tracker-1.out -@@ -1,7 +1,7 @@ -+"Text" - "default" - "optional" - "optional for third" - "other" - "purposes" - "testing" --"Text" -diff --git a/tests/libtracker-data/functions/functions-tracker-2.out b/tests/libtracker-data/functions/functions-tracker-2.out -index 80bddb590486..9045c233789d 100644 ---- a/tests/libtracker-data/functions/functions-tracker-2.out -+++ b/tests/libtracker-data/functions/functions-tracker-2.out -@@ -1,3 +1,3 @@ --"title of a film" - "Title X" - "UnitTesting" -+"title of a film" --- -2.5.5 - diff --git a/SOURCES/0001-add-osinfo-to-trackernamespace.patch b/SOURCES/0001-add-osinfo-to-trackernamespace.patch new file mode 100644 index 0000000..63d6121 --- /dev/null +++ b/SOURCES/0001-add-osinfo-to-trackernamespace.patch @@ -0,0 +1,41 @@ +From 40824c2d6fed7435da2d79d3b4260f97e781748f Mon Sep 17 00:00:00 2001 +From: Carlos Garnacho +Date: Mon, 3 Apr 2017 15:15:41 +0200 +Subject: libtracker-sparql: Add osinfo ontology to the default + TrackerNamespace + +Otherwise namespace lookups will come out NULL. + +https://bugzilla.gnome.org/show_bug.cgi?id=780968 +--- + src/libtracker-sparql/tracker-namespace-manager.c | 1 + + src/libtracker-sparql/tracker-ontologies.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/libtracker-sparql/tracker-namespace-manager.c b/src/libtracker-sparql/tracker-namespace-manager.c +index 21a5a48..d287c39 100644 +--- a/src/libtracker-sparql/tracker-namespace-manager.c ++++ b/src/libtracker-sparql/tracker-namespace-manager.c +@@ -152,6 +152,7 @@ tracker_namespace_manager_get_default () + tracker_namespace_manager_add_prefix (manager, "nmm", TRACKER_PREFIX_NMM); + tracker_namespace_manager_add_prefix (manager, "mlo", TRACKER_PREFIX_MLO); + tracker_namespace_manager_add_prefix (manager, "mfo", TRACKER_PREFIX_MFO); ++ tracker_namespace_manager_add_prefix (manager, "osinfo", TRACKER_PREFIX_OSINFO); + + g_once_init_leave (&default_namespace_manager__volatile, manager); + } +diff --git a/src/libtracker-sparql/tracker-ontologies.h b/src/libtracker-sparql/tracker-ontologies.h +index 124ffd8..24e1efe 100644 +--- a/src/libtracker-sparql/tracker-ontologies.h ++++ b/src/libtracker-sparql/tracker-ontologies.h +@@ -42,6 +42,7 @@ G_BEGIN_DECLS + #define TRACKER_PREFIX_NAO "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#" + #define TRACKER_PREFIX_NID3 "http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#" + #define TRACKER_PREFIX_NFO "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#" ++#define TRACKER_PREFIX_OSINFO "http://www.tracker-project.org/ontologies/osinfo#" + + /* Temporary */ + #define TRACKER_PREFIX_SLO "http://www.tracker-project.org/temp/slo#" +-- +cgit v0.12 + diff --git a/SOURCES/0001-libtracker-common-whitelist-openat.patch b/SOURCES/0001-libtracker-common-whitelist-openat.patch new file mode 100644 index 0000000..2abfad5 --- /dev/null +++ b/SOURCES/0001-libtracker-common-whitelist-openat.patch @@ -0,0 +1,27 @@ +From f2a784e2fc28b169b2c70ed9dd72d9aaa9dec68a Mon Sep 17 00:00:00 2001 +From: Felipe Borges +Date: Tue, 9 May 2017 15:17:27 +0200 +Subject: [PATCH] libtracker-common: Whitelist openat() + +tracker-extract-iso depends on libosinfo, which needs the +openat system call. +--- + src/libtracker-common/tracker-seccomp.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/libtracker-common/tracker-seccomp.c b/src/libtracker-common/tracker-seccomp.c +index 1af380c93..e02dc2fd9 100644 +--- a/src/libtracker-common/tracker-seccomp.c ++++ b/src/libtracker-common/tracker-seccomp.c +@@ -159,6 +159,8 @@ tracker_seccomp_init (void) + ALLOW_RULE (getsockname); + ALLOW_RULE (getpeername); + ALLOW_RULE (shutdown); ++ /* Needed by libosinfo (tracker-extract-iso) */ ++ ALLOW_RULE (openat); + + /* Special requirements for socket/socketpair, only on AF_UNIX/AF_LOCAL */ + if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(socket), 1, +-- +2.12.2 + diff --git a/SOURCES/0001-libtracker-fts-Retain-compat-with-sqlite-3.7.x-by-no.patch b/SOURCES/0001-libtracker-fts-Retain-compat-with-sqlite-3.7.x-by-no.patch new file mode 100644 index 0000000..c5059f6 --- /dev/null +++ b/SOURCES/0001-libtracker-fts-Retain-compat-with-sqlite-3.7.x-by-no.patch @@ -0,0 +1,45 @@ +From c8aaeabc221d2f91b9e96d4a33be7dce0eba9769 Mon Sep 17 00:00:00 2001 +From: Carlos Garnacho +Date: Thu, 8 Jun 2017 12:27:46 +0200 +Subject: [PATCH] libtracker-fts: Retain compat with sqlite 3.7.x by not using + WITHOUT ROWID + +According to https://sqlite.org/withoutrowid.html, section 2: +"The WITHOUT ROWID syntax is an optimization. It provides no new +capabilities. Anything that can be done using a WITHOUT ROWID table can +also be done in exactly the same way, and exactly the same syntax, using +an ordinary rowid table. The only advantage of a WITHOUT ROWID table is +that it can sometimes use less disk space and/or perform a little faster +than an ordinary rowid table." + +This feature was added on 3.8.2, so it seems we can do without it, at +the expense of an almost negligible space/performance loss. +--- + src/libtracker-fts/fts5.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/libtracker-fts/fts5.c b/src/libtracker-fts/fts5.c +index 5e2fb1471..7b3708db1 100644 +--- a/src/libtracker-fts/fts5.c ++++ b/src/libtracker-fts/fts5.c +@@ -12666,7 +12666,7 @@ static int sqlite3Fts5IndexOpen( + if( rc==SQLITE_OK ){ + rc = sqlite3Fts5CreateTable(pConfig, "idx", + "segid, term, pgno, PRIMARY KEY(segid, term)", +- 1, pzErr ++ 0, pzErr + ); + } + if( rc==SQLITE_OK ){ +@@ -16991,7 +16991,7 @@ static int sqlite3Fts5StorageOpen( + } + if( rc==SQLITE_OK ){ + rc = sqlite3Fts5CreateTable( +- pConfig, "config", "k PRIMARY KEY, v", 1, pzErr ++ pConfig, "config", "k PRIMARY KEY, v", 0, pzErr + ); + } + if( rc==SQLITE_OK ){ +-- +2.13.0 + diff --git a/SOURCES/0001-tracker-extract-Avoid-the-use-of-setrlimit-it-s-caus.patch b/SOURCES/0001-tracker-extract-Avoid-the-use-of-setrlimit-it-s-caus.patch deleted file mode 100644 index 32b0dee..0000000 --- a/SOURCES/0001-tracker-extract-Avoid-the-use-of-setrlimit-it-s-caus.patch +++ /dev/null @@ -1,63 +0,0 @@ -From 35dbe5e46ad7c8e2c6343349b87d44e71fa32eb8 Mon Sep 17 00:00:00 2001 -From: Martyn Russell -Date: Mon, 13 Oct 2014 11:41:57 +0100 -Subject: [PATCH] tracker-extract: Avoid the use of setrlimit() it's causing - problems - -Part of the solution is this commit, see: -https://bugzilla.gnome.org/show_bug.cgi?id=737663 - -The other part is to use cgroups ---- - src/tracker-extract/tracker-main.c | 12 ++---------- - 1 file changed, 2 insertions(+), 10 deletions(-) - -diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c -index f7e3e55..22af4b2 100644 ---- a/src/tracker-extract/tracker-main.c -+++ b/src/tracker-extract/tracker-main.c -@@ -29,9 +29,9 @@ - #include - #include - --#include - #include - #include -+#include - #include - - #ifndef G_OS_WIN32 -@@ -42,12 +42,7 @@ - #include - #endif - --#include --#include --#include --#include --#include --#include -+#include - - #include - -@@ -278,8 +273,6 @@ run_standalone (TrackerConfig *config) - return EXIT_FAILURE; - } - -- tracker_memory_setrlimits (); -- - tracker_extract_get_metadata_by_cmdline (object, uri, mime_type); - - g_object_unref (object); -@@ -364,7 +357,6 @@ main (int argc, char *argv[]) - /* This makes sure we don't steal all the system's resources */ - initialize_priority_and_scheduling (tracker_config_get_sched_idle (config), - tracker_db_manager_get_first_index_done () == FALSE); -- tracker_memory_setrlimits (); - - extract = tracker_extract_new (TRUE, force_module); - --- -2.1.0 - diff --git a/SOURCES/tracker-0.15-onlyshowin.patch b/SOURCES/tracker-0.15-onlyshowin.patch deleted file mode 100644 index cd9a966..0000000 --- a/SOURCES/tracker-0.15-onlyshowin.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- tracker-0.15.1/data/tracker-miner-fs.desktop.in.in.orig 2012-12-14 08:27:16.000000000 +0000 -+++ tracker-0.15.1/data/tracker-miner-fs.desktop.in.in 2013-01-26 16:34:28.202775189 +0000 -@@ -12,7 +12,7 @@ - X-KDE-StartupNotify=false - X-KDE-UniqueApplet=true - NoDisplay=true --OnlyShowIn=GNOME;KDE;XFCE;X-MEEGO-HS;X-MEEGO-NB;X-IVI;Unity; -+OnlyShowIn=GNOME; - X-GNOME-Bugzilla-Bugzilla=GNOME - X-GNOME-Bugzilla-Product=tracker - X-GNOME-Bugzilla-Component=Miners ---- tracker-0.15.1/data/tracker-miner-rss.desktop.in.in.orig 2013-01-26 16:31:20.410192713 +0000 -+++ tracker-0.15.1/data/tracker-miner-rss.desktop.in.in 2013-01-26 16:31:26.841246912 +0000 -@@ -11,7 +11,7 @@ - X-KDE-StartupNotify=false - X-KDE-UniqueApplet=true - NoDisplay=true --OnlyShowIn=GNOME;KDE;XFCE;Unity; -+OnlyShowIn=GNOME; - X-GNOME-Bugzilla-Bugzilla=GNOME - X-GNOME-Bugzilla-Product=tracker - X-GNOME-Bugzilla-Component=Miners ---- tracker-0.15.1/data/tracker-store.desktop.in.in.orig 2012-12-14 08:27:16.000000000 +0000 -+++ tracker-0.15.1/data/tracker-store.desktop.in.in 2013-01-26 16:34:52.310978315 +0000 -@@ -11,7 +11,7 @@ - X-KDE-StartupNotify=false - X-KDE-UniqueApplet=true - NoDisplay=true --OnlyShowIn=GNOME;KDE;XFCE;X-MEEGO-HS;X-MEEGO-NB;X-IVI;Unity; -+OnlyShowIn=GNOME; - X-GNOME-Bugzilla-Bugzilla=GNOME - X-GNOME-Bugzilla-Product=tracker - X-GNOME-Bugzilla-Component=Store diff --git a/SPECS/tracker.spec b/SPECS/tracker.spec index eef22b8..832a609 100644 --- a/SPECS/tracker.spec +++ b/SPECS/tracker.spec @@ -6,39 +6,41 @@ %global with_enca 0 %global with_libcue 0 %global with_thunderbird 0 +%global with_rss 0 %else %global with_enca 1 %global with_libcue 1 %global with_thunderbird 1 +%global with_rss 1 %endif -Summary: Desktop-neutral search tool and indexer -Name: tracker -Version: 1.2.7 -Release: 2%{?dist} -License: GPLv2+ -Group: Applications/System -URL: https://wiki.gnome.org/Projects/Tracker -Source0: https://download.gnome.org/sources/%{name}/1.2/%{name}-%{version}.tar.xz +%global systemd_units tracker-extract.service tracker-miner-apps.service tracker-miner-fs.service tracker-miner-rss.service tracker-miner-user-guides.service tracker-store.service tracker-writeback.service -# only autostart in Gnome, see also -# https://bugzilla.redhat.com/show_bug.cgi?id=771601 -Patch1: tracker-0.15-onlyshowin.patch +Name: tracker +Version: 1.10.5 +Release: 4%{?dist} +Summary: Desktop-neutral search tool and indexer -# https://bugzilla.redhat.com/show_bug.cgi?id=1133924 -Patch2: 0001-tracker-extract-Avoid-the-use-of-setrlimit-it-s-caus.patch +License: GPLv2+ +URL: https://wiki.gnome.org/Projects/Tracker +Source0: https://download.gnome.org/sources/%{name}/1.10/%{name}-%{version}.tar.xz -# https://bugzilla.redhat.com/show_bug.cgi?id=1349508 -Patch3: 0001-Revert-functions-tracker-Fix-collate-order.patch +# only autostart in Gnome, see also +# https://bugzilla.redhat.com/show_bug.cgi?id=771601 +Patch0: 0001-Only-autostart-in-GNOME-771601.patch +Patch1: 0001-add-osinfo-to-trackernamespace.patch +Patch2: 0001-libtracker-common-whitelist-openat.patch +Patch3: 0001-libtracker-fts-Retain-compat-with-sqlite-3.7.x-by-no.patch BuildRequires: desktop-file-utils -BuildRequires: firefox BuildRequires: giflib-devel BuildRequires: graphviz BuildRequires: gtk-doc BuildRequires: intltool BuildRequires: libjpeg-devel BuildRequires: libtiff-devel +BuildRequires: libappstream-glib +BuildRequires: systemd %if 0%{?with_thunderbird} BuildRequires: thunderbird %endif @@ -48,6 +50,7 @@ BuildRequires: pkgconfig(enca) %endif BuildRequires: pkgconfig(exempi-2.0) BuildRequires: pkgconfig(flac) +BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(gstreamer-pbutils-1.0) @@ -59,17 +62,20 @@ BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(libcue) %endif BuildRequires: pkgconfig(libexif) -BuildRequires: pkgconfig(gee-0.8) +%if 0%{?with_rss} +BuildRequires: pkgconfig(libgrss) +%endif BuildRequires: pkgconfig(libgsf-1) BuildRequires: pkgconfig(libgxps) BuildRequires: pkgconfig(libiptcdata) +BuildRequires: pkgconfig(libmediaart-2.0) %if 0%{?with_nautilus} BuildRequires: pkgconfig(libnautilus-extension) %endif BuildRequires: pkgconfig(libnm-glib) BuildRequires: pkgconfig(libosinfo-1.0) BuildRequires: pkgconfig(libpng) -BuildRequires: pkgconfig(libmediaart-1.0) +BuildRequires: pkgconfig(libseccomp) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(poppler-glib) BuildRequires: pkgconfig(sqlite3) @@ -79,10 +85,17 @@ BuildRequires: pkgconfig(upower-glib) BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(vorbisfile) +%{?systemd_requires} Obsoletes: compat-tracker018 < 0.17.2-2 +Obsoletes: tracker-firefox-plugin < 1.10.4-2 Obsoletes: tracker-miner-flickr < 0.16.0 Obsoletes: tracker-nautilus-plugin < 0.17.2-2 +%if 0%{?fedora} +# From rhughes-f20-gnome-3-12 copr +Obsoletes: compat-tracker016 < 0.18 +%endif + %description Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. @@ -99,22 +112,19 @@ It has the ability to index, store, harvest metadata. retrieve and search all types of files and other first class objects %package devel -Summary: Headers for developing programs that will use %{name} -Group: Development/Libraries -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Headers for developing programs that will use %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the static libraries and header files needed for developing with tracker %package needle -Summary: Tracker search tool -Group: User Interface/Desktops -Requires: %{name}%{?_isa} = %{version}-%{release} -Obsoletes: paperbox <= 0.4.4 -Obsoletes: tracker-ui-tools < 1.1.4 -Obsoletes: tracker-search-tool <= 0.12.0 +Summary: Tracker search tool +Requires: %{name}%{?_isa} = %{version}-%{release} +Obsoletes: paperbox <= 0.4.4 +Obsoletes: tracker-ui-tools < 1.1.4 +Obsoletes: tracker-search-tool <= 0.12.0 %description needle Graphical frontend to tracker search. @@ -127,20 +137,10 @@ Obsoletes: tracker-ui-tools < 1.1.4 %description preferences Graphical frontend to tracker configuration. -%package firefox-plugin -Summary: A simple bookmark exporter for Tracker -Group: User Interface/Desktops -Requires: %{name}%{?_isa} = %{version}-%{release} - -%description firefox-plugin -This Firefox addon exports your bookmarks to Tracker, so that you can search -for them for example using tracker-needle. - %if 0%{?with_nautilus} %package nautilus-plugin -Summary: Tracker's nautilus plugin -Group: User Interface/Desktops -Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Tracker's nautilus plugin +Requires: %{name}%{?_isa} = %{version}-%{release} %description nautilus-plugin Tracker's nautilus plugin, provides 'tagging' functionality. Ability to perform @@ -149,18 +149,16 @@ search in nautilus using tracker is built-in directly in the nautilus package. %if 0%{?with_thunderbird} %package thunderbird-plugin -Summary: Thunderbird extension to export mails to Tracker -Group: User Interface/Desktops -Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Thunderbird extension to export mails to Tracker +Requires: %{name}%{?_isa} = %{version}-%{release} %description thunderbird-plugin A simple Thunderbird extension to export mails to Tracker. %endif %package docs -Summary: Documentations for tracker -Group: Documentation -BuildArch: noarch +Summary: Documentations for tracker +BuildArch: noarch %description docs This package contains the documentation for tracker @@ -169,9 +167,15 @@ This package contains the documentation for tracker %prep %setup -q -%patch1 -p1 -b .onlyshowin -%patch2 -p1 -b .rlimits -%patch3 -p1 -b .collate-order +%patch0 -p1 -b .autostart-gnome +%patch1 -p1 -b .add-osinfo-to-trackernamespace +%patch2 -p1 -b .libtracker-common-whitelist-openat +%patch3 -p1 -b .remove-without-rowid-optimization + +%if 0%{?rhel} +# Fix the build with sqlite 3.7 that doesn't support SQLITE_DETERMINISTIC +sed -i -e 's/ | SQLITE_DETERMINISTIC//' src/libtracker-data/tracker-db-interface-sqlite.c +%endif ## nuke unwanted rpaths, see also ## https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath @@ -184,7 +188,7 @@ sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure --enable-libflac \ --enable-libvorbis \ --enable-miner-evolution=no \ - --with-firefox-plugin-dir=%{_libdir}/firefox/extensions \ + --enable-miner-firefox=no \ --disable-mp3 \ %if %{with_nautilus} --enable-nautilus-extension \ @@ -194,6 +198,8 @@ sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure --enable-libmediaart \ %if 0%{?with_thunderbird} --with-thunderbird-plugin-dir=%{_libdir}/thunderbird/extensions \ +%else + --disable-miner-thunderbird \ %endif --with-unicode-support=libicu \ --disable-functional-tests @@ -203,7 +209,16 @@ make V=1 %{?_smp_mflags} %install -make DESTDIR=%{buildroot} INSTALL="install -p" install +%make_install + +# Update the screenshot shown in the software center +# +# NOTE: It would be *awesome* if this file was pushed upstream. +# +# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details. +# +appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/tracker-needle.appdata.xml \ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/tracker-needle/a.png find %{buildroot} -type f -name "*.la" -delete rm -rf %{buildroot}%{_datadir}/tracker-tests @@ -216,20 +231,27 @@ rm -f %{buildroot}%{_libdir}/tracker-1.0/*.so %check -desktop-file-validate %{buildroot}%{_datadir}/applications/tracker-needle.desktop -desktop-file-validate %{buildroot}%{_datadir}/applications/tracker-preferences.desktop +desktop-file-validate %{buildroot}%{_datadir}/applications/tracker-*.desktop + +%post +/sbin/ldconfig +%systemd_user_post %{systemd_units} -%post -p /sbin/ldconfig %post preferences touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +%preun +%systemd_user_preun %{systemd_units} + + %postun /sbin/ldconfig if [ $1 -eq 0 ]; then glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : fi +%systemd_user_postun_with_restart %{systemd_units} %postun preferences if [ $1 -eq 0 ] ; then @@ -245,7 +267,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang -%doc AUTHORS COPYING NEWS README +%license COPYING +%doc AUTHORS NEWS README %{_bindir}/tracker* %{_libexecdir}/tracker* %{_datadir}/tracker/ @@ -257,7 +280,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_libdir}/girepository-1.0/TrackerMiner-1.0.typelib %{_mandir}/*/tracker*.gz %config(noreplace) %{_sysconfdir}/xdg/autostart/tracker*.desktop +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions +%{_datadir}/bash-completion/completions/tracker %{_datadir}/glib-2.0/schemas/* +%{_userunitdir}/tracker-*.service %exclude %{_bindir}/tracker-needle %exclude %{_bindir}/tracker-preferences %exclude %{_datadir}/tracker/tracker-needle.ui @@ -289,10 +316,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/tracker/tracker-preferences.ui %{_mandir}/man1/tracker-preferences.1* -%files firefox-plugin -%{_datadir}/xul-ext/trackerfox/ -%{_libdir}/firefox/extensions/trackerfox@bustany.org - %if 0%{?with_nautilus} %files nautilus-plugin %{_libdir}/nautilus/extensions-3.0/libnautilus-tracker-tags.so @@ -306,7 +329,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %files docs -%doc docs/reference/COPYING +%license docs/reference/COPYING %{_datadir}/gtk-doc/html/libtracker-control/ %{_datadir}/gtk-doc/html/libtracker-miner/ %{_datadir}/gtk-doc/html/libtracker-sparql/ @@ -314,6 +337,27 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Jun 12 2017 Carlos Garnacho - 1.10.5-4 +- Remove WITHOUT ROWID optimizations from fts5 to preserve compat with sqlite 3.7.x +- Resolves: #1451669 + +* Tue May 09 2017 Felipe Borges -1.10.5-3 +- Add osinfo ontology to the default TrackerNamespace +- Whitelist "openat" sys call in seccomp +- Resolves: #1435340 + +* Wed Apr 26 2017 Tomas Popela - 1.10.5-2 +- Rebuild for newer webkitgtk4 (removal of icu57) +- Resolves: #1414413 + +* Thu Feb 23 2017 Kalev Lember - 1.10.5-1 +- Update to 1.10.5 +- Resolves: #1387050 + +* Thu Jan 19 2017 Kalev Lember - 1.10.4-1 +- Update to 1.10.4 +- Resolves: #1387050 + * Mon Jun 27 2016 Debarshi Ray - 1.2.7-2 - Revert an adjustment to the test suite to accommodate older sqlite - Resolves: #1349508