2010-04-26 23:55:29 +02:00
#
2011-01-14 15:11:10 +01:00
# spec file for package tracker
2010-04-26 23:55:29 +02:00
#
2013-03-13 23:39:15 +01:00
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
2010-04-26 23:55:29 +02: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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-07-06 12:34:41 +02:00
2011-10-16 13:05:59 +02:00
%define build_extras 0
%if !%{build_extras}
%define build_evo 0
%define build_firefox 0
%define build_gui 0
%define build_miner_rss 0
%define build_nautilus 0
%define build_thunderbird 0
%else
2012-09-07 17:28:52 +02:00
%define build_evo 0
2013-07-04 19:58:34 +02:00
%define build_firefox 0
2011-10-16 13:05:59 +02:00
%define build_gui 1
%define build_miner_rss 1
%define build_nautilus 1
2011-10-28 19:44:59 +02:00
%if 0%{?suse_version} > 1140
2011-10-16 13:05:59 +02:00
%define build_thunderbird 1
2011-10-28 19:44:59 +02:00
%else
%define build_thunderbird 0
%endif
2011-10-16 13:05:59 +02:00
%endif
2010-04-26 23:55:29 +02:00
2011-09-09 11:56:14 +02:00
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%define thunderbird_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
2010-04-26 23:55:29 +02:00
Name : tracker
2011-10-16 13:05:59 +02:00
%define _name tracker
2013-05-05 14:00:44 +02:00
Version : 0.16.1
2012-01-24 12:23:29 +01:00
Release : 0
2013-03-13 23:39:15 +01:00
%define TrackerAPI 0.16
%define RPMTrackerAPI 0_16
2010-04-26 23:55:29 +02:00
Summary : Powerful object database, tag/metadata database, search tool and indexer
2012-01-24 12:23:29 +01:00
License : GPL-2.0+
2010-04-26 23:55:29 +02:00
Group : Productivity/Other
2012-01-24 12:23:29 +01:00
Url : http://projects.gnome.org/tracker/
2013-03-20 19:06:57 +01:00
Source0 : http://download.gnome.org/sources/tracker/0.16/%{_name}-%{version} .tar.xz
2010-09-06 23:01:13 +02:00
Source2 : README.SUSE.rss
2011-09-09 11:56:14 +02:00
BuildRequires : NetworkManager-devel >= 0.8
2010-04-26 23:55:29 +02:00
BuildRequires : enca-devel
BuildRequires : fdupes
BuildRequires : gcc-c++
2013-03-13 23:39:15 +01:00
BuildRequires : glib2-devel >= 2.35.1
2011-05-02 15:45:08 +02:00
BuildRequires : gobject-introspection-devel
2010-04-26 23:55:29 +02:00
BuildRequires : intltool
%if 0%{?suse_version} >= 1130
BuildRequires : libgnome-keyring-devel
%else
BuildRequires : gnome-keyring-devel
%endif
2011-10-16 13:05:59 +02:00
# Not guarded by !%%{build_extras}, else we build files to have external generic
# media players
2013-03-13 23:39:15 +01:00
BuildRequires : gstreamer-plugins-base-devel >= 0.10.31
2011-10-16 13:05:59 +02:00
BuildRequires : libicu-devel
BuildRequires : libupower-glib-devel
BuildRequires : libuuid-devel
2013-03-13 23:39:15 +01:00
BuildRequires : sqlite3-devel >= 3.7.9
2011-10-16 13:05:59 +02:00
BuildRequires : translation-update-upstream
BuildRequires : update-desktop-files
BuildRequires : vala >= 0.12.0
BuildRequires : zlib-devel
2013-03-13 23:39:15 +01:00
BuildRequires : pkgconfig(gee-0.8)
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
# Dependencies for extractors / writeback
BuildRequires : flac-devel
BuildRequires : giflib-devel
2012-03-29 14:07:15 +02:00
BuildRequires : libcue-devel
2011-10-16 13:05:59 +02:00
BuildRequires : libexif-devel
2010-04-26 23:55:29 +02:00
BuildRequires : libgsf-devel
2012-03-29 14:07:15 +02:00
BuildRequires : libosinfo-devel >= 0.0.2
2010-09-06 17:49:08 +02:00
%if 0%{?suse_version} >= 1140
2013-03-13 23:39:15 +01:00
BuildRequires : libgupnp-dlna-devel >= 0.9.4
2010-09-06 17:49:08 +02:00
%endif
2012-03-29 14:07:15 +02:00
BuildRequires : libexempi-devel
2012-11-11 22:50:22 +01:00
BuildRequires : libgxps-devel
2010-04-26 23:55:29 +02:00
BuildRequires : libiptcdata-devel
2012-01-24 12:23:29 +01:00
BuildRequires : libjpeg-devel
2010-04-26 23:55:29 +02:00
BuildRequires : libpng-devel
BuildRequires : libpoppler-glib-devel
BuildRequires : libtiff-devel
BuildRequires : libvorbis-devel
BuildRequires : libxml2-devel
2010-08-27 22:12:46 +02:00
BuildRequires : taglib-devel
2010-04-26 23:55:29 +02:00
BuildRequires : totem-pl-parser-devel
2011-10-16 13:05:59 +02:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0)
%else
# For directory ownership and removing files in %%install
2012-07-11 14:48:06 +02:00
BuildRequires : tracker = %{version}
2011-10-16 13:05:59 +02:00
BuildRequires : tracker-devel
BuildRequires : tracker-miner-files
%endif # !build_extras
%if %{build_evo}
BuildRequires : evolution-data-server-devel
BuildRequires : evolution-devel
%endif
%if %{build_firefox}
# It's a bit annoying to require this for the build, see bgo#655618.
BuildRequires : MozillaFirefox
%endif
%if %{build_gui}
BuildRequires : gtk3-devel
%endif
%if %{build_miner_rss}
2013-03-13 23:39:15 +01:00
BuildRequires : libgrss-devel >= 0.5
2011-10-16 13:05:59 +02:00
%endif
%if %{build_nautilus}
BuildRequires : pkgconfig(libnautilus-extension)
%endif
%if %{build_thunderbird}
# It's a bit annoying to require this for the build, see bgo#655618.
BuildRequires : MozillaThunderbird
%endif
Recommends: %{_name}-lang
# We want to index files by default, if possible
Recommends: %{_name}-miner-files
2013-03-20 19:06:57 +01: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
2010-04-26 23:55:29 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_requires
2010-04-26 23:55:29 +02:00
%description
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
2011-09-09 11:56:14 +02:00
have an almost infinite number of properties, metadata (both
2010-04-26 23:55:29 +02:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
2010-09-06 23:01:13 +02:00
2011-10-16 13:05:59 +02:00
%package -n %{_name}-miner-files
2010-09-06 23:01:13 +02:00
Summary : Tracker miner to index files and applications
Group : System/GUI/GNOME
2011-10-16 13:05:59 +02:00
Requires : %{_name} = %{version}
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_requires
2010-09-06 23:01:13 +02:00
2011-10-16 13:05:59 +02:00
%description -n %{_name}-miner-files
2010-09-06 23:01:13 +02:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains a miner to index files and applications.
2012-05-16 10:51:53 +02:00
# 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
# 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.
2013-03-13 23:39:15 +01:00
%package -n libtracker-common-%{RPMTrackerAPI}-0
2012-05-16 10:32:43 +02:00
Summary : Conveniance libraries for Tracker
Group : System/Libraries
2013-03-13 23:39:15 +01:00
%description -n libtracker-common-%{RPMTrackerAPI}-0
2012-05-16 10:32:43 +02:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
2012-05-16 10:51:53 +02:00
This package contains private conveniance libraries for the
various tracker libraries.
2012-05-16 10:32:43 +02:00
2013-03-13 23:39:15 +01:00
%package -n libtracker-extract-%{RPMTrackerAPI}-0
2010-04-26 23:55:29 +02:00
Summary : Extract library for Tracker
Group : System/Libraries
2012-05-16 10:51:53 +02:00
# 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.
2013-03-13 23:39:15 +01:00
Requires : libtracker-common-%{RPMTrackerAPI} -0
2011-10-16 13:05:59 +02:00
Recommends: %{_name}
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_requires
2010-04-26 23:55:29 +02:00
2013-03-13 23:39:15 +01:00
%description -n libtracker-extract-%{RPMTrackerAPI}-0
2010-04-26 23:55:29 +02:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
2011-09-09 11:56:14 +02:00
have an almost infinite number of properties, metadata (both
2010-04-26 23:55:29 +02:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
2013-03-13 23:39:15 +01:00
%package -n libtracker-miner-%{RPMTrackerAPI}-0
2010-04-26 23:55:29 +02:00
Summary : Miner library for Tracker
Group : System/Libraries
2012-05-16 10:51:53 +02:00
# 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.
2013-03-13 23:39:15 +01:00
Requires : libtracker-common-%{RPMTrackerAPI} -0
2011-10-16 13:05:59 +02:00
Recommends: %{_name}
2010-04-26 23:55:29 +02:00
2013-03-13 23:39:15 +01:00
%description -n libtracker-miner-%{RPMTrackerAPI}-0
2012-01-24 12:23:29 +01:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
have an almost infinite number of properties, metadata (both
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
2013-03-13 23:39:15 +01:00
%package -n typelib-1_0-Tracker-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
Summary : Sparql library for Tracker -- Introspection bindings
Group : System/Libraries
2013-03-13 23:39:15 +01:00
%description -n typelib-1_0-Tracker-%{RPMTrackerAPI}
2010-08-27 22:12:46 +02:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
2011-09-09 11:56:14 +02:00
have an almost infinite number of properties, metadata (both
2010-08-27 22:12:46 +02:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
2012-01-24 12:23:29 +01:00
This package provides the GObject Introspection bindings for the
sparql library for Tracker.
2013-03-13 23:39:15 +01:00
%package -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
Summary : Extract library for Tracker -- Introspection bindings
Group : System/Libraries
2013-03-13 23:39:15 +01:00
%description -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
have an almost infinite number of properties, metadata (both
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
This package provides the GObject Introspection bindings for the
extract library for Tracker.
2013-03-13 23:39:15 +01:00
%package -n typelib-1_0-TrackerMiner-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
Summary : Miner library for Tracker -- Introspection bindings
Group : System/Libraries
2013-03-13 23:39:15 +01:00
%description -n typelib-1_0-TrackerMiner-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
have an almost infinite number of properties, metadata (both
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
This package provides the GObject Introspection bindings for the
miner library for Tracker.
2013-03-13 23:39:15 +01:00
%package -n libtracker-sparql-%{RPMTrackerAPI}-0
2010-08-27 22:12:46 +02:00
Summary : Sparql library for Tracker
Group : System/Libraries
2012-05-16 10:51:53 +02:00
# 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.
2013-03-13 23:39:15 +01:00
Requires : libtracker-common-%{RPMTrackerAPI} -0
2011-10-16 13:05:59 +02:00
Recommends: %{_name}
2010-08-27 22:12:46 +02:00
2013-03-13 23:39:15 +01:00
%description -n libtracker-sparql-%{RPMTrackerAPI}-0
2010-04-26 23:55:29 +02:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
2011-09-09 11:56:14 +02:00
have an almost infinite number of properties, metadata (both
2010-04-26 23:55:29 +02:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
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
Summary : Tracker -- Development files
Group : Development/Libraries/GNOME
2013-03-13 23:39:15 +01:00
Requires : libtracker-extract-%{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-TrackerMiner-%{RPMTrackerAPI} = %{version}
2010-04-26 23:55:29 +02:00
%description -n tracker-devel
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
2011-09-09 11:56:14 +02:00
have an almost infinite number of properties, metadata (both
2010-04-26 23:55:29 +02:00
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
2011-10-16 13:05:59 +02:00
%endif # !build_extras
%if %{build_evo}
%package -n %{_name}-miner-evolution
Summary : Tracker miner to index Evolution mails
Group : System/GUI/GNOME
Requires : %{_name} = %{version}
Requires : evolution
Supplements: packageand(%{_name}:evolution}
# Name changed during development of 11.4
Provides : evolution-tracker = %{version}
Obsoletes : evolution-tracker < %{version}
# A generic provides, since this is also an evolution plugin
Provides : evolution-plugin-tracker = %{version}
%description -n %{_name}-miner-evolution
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains an Evolution plugin that will index Evolution
mails.
%endif # build_evo
%if %{build_firefox}
%package -n %{_name}-miner-firefox
Summary : Tracker miner to index Firefox bookmarks
Group : System/GUI/GNOME
Requires : %{_name} = %{version}
Requires : MozillaFirefox
Supplements: packageand(%{_name}:MozillaFirefox}
# A generic provides, since this is also a firefox extension
Provides : MozillaFirefox-extension-tracker = %{version}
%description -n %{_name}-miner-firefox
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains a Firefox extension that will index
Firefox bookmarks.
%endif # build_firefox
%if %{build_miner_rss}
%package -n %{_name}-miner-rss
Summary : Tracker miner to index ATOM and RSS feeds
Group : System/GUI/GNOME
Requires : %{_name} = %{version}
%description -n %{_name}-miner-rss
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains a miner to index ATOM and RSS feeds.
%endif # build_miner_rss
%if %{build_thunderbird}
%package -n %{_name}-miner-thunderbird
Summary : Tracker miner to index Thunderbird mails
Group : System/GUI/GNOME
Requires : %{_name} = %{version}
Requires : MozillaThunderbird
Supplements: packageand(%{_name}:MozillaThunderbird}
# A generic provides, since this is also a thunderbird extension
Provides : MozillaThunderbird-extension-tracker = %{version}
%description -n %{_name}-miner-thunderbird
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains a Thunderbird extension that will index
Thunderbird mails.
%endif # build_thunderbird
%if %{build_gui}
%package -n %{_name}-gui
Summary : Graphical User Interface for Tracker
Group : System/GUI/GNOME
Requires : %{_name} = %{version}
Recommends: %{_name}-lang
%description -n %{_name}-gui
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
It consists of a common object database that allows entities to
have an almost infinite number of properties, metadata (both
embedded/harvested as well as user definable), a comprehensive
database of keywords/tags and links to other entities.
It provides additional features for file-based objects
including context linking and audit trails for a file object.
It has the ability to index, store, harvest metadata, retrieve
and search all types of files and other first class objects.
%endif # build_gui
%if %{build_nautilus}
2010-04-26 23:55:29 +02:00
2010-09-06 23:01:13 +02:00
%package -n nautilus-extension-tracker-tags
2010-04-26 23:55:29 +02:00
Summary : Tracker Plugin for Nautilus
Group : System/GUI/GNOME
2011-10-16 13:05:59 +02:00
Requires : %{_name} = %{version}
2010-04-26 23:55:29 +02:00
Requires : nautilus
2011-10-16 13:05:59 +02:00
Recommends: %{_name}-lang
Supplements: packageand(%{_name}:nautilus}
2010-09-06 23:01:13 +02:00
# Name changed during development of 11.4
Provides : nautilus-tracker = %{version}
Obsoletes : nautilus-tracker < %{version}
2010-04-26 23:55:29 +02:00
2010-09-06 23:01:13 +02:00
%description -n nautilus-extension-tracker-tags
2010-04-26 23:55:29 +02:00
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
2010-09-06 23:01:13 +02:00
This package contains an nautilus plugin to tag files with Tracker.
2011-10-16 13:05:59 +02:00
%endif # build_nautilus
2010-04-26 23:55:29 +02:00
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
2010-04-26 23:55:29 +02:00
%lang_package
2011-10-16 13:05:59 +02:00
%endif
2010-04-26 23:55:29 +02:00
%prep
2011-10-16 13:05:59 +02:00
%setup -q -n %{_name}-%{version}
2013-03-20 19:06:57 +01:00
translation-update-upstream
2010-09-06 23:01:13 +02:00
cp %{S:2} src/miners/rss/README.SUSE
2010-04-26 23:55:29 +02:00
%build
%configure \
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
2010-04-26 23:55:29 +02:00
--enable-libvorbis \
--enable-libflac \
2011-10-16 13:05:59 +02:00
%endif
%if %{build_evo}
--enable-miner-evolution \
%else
--disable-miner-evolution \
%endif
%if %{build_firefox}
--enable-miner-firefox \
--with-firefox-plugin-dir=" %{_datadir} / m o z i l l a / e x t e n s i o n s / %{firefox_appid} " \
%else
--disable-miner-firefox \
%endif
%if %{build_gui}
--enable-tracker-needle \
--enable-tracker-preferences \
%else
--disable-tracker-needle \
--disable-tracker-preferences \
%endif
%if %{build_nautilus}
--enable-nautilus-extension \
%else
--disable-nautilus-extension \
%endif
%if %{build_miner_rss}
--enable-miner-rss \
%else
--disable-miner-rss \
%endif
%if %{build_thunderbird}
--enable-miner-thunderbird \
--with-thunderbird-plugin-dir=" %{_datadir} / m o z i l l a / e x t e n s i o n s / %{thunderbird_appid} " \
%else
--disable-miner-thunderbird \
%endif
--disable-functional-tests
2011-05-02 15:45:08 +02:00
%__make %{?_smp_mflags} V=1
2010-04-26 23:55:29 +02:00
%install
2011-10-16 13:05:59 +02:00
%make_install
2010-04-26 23:55:29 +02:00
find %{buildroot} -type f -name " * . l a " -delete -print
2010-05-15 00:37:31 +02:00
rm -r %{buildroot} %{_datadir} /tracker-tests
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
## Normal build
2010-04-26 23:55:29 +02:00
%suse_update_desktop_file tracker-miner-fs
%suse_update_desktop_file tracker-store
2010-05-15 00:37:31 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /tracker/miners/tracker-miner-applications.desktop
2011-10-16 13:05:59 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /tracker/miners/tracker-miner-files.desktop
%find_lang %{_name} %{?no_lang_C}
# Only needed by gui tools
rm %{buildroot} %{_datadir} /icons/hicolor/*/apps/tracker.*
2012-05-16 10:51:53 +02: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 10:32:43 +02:00
mkdir -p %{buildroot} %{_datadir} /tracker/icons/
2013-03-13 23:39:15 +01:00
#fdupes %{buildroot}%{_datadir}/gtk-doc/html/
2011-10-16 13:05:59 +02:00
%fdupes %{buildroot} %{_datadir} /vala/
%else
## Extras build: remove files from main, miner-files, devel, lang and lib subpackages
2013-03-13 23:39:15 +01:00
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
2011-10-16 13:05:59 +02:00
# 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}
test ${file#%{_mandir}} != ${file} && rm -f %{buildroot}${file%%%{?ext_man}}
done
rm %{buildroot} %{_datadir} /locale/*/LC_MESSAGES/tracker.mo
%endif
%if %{build_miner_rss}
%suse_update_desktop_file tracker-miner-rss
%endif
%if %{build_evo}
2010-08-27 22:12:46 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /tracker/miners/tracker-miner-evolution.desktop
2011-07-06 12:34:31 +02:00
%endif
2011-10-16 13:05:59 +02:00
%if %{build_miner_rss}
2010-08-27 22:12:46 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /tracker/miners/tracker-miner-rss.desktop
2011-10-16 13:05:59 +02:00
%endif
%if %{build_gui}
2011-10-29 06:50:01 +02:00
%suse_update_desktop_file -r tracker-preferences System X-SuSE-Core-System
2011-01-10 11:00:52 +01:00
%suse_update_desktop_file tracker-needle DesktopUtility
2011-10-16 13:05:59 +02:00
%endif
%if %{build_thunderbird}
2011-09-09 11:56:14 +02:00
%suse_update_desktop_file trackerbird-launcher
2011-10-16 13:05:59 +02:00
%endif
2010-04-26 23:55:29 +02:00
%clean
rm -rf %{buildroot}
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
2011-07-06 12:34:31 +02:00
%post
%glib2_gsettings_schema_post
%postun
%glib2_gsettings_schema_postun
2010-08-27 22:12:46 +02:00
2011-10-16 13:05:59 +02:00
%post -n %{_name}-miner-files
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_post
2010-04-26 23:55:29 +02:00
2011-10-16 13:05:59 +02:00
%postun -n %{_name}-miner-files
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_postun
2010-04-26 23:55:29 +02:00
2013-03-13 23:39:15 +01:00
%post -n libtracker-extract-%{RPMTrackerAPI}-0
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_post
/sbin/ldconfig
2010-04-26 23:55:29 +02:00
2013-03-13 23:39:15 +01:00
%postun -n libtracker-extract-%{RPMTrackerAPI}-0
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_postun
/sbin/ldconfig
2010-04-26 23:55:29 +02:00
2013-03-13 23:39:15 +01:00
%post -n libtracker-miner-%{RPMTrackerAPI}-0 -p /sbin/ldconfig
2010-04-26 23:55:29 +02:00
2013-03-13 23:39:15 +01:00
%postun -n libtracker-miner-%{RPMTrackerAPI}-0 -p /sbin/ldconfig
2010-08-27 22:12:46 +02:00
2013-03-13 23:39:15 +01:00
%post -n libtracker-sparql-%{RPMTrackerAPI}-0 -p /sbin/ldconfig
2011-07-06 12:34:31 +02:00
2013-03-13 23:39:15 +01:00
%postun -n libtracker-sparql-%{RPMTrackerAPI}-0 -p /sbin/ldconfig
2011-10-16 13:05:59 +02:00
%endif # !build_extras
2010-04-26 23:55:29 +02:00
2011-10-16 13:05:59 +02:00
%if %{build_gui}
2011-02-14 01:09:11 +01:00
%if 0%{?suse_version} > 1130
2011-02-14 01:09:16 +01:00
2011-10-16 13:05:59 +02:00
%post -n %{_name}-gui
2011-02-14 01:09:11 +01:00
%desktop_database_post
%icon_theme_cache_post
2011-02-14 01:09:16 +01:00
2011-10-16 13:05:59 +02:00
%postun -n %{_name}-gui
2011-02-14 01:09:11 +01:00
%desktop_database_postun
%icon_theme_cache_postun
%endif
2011-10-16 13:05:59 +02:00
%endif
2011-02-14 01:09:11 +01:00
2011-10-16 13:05:59 +02:00
%if %{build_thunderbird}
2011-09-09 11:56:14 +02:00
%if 0%{?suse_version} > 1130
2011-09-09 11:56:21 +02:00
2011-10-16 13:05:59 +02:00
%post -n %{_name}-miner-thunderbird
2011-09-09 11:56:14 +02:00
%desktop_database_post
2011-10-16 13:05:59 +02:00
%postun -n %{_name}-miner-thunderbird
2011-09-09 11:56:14 +02:00
%desktop_database_postun
%endif
2011-10-16 13:05:59 +02:00
%endif
%if !%{build_extras}
2011-09-09 11:56:14 +02:00
2010-04-26 23:55:29 +02:00
%files
%defattr (-,root,root)
%doc AUTHORS ChangeLog COPYING README NEWS
%{_sysconfdir} /xdg/autostart/tracker-store.desktop
2011-10-16 13:05:59 +02:00
%{_bindir} /tracker-control
%{_bindir} /tracker-import
%{_bindir} /tracker-info
%{_bindir} /tracker-search
%{_bindir} /tracker-sparql
%{_bindir} /tracker-stats
%{_bindir} /tracker-tag
%{_libexecdir} /tracker-extract
%{_libexecdir} /tracker-store
%{_libexecdir} /tracker-writeback
2013-03-13 23:39:15 +01:00
%dir %{_libdir} /tracker-%{TrackerAPI} /
%{_libdir} /tracker-%{TrackerAPI} /extract-modules/
%{_libdir} /tracker-%{TrackerAPI} /writeback-modules/
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/
2010-04-26 23:55:29 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Extract.service
2011-09-09 11:56:14 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Writeback.service
2010-04-26 23:55:29 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.service
2011-07-06 12:34:31 +02:00
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.DB.gschema.xml
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.FTS.gschema.xml
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.Store.gschema.xml
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.Writeback.gschema.xml
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.enums.xml
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.gschema.xml
2011-05-31 13:35:56 +02:00
%{_mandir} /man1/tracker-control.1%{ext_man}
%{_mandir} /man1/tracker-extract.1%{ext_man}
%{_mandir} /man1/tracker-import.1%{ext_man}
%{_mandir} /man1/tracker-info.1%{ext_man}
%{_mandir} /man1/tracker-search.1%{ext_man}
%{_mandir} /man1/tracker-sparql.1%{ext_man}
%{_mandir} /man1/tracker-stats.1%{ext_man}
%{_mandir} /man1/tracker-store.1%{ext_man}
%{_mandir} /man1/tracker-tag.1%{ext_man}
2011-09-09 11:56:14 +02:00
%{_mandir} /man1/tracker-writeback.1%{ext_man}
2010-04-26 23:55:29 +02:00
# Exclude files which live in other packages
2011-10-16 13:05:59 +02:00
%exclude %{_datadir} /tracker/miners/tracker-miner-applications.desktop
%if %{build_evo}
%exclude %{_datadir} /tracker/miners/tracker-miner-evolution.desktop
%endif
%exclude %{_datadir} /tracker/miners/tracker-miner-files.desktop
%if %{build_miner_rss}
%exclude %{_datadir} /tracker/miners/tracker-miner-rss.desktop
%endif
%if %{build_gui}
%exclude %{_datadir} /tracker/tracker-needle.ui
%exclude %{_datadir} /tracker/tracker-preferences.ui
%endif
2010-09-06 23:01:13 +02:00
2011-10-16 13:05:59 +02:00
%files -n %{_name}-miner-files
2010-09-06 23:01:13 +02:00
%defattr (-,root,root)
%{_sysconfdir} /xdg/autostart/tracker-miner-fs.desktop
2011-10-16 13:05:59 +02:00
%{_libexecdir} /tracker-miner-fs
2010-09-06 23:01:13 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Miner.Applications.service
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Miner.Files.service
2011-07-06 12:34:31 +02:00
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/miners/tracker-miner-applications.desktop
%{_datadir} /tracker/miners/tracker-miner-files.desktop
2011-07-06 12:34:31 +02:00
%{_mandir} /man1/tracker-miner-fs.1%{ext_man}
2010-09-06 23:01:13 +02:00
2013-03-13 23:39:15 +01:00
%files -n libtracker-common-%{RPMTrackerAPI}-0
2012-05-16 10:32:43 +02:00
%defattr (-,root,root)
2013-03-13 23:39:15 +01:00
%{_libdir} /tracker-%{TrackerAPI} /libtracker-common.so.*
%{_libdir} /tracker-%{TrackerAPI} /libtracker-data.so.*
2012-05-16 10:32:43 +02:00
2013-03-13 23:39:15 +01:00
%files -n libtracker-extract-%{RPMTrackerAPI}-0
2011-10-16 13:05:59 +02:00
%defattr (-,root,root)
%{_libdir} /libtracker-extract*.so.*
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml
2013-03-13 23:39:15 +01:00
%files -n libtracker-miner-%{RPMTrackerAPI}-0
2011-10-16 13:05:59 +02:00
%defattr (-,root,root)
%{_libdir} /libtracker-miner*.so.*
2013-03-13 23:39:15 +01:00
%files -n libtracker-sparql-%{RPMTrackerAPI}-0
2011-10-16 13:05:59 +02:00
%defattr (-, root, root)
%{_libdir} /libtracker-sparql*.so.*
2012-01-24 12:23:29 +01:00
2013-03-13 23:39:15 +01:00
%files -n typelib-1_0-Tracker-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
%defattr (-,root,root)
2013-03-13 23:39:15 +01:00
%{_libdir} /girepository-1.0/Tracker-%{TrackerAPI} .typelib
2012-01-24 12:23:29 +01:00
2013-03-13 23:39:15 +01:00
%files -n typelib-1_0-TrackerExtract-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
%defattr (-,root,root)
2013-03-13 23:39:15 +01:00
%{_libdir} /girepository-1.0/TrackerExtract-%{TrackerAPI} .typelib
2012-01-24 12:23:29 +01:00
2013-03-13 23:39:15 +01:00
%files -n typelib-1_0-TrackerMiner-%{RPMTrackerAPI}
2012-01-24 12:23:29 +01:00
%defattr (-,root,root)
2013-03-13 23:39:15 +01:00
%{_libdir} /girepository-1.0/TrackerMiner-%{TrackerAPI} .typelib
2011-10-16 13:05:59 +02:00
%files -n tracker-devel
%defattr (-,root,root)
%{_libdir} /lib*.so
2013-03-13 23:39:15 +01:00
%{_includedir} /tracker-%{TrackerAPI} /
%{_libdir} /tracker-%{TrackerAPI} /libtracker-common.so
%{_libdir} /tracker-%{TrackerAPI} /libtracker-data.so
%{_libdir} /pkgconfig/tracker-extract-%{TrackerAPI} .pc
%{_libdir} /pkgconfig/tracker-miner-%{TrackerAPI} .pc
%{_libdir} /pkgconfig/tracker-sparql-%{TrackerAPI} .pc
2011-10-16 13:05:59 +02:00
%{_datadir} /gir-1.0/*.gir
%{_datadir} /gtk-doc/html/libtracker-miner/
%{_datadir} /gtk-doc/html/libtracker-extract/
%{_datadir} /gtk-doc/html/libtracker-sparql/
%dir %{_datadir} /vala
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/*.deps
%{_datadir} /vala/vapi/*.vapi
%endif # !build_extras
%if %{build_evo}
%files -n %{_name}-miner-evolution
%defattr (-,root,root)
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Miner.EMails.service
%{_datadir} /tracker/miners/tracker-miner-evolution.desktop
%{_libdir} /evolution/*/plugins/liborg-freedesktop-Tracker-evolution-plugin.so
%{_libdir} /evolution/*/plugins/org-freedesktop-Tracker-evolution-plugin.eplug
%endif
%if %{build_firefox}
%files -n %{_name}-miner-firefox
2011-09-09 11:56:14 +02:00
%defattr (-,root,root)
%{_datadir} /mozilla/extensions/%{firefox_appid} /trackerfox@bustany.org/
%dir %{_datadir} /xul-ext
%{_datadir} /xul-ext/trackerfox/
2011-10-16 13:05:59 +02:00
%endif
%if %{build_miner_rss}
%files -n %{_name}-miner-rss
2010-09-06 23:01:13 +02:00
%defattr (-,root,root)
%doc src/miners/rss/README.SUSE examples/rss-reader/initial-data.ttl
%{_sysconfdir} /xdg/autostart/tracker-miner-rss.desktop
2011-10-16 13:05:59 +02:00
%{_libexecdir} /tracker-miner-rss
2010-09-06 23:01:13 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Miner.RSS.service
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/miners/tracker-miner-rss.desktop
2011-07-06 12:34:31 +02:00
%{_mandir} /man1/tracker-miner-rss.1%{ext_man}
2011-10-16 13:05:59 +02:00
%endif
%if %{build_thunderbird}
2010-09-06 23:01:13 +02:00
2011-10-16 13:05:59 +02:00
%files -n %{_name}-miner-thunderbird
2011-09-09 11:56:14 +02:00
%defattr (-,root,root)
2013-07-04 19:58:34 +02:00
%dir %{_datadir} /mozilla
%dir %{_datadir} /mozilla/extensions
2011-09-09 11:56:14 +02:00
%dir %{_datadir} /mozilla/extensions/%{thunderbird_appid}
%{_datadir} /mozilla/extensions/%{thunderbird_appid} /trackerbird@bustany.org/
%dir %{_datadir} /xul-ext
%{_datadir} /xul-ext/trackerbird/
%{_datadir} /applications/trackerbird-launcher.desktop
2011-10-16 13:05:59 +02:00
%endif
%if %{build_gui}
2011-09-09 11:56:14 +02:00
2011-10-16 13:05:59 +02:00
%files -n %{_name}-gui
2010-04-26 23:55:29 +02:00
%defattr (-,root,root)
# preferences
%{_bindir} /tracker-preferences
%{_datadir} /applications/tracker-preferences.desktop
%{_datadir} /icons/hicolor/*/apps/tracker.*
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/tracker-preferences.ui
2010-04-26 23:55:29 +02:00
%{_mandir} /man1/tracker-preferences.1*
2011-02-15 16:40:14 +01:00
# Tracker Needle (former search tool)
2011-01-10 11:00:52 +01:00
%{_bindir} /tracker-needle
%{_datadir} /applications/tracker-needle.desktop
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/tracker-needle.ui
2011-01-10 11:00:52 +01:00
%{_mandir} /man1/tracker-needle.1*
2011-10-16 13:05:59 +02:00
%endif
%if %{build_nautilus}
2010-04-26 23:55:29 +02:00
2010-09-06 23:01:13 +02:00
%files -n nautilus-extension-tracker-tags
2010-04-26 23:55:29 +02:00
%defattr (-,root,root)
2011-05-02 15:45:08 +02:00
%{_libdir} /nautilus/extensions-3.0/libnautilus-tracker-tags*
2011-10-16 13:05:59 +02:00
%endif
2010-04-26 23:55:29 +02:00
2011-10-16 13:05:59 +02:00
%if !%{build_extras}
%files lang -f %{_name}.lang
%endif
2010-04-26 23:55:29 +02:00
%changelog