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
#
2011-01-10 11:01:03 +01:00
# Copyright (c) 2011 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_applet 0
%define build_evo 0
%define build_firefox 0
%define build_gui 0
%define build_miner_flickr 0
%define build_miner_rss 0
%define build_nautilus 0
%define build_thunderbird 0
%else
%define build_applet 1
2012-01-06 11:46:55 +01:00
%define build_evo 0
2011-10-16 13:05:59 +02:00
%define build_firefox 1
%define build_gui 1
%define build_miner_flickr 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
2012-01-06 11:46:55 +01:00
Version : 0.12.8
2011-09-09 11:56:14 +02:00
Release : 1
2012-01-06 11:46:55 +01:00
# FIXME: Verify if the evolution plugin can be built again (define build_evo 1 in build_extras section)
2011-10-13 12:27:36 +02:00
# FIXME: missing pkgconfig(libcue) BuildRequires: we don't have this packaged...
2010-04-26 23:55:29 +02:00
License : GPLv2+
Summary : Powerful object database, tag/metadata database, search tool and indexer
Url : http://projects.gnome.org/tracker/
Group : Productivity/Other
2012-01-06 11:46:55 +01:00
Source0 : http://download.gnome.org/sources/tracker/0.12/%{_name}-%{version} .tar.xz
2010-09-06 23:01:13 +02:00
Source1 : README.SUSE.flickr
Source2 : README.SUSE.rss
2011-07-08 09:38:58 +02:00
# PATCH-FIX-OPENSUSE tracker-removeable-media-off.patch bgo622288 badshah400@gmail.com -- Disable indexing on removable media by default. This is only needed for 11.4 and earlier, as 12.1 and later have proper default values in GSettings.
2010-06-21 19:45:37 +02:00
Patch1 : tracker-removeable-media-off.patch
2011-10-16 13:05:59 +02:00
# PATCH-FIX-OPENSUSE tracker-fix-include-sched-idle.patch malcolmlewis@opensuse.org -- Add linux/sched.h to includes for 11.4 only for the location of SCHED_IDLE. This is only needed for 11.4 and earlier.
Patch2 : tracker-fix-include-sched-idle.patch
2012-01-06 11:46:55 +01:00
# PATCH-FIX-UPSTREAM tracker-g_thread.patch dimstar@opensuse.org -- Remobe g_thread_init calls. Patch taken from upstream git.
Patch3 : tracker-g_thread.patch
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++
2011-09-13 12:33:48 +02:00
BuildRequires : glib2-devel >= 2.28.0
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
BuildRequires : gstreamer-0_10-plugins-base-devel >= 0.10.31
BuildRequires : libicu-devel
BuildRequires : libupower-glib-devel
BuildRequires : libuuid-devel
BuildRequires : sqlite3-devel
BuildRequires : translation-update-upstream
BuildRequires : update-desktop-files
BuildRequires : vala >= 0.12.0
2012-01-06 11:46:55 +01:00
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires : xz
2011-10-16 13:05:59 +02:00
BuildRequires : zlib-devel
BuildRequires : pkgconfig(gee-1.0)
%if !%{build_extras}
# Dependencies for extractors / writeback
BuildRequires : flac-devel
BuildRequires : giflib-devel
BuildRequires : libexif-devel
2010-04-26 23:55:29 +02:00
BuildRequires : libgsf-devel
2010-09-06 17:49:08 +02:00
%if 0%{?suse_version} >= 1140
2011-09-09 11:56:14 +02:00
BuildRequires : libgupnp-dlna-devel >= 0.5
2010-09-06 17:49:08 +02:00
%endif
2010-04-26 23:55:29 +02:00
BuildRequires : libiptcdata-devel
BuildRequires : libpng-devel
BuildRequires : libpoppler-glib-devel
BuildRequires : libtiff-devel
2011-10-16 13:05:59 +02:00
BuildRequires : libexempi-devel
2010-04-26 23:55:29 +02:00
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
BuildRequires : tracker
BuildRequires : tracker-devel
BuildRequires : tracker-miner-files
%endif # !build_extras
%if %{build_applet}
2011-05-02 15:45:08 +02:00
BuildRequires : pkgconfig(libpanelapplet-4.0)
2011-10-16 13:05:59 +02:00
%endif
%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_flickr}
2011-09-09 11:56:14 +02:00
BuildRequires : pkgconfig(rest-0.7) >= 0.6
2011-07-06 12:34:31 +02:00
%endif
2011-10-16 13:05:59 +02:00
%if %{build_miner_rss}
BuildRequires : libgrss-devel
%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
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
License : GPLv2+
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.
2011-09-09 11:56:14 +02:00
%package -n libtracker-extract-0_12-0
2010-04-26 23:55:29 +02:00
License : GPLv2+
Summary : Extract library for Tracker
Group : System/Libraries
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
2011-09-09 11:56:14 +02:00
%description -n libtracker-extract-0_12-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.
2011-09-09 11:56:14 +02:00
%package -n libtracker-miner-0_12-0
2010-04-26 23:55:29 +02:00
License : GPLv2+
Summary : Miner library for Tracker
Group : System/Libraries
2011-10-16 13:05:59 +02:00
Recommends: %{_name}
2010-04-26 23:55:29 +02:00
2011-09-09 11:56:14 +02:00
%description -n libtracker-miner-0_12-0
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.
2011-09-09 11:56:14 +02:00
%package -n libtracker-sparql-0_12-0
2010-08-27 22:12:46 +02:00
License : GPLv2+
Summary : Sparql library for Tracker
Group : System/Libraries
2011-10-16 13:05:59 +02:00
Recommends: %{_name}
2010-08-27 22:12:46 +02:00
2011-09-09 11:56:14 +02:00
%description -n libtracker-sparql-0_12-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
License : GPLv2+
Summary : Tracker -- Development files
Group : Development/Libraries/GNOME
2011-09-09 11:56:14 +02:00
Requires : libtracker-extract-0_12-0 = %{version}
Requires : libtracker-miner-0_12-0 = %{version}
Requires : libtracker-sparql-0_12-0 = %{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
License : GPLv2+
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
License : GPLv2+
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_flickr}
%package -n %{_name}-miner-flickr
License : GPLv2+
Summary : Tracker miner to index Flickr images
Group : System/GUI/GNOME
Requires : %{_name} = %{version}
%description -n %{_name}-miner-flickr
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains a miner to index Flickr images.
%endif # build_miner_flickr
%if %{build_miner_rss}
%package -n %{_name}-miner-rss
License : GPLv2+
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
License : GPLv2+
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
License : GPLv2+
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_applet}
2010-04-26 23:55:29 +02:00
2010-09-06 23:01:13 +02:00
%package -n gnome-panel-applet-tracker
2010-04-26 23:55:29 +02:00
License : GPLv2+
Summary : A GNOME panel applet for Tracker
Group : System/GUI/GNOME
2011-10-16 13:05:59 +02:00
Requires : %{_name} = %{version}
Recommends: %{_name}-lang
Supplements: packageand(%{_name}:gnome-panel}
2010-09-06 23:01:13 +02:00
# Name changed during development of 11.4
2011-10-16 13:05:59 +02:00
Provides : tracker-applet = %{_name}
Obsoletes : tracker-applet < %{_name}
2010-04-26 23:55:29 +02:00
2010-09-06 23:01:13 +02:00
%description -n gnome-panel-applet-tracker
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.
This package contains a panel applet to easily use Tracker.
2011-10-16 13:05:59 +02:00
%endif # build_applet
%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
License : GPLv2+
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}
2010-04-26 23:55:29 +02:00
translation-update-upstream
2011-07-08 09:38:58 +02:00
%if 0%{?suse_version} <= 1140
2010-06-21 19:45:37 +02:00
%patch1 -p1
2011-10-16 13:05:59 +02:00
%patch2
2011-07-08 09:38:58 +02:00
%endif
2012-01-06 11:46:55 +01:00
%patch3 -p1
2010-09-06 23:01:13 +02:00
cp %{S:1} src/miners/flickr/README.SUSE
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_applet}
--enable-tracker-search-bar \
%else
--disable-tracker-search-bar \
%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-explorer \
--enable-tracker-needle \
--enable-tracker-preferences \
%else
--disable-tracker-explorer \
--disable-tracker-needle \
--disable-tracker-preferences \
%endif
%if %{build_nautilus}
--enable-nautilus-extension \
%else
--disable-nautilus-extension \
%endif
%if %{build_miner_flickr}
--enable-miner-flickr \
%else
--disable-miner-flickr \
%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.*
%fdupes %{buildroot} %{_datadir} /gtk-doc/html/
%fdupes %{buildroot} %{_datadir} /vala/
%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-0_12-0 libtracker-miner-0_12-0 libtracker-sparql-0_12-0`; 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}
test ${file#%{_mandir}} != ${file} && rm -f %{buildroot}${file%%%{?ext_man}}
done
rm %{buildroot} %{_datadir} /locale/*/LC_MESSAGES/tracker.mo
%endif
%if %{build_miner_flickr}
%suse_update_desktop_file tracker-miner-flickr
%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_flickr}
2010-08-27 22:12:46 +02:00
%suse_update_desktop_file %{buildroot} %{_datadir} /tracker/miners/tracker-miner-flickr.desktop
2011-10-16 13:05:59 +02:00
%endif
%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
2011-09-09 11:56:14 +02:00
%post -n libtracker-extract-0_12-0
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_post
/sbin/ldconfig
2010-04-26 23:55:29 +02:00
2011-09-09 11:56:14 +02:00
%postun -n libtracker-extract-0_12-0
2011-07-06 12:34:31 +02:00
%glib2_gsettings_schema_postun
/sbin/ldconfig
2010-04-26 23:55:29 +02:00
2011-09-09 11:56:14 +02:00
%post -n libtracker-miner-0_12-0 -p /sbin/ldconfig
2010-04-26 23:55:29 +02:00
2011-09-09 11:56:14 +02:00
%postun -n libtracker-miner-0_12-0 -p /sbin/ldconfig
2010-08-27 22:12:46 +02:00
2011-09-09 11:56:14 +02:00
%post -n libtracker-sparql-0_12-0 -p /sbin/ldconfig
2011-07-06 12:34:31 +02:00
2011-09-09 11:56:14 +02:00
%postun -n libtracker-sparql-0_12-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
%{_libdir} /tracker-0.12/
%{_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_flickr}
%exclude %{_datadir} /tracker/icons/tracker-miner-flickr.svg
%exclude %{_datadir} /tracker/miners/tracker-miner-flickr.desktop
%endif
%if %{build_miner_rss}
%exclude %{_datadir} /tracker/miners/tracker-miner-rss.desktop
%endif
%if %{build_gui}
%exclude %{_datadir} /tracker/tracker-explorer.ui
%exclude %{_datadir} /tracker/tracker-needle.ui
%exclude %{_datadir} /tracker/tracker-preferences.ui
%endif
%if %{build_applet}
%exclude %{_datadir} /tracker/tracker-search-bar.ui
%exclude %{_datadir} /tracker/tracker-search-bar-menu.xml
2011-07-06 12:34:31 +02:00
%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
2011-10-16 13:05:59 +02:00
%files -n libtracker-extract-0_12-0
%defattr (-,root,root)
%{_libdir} /libtracker-extract*.so.*
%{_libdir} /girepository-1.0/TrackerExtract-0.12.typelib
%{_datadir} /glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml
%files -n libtracker-miner-0_12-0
%defattr (-,root,root)
%{_libdir} /libtracker-miner*.so.*
%{_libdir} /girepository-1.0/TrackerMiner-0.12.typelib
%files -n libtracker-sparql-0_12-0
%defattr (-, root, root)
%{_libdir} /libtracker-sparql*.so.*
%{_libdir} /girepository-1.0/Tracker-0.12.typelib
%files -n tracker-devel
%defattr (-,root,root)
%{_libdir} /lib*.so
%{_includedir} /tracker-0.12/
%{_libdir} /pkgconfig/tracker-extract-0.12.pc
%{_libdir} /pkgconfig/tracker-miner-0.12.pc
%{_libdir} /pkgconfig/tracker-sparql-0.12.pc
%{_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_flickr}
2011-09-09 11:56:14 +02:00
2011-10-16 13:05:59 +02:00
%files -n %{_name}-miner-flickr
2010-09-06 23:01:13 +02:00
%defattr (-,root,root)
%doc src/miners/flickr/README.SUSE
%{_sysconfdir} /xdg/autostart/tracker-miner-flickr.desktop
2011-10-16 13:05:59 +02:00
%{_libexecdir} /tracker-miner-flickr
2010-09-06 23:01:13 +02:00
%{_datadir} /dbus-1/services/org.freedesktop.Tracker1.Miner.Flickr.service
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/icons/tracker-miner-flickr.svg
%{_datadir} /tracker/miners/tracker-miner-flickr.desktop
%endif
2010-09-06 23:01:13 +02:00
2011-10-16 13:05:59 +02:00
%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)
%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-02-18 12:42:45 +01:00
# explorer
2011-10-16 13:05:59 +02:00
%{_bindir} /tracker-explorer
%{_datadir} /tracker/tracker-explorer.ui
%endif
2010-08-27 22:12:46 +02:00
2011-10-16 13:05:59 +02:00
%if %{build_applet}
2010-04-26 23:55:29 +02:00
2010-09-06 23:01:13 +02:00
%files -n gnome-panel-applet-tracker
2010-04-26 23:55:29 +02:00
%defattr (-,root,root)
2011-10-16 13:05:59 +02:00
%{_datadir} /tracker/tracker-search-bar.ui
%{_datadir} /tracker/tracker-search-bar-menu.xml
2011-02-15 16:40:14 +01:00
%{_datadir} /dbus-1/services/org.gnome.panel.applet.SearchBarFactory.service
2011-05-02 15:45:08 +02:00
%{_datadir} /gnome-panel/4.0/applets/org.gnome.panel.SearchBar.panel-applet
2010-04-26 23:55:29 +02:00
%{_libexecdir} /tracker-search-bar
%{_mandir} /man1/tracker-search-bar.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