2010-04-26 21:55:29 +00:00
#
2011-01-14 14:11:10 +00:00
# spec file for package tracker
2010-04-26 21:55:29 +00:00
#
2021-01-11 13:56:13 +00:00
# Copyright (c) 2021 SUSE LLC
2010-04-26 21:55:29 +00:00
# Copyright (c) 2010 Luis Medinas, Portugal
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2018-09-27 07:41:31 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2010-04-26 21:55:29 +00:00
#
2011-07-06 10:34:41 +00:00
2020-09-22 09:01:33 +00:00
%define TrackerAPI 3.0
%define RPMTrackerAPI 3_0
2019-03-14 10:24:56 +00:00
2010-04-26 21:55:29 +00:00
Name : tracker
2021-11-05 08:45:27 +00:00
Version : 3.2.1
2012-01-24 11:23:29 +00:00
Release : 0
2017-02-08 13:12:32 +00:00
Summary : Object database, tag/metadata database, search tool and indexer
2018-03-05 13:52:58 +00:00
License : GPL-2.0-or-later
2010-04-26 21:55:29 +00:00
Group : Productivity/Other
2018-03-05 13:52:58 +00:00
URL : https://wiki.gnome.org/Projects/Tracker
2021-09-27 06:26:06 +00:00
Source0 : https://download.gnome.org/sources/tracker/3.2/%{name} -%{version} .tar.xz
2021-11-09 09:32:14 +00:00
# PATCH-FIX-UPSTREAM tracker-fix-actual-0-path-matches.patch bsc#1191207, glgo#GNOME/tracker#337 alynx.zhou@suse.com -- Fix no metadata available when using tracker3 info
Patch1 : tracker-fix-actual-0-path-matches.patch
2020-08-28 07:04:49 +00:00
2020-09-22 09:01:33 +00:00
BuildRequires : asciidoc
2010-04-26 21:55:29 +00:00
BuildRequires : fdupes
BuildRequires : gcc-c++
2020-09-22 09:01:33 +00:00
BuildRequires : glib2-devel >= 2.52.0
2011-05-02 13:45:08 +00:00
BuildRequires : gobject-introspection-devel
2010-04-26 21:55:29 +00:00
BuildRequires : intltool
2017-11-21 15:38:45 +00:00
BuildRequires : libicu-devel >= 4.8.1.1
2021-09-27 06:26:06 +00:00
BuildRequires : meson >= 0.51
2017-08-31 07:44:44 +00:00
BuildRequires : pkgconfig
BuildRequires : python3
2021-09-27 06:26:06 +00:00
BuildRequires : python3-gobject
2021-07-13 07:27:04 +00:00
BuildRequires : sqlite3-devel >= 3.35.2
2017-11-21 15:38:45 +00:00
BuildRequires : vala >= 0.18.0
2011-10-16 11:05:59 +00:00
BuildRequires : zlib-devel
2019-03-14 10:24:56 +00:00
BuildRequires : pkgconfig(dbus-1)
2017-08-31 07:44:44 +00:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0)
2017-02-22 20:41:03 +00:00
BuildRequires : pkgconfig(json-glib-1.0) >= 1.0
BuildRequires : pkgconfig(libseccomp) >= 2.0
BuildRequires : pkgconfig(libsoup-2.4) >= 2.40
2021-09-27 06:26:06 +00:00
BuildRequires : pkgconfig(libsoup-3.0) >= 2.99.2
2017-08-31 07:44:44 +00:00
BuildRequires : pkgconfig(libxml-2.0) >= 2.6
2020-09-22 09:01:33 +00:00
BuildRequires : pkgconfig(systemd)
2017-11-21 15:38:45 +00:00
BuildRequires : pkgconfig(upower-glib) >= 0.9.0
2017-08-31 07:44:44 +00:00
BuildRequires : pkgconfig(uuid)
2011-10-16 11:05:59 +00:00
# We want to index files by default, if possible
2017-08-31 07:44:44 +00:00
Recommends: %{name} -miner-files
2013-03-20 18:06:57 +00:00
# gnome-panel-applet-tracker (aka tracker-search-bar) was removed with tracker 0.16.0
Obsoletes : gnome-panel-applet-tracker < 0.16.0
# flickr miner was removed with tracker 0.16.0
Obsoletes : tracker-miner-flickr < 0.16.0
2017-08-31 07:44:44 +00:00
# Removed with tracker 2.0
Obsoletes : tracker-gui < 1.99.0
Obsoletes : tracker-miner-evolution < 1.99.0
Obsoletes : tracker-miner-firefox < 1.99.0
Obsoletes : tracker-miner-thunderbird < 1.99.0
BuildRequires : libgupnp-dlna-devel >= 0.9.4
2020-11-26 12:27:13 +00:00
Requires : tracker-data-files = %{version}
2010-04-26 21:55:29 +00:00
%description
2017-02-08 13:12:32 +00:00
Tracker is a desktop-neutral object database, tag/metadata database,
search tool and indexer.
2010-04-26 21:55:29 +00:00
It consists of a common object database that allows entities to
2011-09-09 09:56:14 +00:00
have an almost infinite number of properties, metadata (both
2010-04-26 21:55:29 +00:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
2017-02-08 13:12:32 +00:00
It provides context linking and audit trails for file objects.
2010-04-26 21:55:29 +00:00
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
2013-03-13 22:39:15 +00:00
%package -n typelib-1_0-Tracker-%{RPMTrackerAPI}
2017-02-08 13:12:32 +00:00
Summary : Introspection bindings for the Tracker Sparql library
2012-01-24 11:23:29 +00:00
Group : System/Libraries
2013-03-13 22:39:15 +00:00
%description -n typelib-1_0-Tracker-%{RPMTrackerAPI}
2017-02-08 13:12:32 +00:00
Tracker is a desktop-neutral object database, tag/metadata database,
search tool and indexer.
2010-08-27 20:12:46 +00:00
2012-01-24 11:23:29 +00:00
This package provides the GObject Introspection bindings for the
sparql library for Tracker.
2013-03-13 22:39:15 +00:00
%package -n libtracker-sparql-%{RPMTrackerAPI}-0
2010-08-27 20:12:46 +00:00
Summary : Sparql library for Tracker
2016-10-15 07:52:48 +00:00
Group : System/Libraries
2010-08-27 20:12:46 +00:00
2013-03-13 22:39:15 +00:00
%description -n libtracker-sparql-%{RPMTrackerAPI}-0
2017-02-08 13:12:32 +00:00
Tracker is a desktop-neutral object database, tag/metadata database,
search tool and indexer.
2010-04-26 21:55:29 +00:00
It consists of a common object database that allows entities to
2011-09-09 09:56:14 +00:00
have an almost infinite number of properties, metadata (both
2010-04-26 21:55:29 +00:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
2017-02-08 13:12:32 +00:00
It provides context linking and audit trails for file objects.
2010-04-26 21:55:29 +00:00
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
%package -n tracker-devel
2017-02-08 13:12:32 +00:00
Summary : Development files for the Tracker indexer
2010-04-26 21:55:29 +00:00
Group : Development/Libraries/GNOME
2013-03-13 22:39:15 +00:00
Requires : libtracker-sparql-%{RPMTrackerAPI} -0 = %{version}
Requires : typelib-1_0-Tracker-%{RPMTrackerAPI} = %{version}
2010-04-26 21:55:29 +00:00
%description -n tracker-devel
2017-02-08 13:12:32 +00:00
Tracker is a desktop-neutral object database, tag/metadata database,
search tool and indexer.
2010-04-26 21:55:29 +00:00
2017-02-08 13:12:32 +00:00
This subpackage contains the headers to make use of its libraries.
2011-10-16 11:05:59 +00:00
2020-11-26 12:27:13 +00:00
%package -n tracker-data-files
Summary : Data files for the Tracker Miners
Group : Productivity/Other
%description -n tracker-data-files
Tracker is a desktop-neutral object database, tag/metadata database,
search tool and indexer.
This subpackage contains the data files for the Tracker miners.
2010-04-26 21:55:29 +00:00
%lang_package
2011-10-16 11:05:59 +00:00
2010-04-26 21:55:29 +00:00
%prep
2018-02-07 11:47:30 +00:00
%autosetup -p1
2010-04-26 21:55:29 +00:00
%build
2019-03-14 10:24:56 +00:00
%meson \
-Ddocs=true \
-Dstemmer=disabled \
2018-02-07 11:47:30 +00:00
%{nil}
2019-03-14 10:24:56 +00:00
%meson_build
2010-04-26 21:55:29 +00:00
%install
2018-06-28 08:17:25 +00:00
%meson_install
2020-09-22 09:01:33 +00:00
%find_lang %{name} 3 %{?no_lang_C}
2011-10-16 11:05:59 +00:00
2012-05-16 08:51:53 +00:00
# Ensure we have a /usr/share/tracker/icons/ folder, so the
# tracker-extras build can put icons in there without having to worry
2012-05-16 08:32:43 +00:00
mkdir -p %{buildroot} %{_datadir} /tracker/icons/
2020-09-22 09:01:33 +00:00
# Let's package the template directory where consumers can put their ontology files
mkdir %{buildroot} %{_datadir} /tracker3/domain-ontologies
2012-05-16 08:32:43 +00:00
2011-10-16 11:05:59 +00:00
%fdupes %{buildroot} %{_datadir} /vala/
2021-11-05 08:45:27 +00:00
#ifnarch %%arm
2020-09-22 09:01:33 +00:00
#check
#meson_test
#endif
2019-11-27 14:35:28 +00:00
2021-11-05 08:45:27 +00:00
%ldconfig_scriptlets -n libtracker-sparql-%{RPMTrackerAPI} -0
%post
%systemd_user_post tracker-xdg-portal-3.service
%preun
%systemd_user_preun tracker-xdg-portal-3.service
%postun
%systemd_user_postun_with_restart tracker-xdg-portal-3.service
2011-09-09 09:56:14 +00:00
2010-04-26 21:55:29 +00:00
%files
2018-03-05 13:52:58 +00:00
%license COPYING
2020-09-22 09:01:33 +00:00
%{_bindir} /tracker3
2013-03-13 22:39:15 +00:00
%dir %{_libdir} /tracker-%{TrackerAPI} /
2021-09-27 06:26:06 +00:00
%{_libdir} /tracker-%{TrackerAPI} /libtracker-remote-soup2.so
%{_libdir} /tracker-%{TrackerAPI} /libtracker-remote-soup3.so
2020-09-22 09:01:33 +00:00
%{_datadir} /bash-completion/completions/tracker3
2020-11-26 12:27:13 +00:00
%dir %{_datadir} /tracker3/
2020-09-22 09:01:33 +00:00
%{_libexecdir} /tracker3/
%{_libexecdir} /tracker-xdg-portal-3
%{_mandir} /man1/tracker3-endpoint.1.gz
%{_mandir} /man1/tracker3-export.1.gz
%{_mandir} /man1/tracker3-import.1.gz
%{_mandir} /man1/tracker3-sparql.1.gz
%{_mandir} /man1/tracker3-sql.1.gz
%{_mandir} /man1/tracker-xdg-portal-3.1.gz
%{_datadir} /dbus-1/services/org.freedesktop.portal.Tracker.service
%{_userunitdir} /tracker-xdg-portal-3.service
2011-10-16 11:05:59 +00:00
2020-11-26 12:27:13 +00:00
%files -n tracker-data-files
%dir %{_datadir} /tracker3/domain-ontologies
%{_datadir} /tracker3/ontologies/
%{_datadir} /tracker3/stop-words/
2013-03-13 22:39:15 +00:00
%files -n libtracker-sparql-%{RPMTrackerAPI}-0
2011-10-16 11:05:59 +00:00
%{_libdir} /libtracker-sparql*.so.*
2012-01-24 11:23:29 +00:00
2013-03-13 22:39:15 +00:00
%files -n typelib-1_0-Tracker-%{RPMTrackerAPI}
%{_libdir} /girepository-1.0/Tracker-%{TrackerAPI} .typelib
2012-01-24 11:23:29 +00:00
2011-10-16 11:05:59 +00:00
%files -n tracker-devel
2019-05-04 07:57:39 +00:00
%doc AUTHORS README.md NEWS
2021-09-27 06:26:06 +00:00
%doc %{_datadir} /devhelp/
2011-10-16 11:05:59 +00:00
%{_datadir} /gir-1.0/*.gir
2020-09-22 09:01:33 +00:00
%dir %{_datadir} /tracker3
%dir %{_datadir} /tracker3/domain-ontologies
2011-10-16 11:05:59 +00:00
%dir %{_datadir} /vala
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/*.deps
%{_datadir} /vala/vapi/*.vapi
2020-09-22 09:01:33 +00:00
%{_includedir} /tracker-%{TrackerAPI} /
%{_libdir} /lib*.so
%{_libdir} /pkgconfig/tracker-sparql-%{TrackerAPI} .pc
%{_libdir} /pkgconfig/tracker-testutils-%{TrackerAPI} .pc
%{_libdir} /tracker-%{TrackerAPI} /trackertestutils
2011-10-16 11:05:59 +00:00
2020-09-22 09:01:33 +00:00
%files lang -f %{name}3.lang
2010-04-26 21:55:29 +00:00
%changelog