diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..539cf81 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/gnome-online-miners-3.26.0.tar.xz diff --git a/.gnome-online-miners.metadata b/.gnome-online-miners.metadata new file mode 100644 index 0000000..a5f2048 --- /dev/null +++ b/.gnome-online-miners.metadata @@ -0,0 +1 @@ +db1a6f8f567f90d14136d82f09caf83ff7a87eaf SOURCES/gnome-online-miners-3.26.0.tar.xz diff --git a/SOURCES/0001-Revert-build-Depend-on-libtracker-sparql-2.0.patch b/SOURCES/0001-Revert-build-Depend-on-libtracker-sparql-2.0.patch new file mode 100644 index 0000000..68a279e --- /dev/null +++ b/SOURCES/0001-Revert-build-Depend-on-libtracker-sparql-2.0.patch @@ -0,0 +1,28 @@ +From 0b3e7b2206ca80185234e5a079ad54516b4e3cf6 Mon Sep 17 00:00:00 2001 +From: Debarshi Ray +Date: Tue, 5 Jun 2018 17:55:38 +0200 +Subject: [PATCH] Revert "build: Depend on libtracker-sparql-2.0" + +RHEL 7.6 doesn't have Tracker 2.0.x. + +This reverts commit dc101b75ead87649ed541283c26c726761c13663. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index d21e610248d6..1f1b9c7616b4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -38,7 +38,7 @@ PKG_CHECK_MODULES(GIO, [gio-2.0 gio-unix-2.0]) + PKG_CHECK_MODULES(GOA, [goa-1.0 >= $GOA_MIN_VERSION]) + AC_DEFINE([GOA_API_IS_SUBJECT_TO_CHANGE], [], [We are aware that GOA's API can change]) + +-PKG_CHECK_MODULES(TRACKER, [tracker-miner-2.0 tracker-sparql-2.0]) ++PKG_CHECK_MODULES(TRACKER, [tracker-miner-1.0 tracker-sparql-1.0]) + + # Facebook + AC_ARG_ENABLE([facebook], [AS_HELP_STRING([--enable-facebook], [Enable Facebook miner])], [], [enable_facebook=yes]) +-- +2.14.4 + diff --git a/SOURCES/0001-zpj-Use-an-HTTP-URL-as-nie-url.patch b/SOURCES/0001-zpj-Use-an-HTTP-URL-as-nie-url.patch new file mode 100644 index 0000000..cc5b48e --- /dev/null +++ b/SOURCES/0001-zpj-Use-an-HTTP-URL-as-nie-url.patch @@ -0,0 +1,64 @@ +From 4e095d31acb53b7f393dc7a5ecdbd427f2529a68 Mon Sep 17 00:00:00 2001 +From: Debarshi Ray +Date: Mon, 27 Mar 2017 18:36:30 +0200 +Subject: [PATCH] zpj: Use an HTTP URL as nie:url + +The nao:identifier value is not a valid nie:url. The identifier has the +format "windows-live:skydrive:", and is not a GVfs supported URI. +This is a problem because the nie:url is used to locate the path to +the entry's thumbnail in the desktop's thumbnail cache. Running +g_file_query_info (file, G_FILE_ATTRIBUTE_THUMBNAIL_PATH, ...) on such +a URI will fail. Therefore we use a fake OneDrive-namespaced URI that +GVfs understands. + +Force a full reindex of OneDrive resources for existing users. +--- + src/gom-zpj-miner.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/src/gom-zpj-miner.c b/src/gom-zpj-miner.c +index 6dff947ada9d..da54c2a53be5 100644 +--- a/src/gom-zpj-miner.c ++++ b/src/gom-zpj-miner.c +@@ -46,6 +46,7 @@ account_miner_job_process_entry (GomAccountMinerJob *job, + gchar *contact_resource; + gchar *resource = NULL; + gchar *date, *identifier; ++ gchar *url = NULL; + const gchar *class = NULL, *id, *name; + gboolean resource_exists, mtime_changed; + gint64 new_mtime; +@@ -99,11 +100,12 @@ account_miner_job_process_entry (GomAccountMinerJob *job, + goto out; + + /* the resource changed - just set all the properties again */ ++ url = g_strconcat ("http://onedrive.com/", id, NULL); + gom_tracker_sparql_connection_insert_or_replace_triple + (connection, + cancellable, error, + datasource_urn, resource, +- "nie:url", identifier); ++ "nie:url", url); + + if (*error != NULL) + goto out; +@@ -202,6 +204,7 @@ account_miner_job_process_entry (GomAccountMinerJob *job, + out: + g_free (resource); + g_free (identifier); ++ g_free (url); + + if (*error != NULL) + return FALSE; +@@ -324,7 +327,7 @@ gom_zpj_miner_class_init (GomZpjMinerClass *klass) + + miner_class->goa_provider_type = "windows_live"; + miner_class->miner_identifier = MINER_IDENTIFIER; +- miner_class->version = 1; ++ miner_class->version = 2; + + miner_class->create_services = create_services; + miner_class->query = query_zpj; +-- +2.9.3 + diff --git a/SPECS/gnome-online-miners.spec b/SPECS/gnome-online-miners.spec new file mode 100644 index 0000000..68e3a6c --- /dev/null +++ b/SPECS/gnome-online-miners.spec @@ -0,0 +1,175 @@ +%global _privatelibs libgom-1[.]0[.]so.* +%global __provides_exclude ^(%{_privatelibs})$ +%global __requires_exclude ^(%{_privatelibs})$ + +Name: gnome-online-miners +Version: 3.26.0 +Release: 1%{?dist} +Summary: Crawls through your online content + +License: GPLv2+ and LGPLv2+ and MIT +URL: https://wiki.gnome.org/Projects/GnomeOnlineMiners +Source0: https://download.gnome.org/sources/%{name}/3.26/%{name}-%{version}.tar.xz + +# https://bugzilla.redhat.com/show_bug.cgi?id=985887 +Patch0: 0001-zpj-Use-an-HTTP-URL-as-nie-url.patch + +# https://bugzilla.redhat.com/show_bug.cgi?id=1568229 +Patch1: 0001-Revert-build-Depend-on-libtracker-sparql-2.0.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: glib2-devel >= 2.35.1 +BuildRequires: gnome-common +BuildRequires: gnome-online-accounts-devel >= 3.8.0 +BuildRequires: libgdata-devel >= 0.15.2 +BuildRequires: libtool +BuildRequires: libzapojit-devel >= 0.0.2 +BuildRequires: pkgconfig +BuildRequires: tracker-devel >= 0.17.2 + +Requires: dbus +Requires: gvfs >= 1.18.3 + +%description +GNOME Online Miners provides a set of crawlers that go through your online +content and index them locally in Tracker. It has miners for Google, OneDrive +and ownCloud. + + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + + +%build +autoreconf -f -i +%configure \ + --disable-silent-rules \ + --disable-static \ + --disable-facebook \ + --disable-flickr \ + --disable-media-server + +make %{?_smp_mflags} + + +%install +%make_install +find $RPM_BUILD_ROOT -name '*.la' -delete + +# Use %%doc instead. +rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} + +rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.gnome.OnlineMiners.Facebook.service +rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.gnome.OnlineMiners.Flickr.service +rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.gnome.OnlineMiners.MediaServer.service + +%files +%license COPYING +%doc AUTHORS +%doc NEWS +%doc README +%{_datadir}/dbus-1/services/org.gnome.OnlineMiners.GData.service +%{_datadir}/dbus-1/services/org.gnome.OnlineMiners.Owncloud.service +%{_datadir}/dbus-1/services/org.gnome.OnlineMiners.Zpj.service + +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/libgom-1.0.so + +%{_libexecdir}/gom-gdata-miner +%{_libexecdir}/gom-owncloud-miner +%{_libexecdir}/gom-zpj-miner + + +%changelog +* Mon Sep 11 2017 Kalev Lember - 3.26.0-1 +- Update to 3.26.0 +- Resolves: #1568229 + +* Mon Mar 27 2017 Debarshi Ray - 3.22.0-2 +- Fix the nie:url for OneDrive entries +- Resolves: #985887, #1386954 + +* Mon Sep 19 2016 Kalev Lember - 3.22.0-1 +- Update to 3.22.0 +- Resolves: #1386954 + +* Tue May 05 2015 Debarshi Ray - 3.14.3-1 +- Update to 3.14.3 +Resolves: #1184195 + +* Tue Apr 14 2015 Debarshi Ray - 3.14.2-1 +- Update to 3.14.2 +- Disable unused miners - facebook, flickr and media-server +Resolves: #1184195 + +* Tue Dec 16 2014 Debarshi Ray - 3.14.1-1 +- Update to 3.14.1 +- Bump libgdata BuildRequires to reflect reality + +* Wed Sep 24 2014 Kalev Lember - 3.14.0-1 +- Update to 3.14.0 +- Ship NEWS instead of ChangeLog + +* Wed Sep 03 2014 Kalev Lember - 3.13.91-1 +- Update to 3.13.91 + +* Sat Aug 16 2014 Fedora Release Engineering - 3.13.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Wed Jun 25 2014 Richard Hughes - 3.13.3-1 +- Update to 3.13.3 + +* Sat Jun 07 2014 Fedora Release Engineering - 3.12.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Apr 16 2014 Adam Williamson - 3.12.0-2 +- rebuild for new libgdata + +* Sun Mar 23 2014 Kalev Lember - 3.12.0-1 +- Update to 3.12.0 + +* Wed Feb 19 2014 Kalev Lember - 3.11.90-1 +- Update to 3.11.90 + +* Tue Feb 04 2014 Richard Hughes - 3.11.5-1 +- Update to 3.11.5 + +* Mon Jan 20 2014 Debarshi Ray - 3.11.4-1 +- Update to 3.11.4. + +* Tue Dec 17 2013 Richard Hughes - 3.11.3-1 +- Update to 3.11.3 + +* Fri Nov 22 2013 Debarshi Ray - 3.11.2-1 +- Update to 3.11.2. + +* Fri Nov 22 2013 Debarshi Ray - 3.10.2-1 +- Update to 3.10.2. + +* Wed Sep 25 2013 Kalev Lember - 3.10.0-1 +- Update to 3.10.0 + +* Wed Sep 18 2013 Kalev Lember - 3.9.92-1 +- Update to 3.9.92 + +* Tue Sep 03 2013 Kalev Lember - 3.9.91-1 +- Update to 3.9.91 + +* Thu Aug 22 2013 Debarshi Ray - 3.9.90-1 +- Update to 3.9.90. + +* Sat Aug 03 2013 Fedora Release Engineering - 3.9.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jul 19 2013 Debarshi Ray - 3.9.4-3 +- Filter out the private library from requires. + +* Fri Jul 19 2013 Debarshi Ray - 3.9.4-2 +- Use %%{_libexecdir}. +- Filter out the private library from provides. + +* Tue Jul 09 2013 Debarshi Ray - 3.9.4-1 +- Initial spec.