tracker/tracker-extras.spec

922 lines
31 KiB
RPMSpec
Raw Normal View History

#
# spec file for package tracker-extras
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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/
#
%define build_extras 1
%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
%define build_evo 1
%define build_firefox 1
%define build_gui 1
%define build_miner_flickr 1
%define build_miner_rss 1
%define build_nautilus 1
%if 0%{?suse_version} > 1140
%define build_thunderbird 1
%else
%define build_thunderbird 0
%endif
%endif
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%define thunderbird_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
# Do not edit this auto generated file! Edit tracker.spec.
Name: tracker-extras
%define _name tracker
Version: 0.14.2
Release: 0
Summary: Powerful object database, tag/metadata database, search tool and indexer
License: GPL-2.0+
Group: Productivity/Other
Url: http://projects.gnome.org/tracker/
Source0: http://download.gnome.org/sources/tracker/0.14/%{_name}-%{version}.tar.xz
Source1: README.SUSE.flickr
Source2: README.SUSE.rss
# 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.
Patch1: tracker-removeable-media-off.patch
# 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
# PATCH-FIX-UPSTREAM tracker-libgrss-0.5.patch bgo#671751 dimstar@opensuse.org -- Support and Require libgrss-0.5
Patch3: tracker-libgrss-0.5.patch
# PATCH-FIX-UPSTREAM tracker-evo-implicit.patch bgo#675413 dimstar@opensuse.org -- Include email-backend.h; fixes brp checks.
Patch4: tracker-evo-implicit.patch
BuildRequires: NetworkManager-devel >= 0.8
BuildRequires: enca-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glib2-devel >= 2.28.0
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
%if 0%{?suse_version} >= 1130
BuildRequires: libgnome-keyring-devel
%else
BuildRequires: gnome-keyring-devel
%endif
# 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
# Needed for patch3
BuildRequires: libtool
BuildRequires: libupower-glib-devel
BuildRequires: libuuid-devel
BuildRequires: sqlite3-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.12.0
BuildRequires: zlib-devel
BuildRequires: pkgconfig(gee-1.0)
%if !%{build_extras}
# Dependencies for extractors / writeback
BuildRequires: flac-devel
BuildRequires: giflib-devel
BuildRequires: libcue-devel
BuildRequires: libexif-devel
BuildRequires: libgsf-devel
BuildRequires: libosinfo-devel >= 0.0.2
%if 0%{?suse_version} >= 1140
BuildRequires: libgupnp-dlna-devel >= 0.5
%endif
BuildRequires: libexempi-devel
BuildRequires: libiptcdata-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libpoppler-glib-devel
BuildRequires: libtiff-devel
BuildRequires: libvorbis-devel
BuildRequires: libxml2-devel
BuildRequires: taglib-devel
BuildRequires: totem-pl-parser-devel
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}
BuildRequires: pkgconfig(libpanelapplet-4.0)
%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}
BuildRequires: pkgconfig(rest-0.7) >= 0.6
%endif
%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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%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
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.
%if !%{build_extras}
%package -n %{_name}-miner-files
Summary: Tracker miner to index files and applications
Group: System/GUI/GNOME
Requires: %{_name} = %{version}
%glib2_gsettings_schema_requires
%description -n %{_name}-miner-files
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.
# 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.
%package -n libtracker-common-0_14-0
Summary: Conveniance libraries for Tracker
Group: System/Libraries
%description -n libtracker-common-0_14-0
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains private conveniance libraries for the
various tracker libraries.
%package -n libtracker-extract-0_14-0
Summary: Extract library for Tracker
Group: System/Libraries
# 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.
Requires: libtracker-common-0_14-0
Recommends: %{_name}
%glib2_gsettings_schema_requires
%description -n libtracker-extract-0_14-0
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.
%package -n libtracker-miner-0_14-0
Summary: Miner library for Tracker
Group: System/Libraries
# 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.
Requires: libtracker-common-0_14-0
Recommends: %{_name}
%description -n libtracker-miner-0_14-0
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.
%package -n typelib-1_0-Tracker-0_14
Summary: Sparql library for Tracker -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Tracker-0_14
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
sparql library for Tracker.
%package -n typelib-1_0-TrackerExtract-0_14
Summary: Extract library for Tracker -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-TrackerExtract-0_14
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.
%package -n typelib-1_0-TrackerMiner-0_14
Summary: Miner library for Tracker -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-TrackerMiner-0_14
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.
%package -n libtracker-sparql-0_14-0
Summary: Sparql library for Tracker
Group: System/Libraries
# 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.
Requires: libtracker-common-0_14-0
Recommends: %{_name}
%description -n libtracker-sparql-0_14-0
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.
%package -n tracker-devel
Summary: Tracker -- Development files
Group: Development/Libraries/GNOME
Requires: libtracker-extract-0_14-0 = %{version}
Requires: libtracker-miner-0_14-0 = %{version}
Requires: libtracker-sparql-0_14-0 = %{version}
Requires: typelib-1_0-Tracker-0_14 = %{version}
Requires: typelib-1_0-TrackerExtract-0_14 = %{version}
Requires: typelib-1_0-TrackerMiner-0_14 = %{version}
%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
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_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_flickr}
%package -n %{_name}-miner-flickr
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
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_applet}
%package -n gnome-panel-applet-tracker
Summary: A GNOME panel applet for Tracker
Group: System/GUI/GNOME
Requires: %{_name} = %{version}
Recommends: %{_name}-lang
Supplements: packageand(%{_name}:gnome-panel}
# Name changed during development of 11.4
Provides: tracker-applet = %{_name}
Obsoletes: tracker-applet < %{_name}
%description -n gnome-panel-applet-tracker
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.
%endif # build_applet
%if %{build_nautilus}
%package -n nautilus-extension-tracker-tags
Summary: Tracker Plugin for Nautilus
Group: System/GUI/GNOME
Requires: %{_name} = %{version}
Requires: nautilus
Recommends: %{_name}-lang
Supplements: packageand(%{_name}:nautilus}
# Name changed during development of 11.4
Provides: nautilus-tracker = %{version}
Obsoletes: nautilus-tracker < %{version}
%description -n nautilus-extension-tracker-tags
Tracker is a powerful desktop-neutral first class object
database, tag/metadata database, search tool and indexer.
This package contains an nautilus plugin to tag files with Tracker.
%endif # build_nautilus
%if !%{build_extras}
%lang_package
%endif
%prep
%setup -q -n %{_name}-%{version}
translation-update-upstream
%if 0%{?suse_version} <= 1140
%patch1 -p1
%patch2
%endif
%patch3 -p1
%patch4 -p1
cp %{S:1} src/miners/flickr/README.SUSE
cp %{S:2} src/miners/rss/README.SUSE
%build
# Needed for patch3
AUTOPOINT='intltoolize --automake --copy' autoreconf --verbose --force --install
%configure \
%if !%{build_extras}
--enable-libvorbis \
--enable-libflac \
%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}/mozilla/extensions/%{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}/mozilla/extensions/%{thunderbird_appid}" \
%else
--disable-miner-thunderbird \
%endif
--disable-functional-tests
%__make %{?_smp_mflags} V=1
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
rm -r %{buildroot}%{_datadir}/tracker-tests
%if !%{build_extras}
## Normal build
%suse_update_desktop_file tracker-miner-fs
%suse_update_desktop_file tracker-store
%suse_update_desktop_file %{buildroot}%{_datadir}/tracker/miners/tracker-miner-applications.desktop
%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.*
# Ensure we have a /usr/share/tracker/icons/ folder, so the
# tracker-extras build can put icons in there without having to worry
mkdir -p %{buildroot}%{_datadir}/tracker/icons/
%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_14-0 libtracker-miner-0_14-0 libtracker-sparql-0_14-0 typelib-1_0-Tracker-0_14 typelib-1_0-TrackerExtract-0_14 typelib-1_0-TrackerMiner-0_14 libtracker-common-0_14-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}
%suse_update_desktop_file %{buildroot}%{_datadir}/tracker/miners/tracker-miner-evolution.desktop
%endif
%if %{build_miner_flickr}
%suse_update_desktop_file %{buildroot}%{_datadir}/tracker/miners/tracker-miner-flickr.desktop
%endif
%if %{build_miner_rss}
%suse_update_desktop_file %{buildroot}%{_datadir}/tracker/miners/tracker-miner-rss.desktop
%endif
%if %{build_gui}
%suse_update_desktop_file -r tracker-preferences System X-SuSE-Core-System
%suse_update_desktop_file tracker-needle DesktopUtility
%endif
%if %{build_thunderbird}
%suse_update_desktop_file trackerbird-launcher
%endif
%clean
rm -rf %{buildroot}
%if !%{build_extras}
%post
%glib2_gsettings_schema_post
%postun
%glib2_gsettings_schema_postun
%post -n %{_name}-miner-files
%glib2_gsettings_schema_post
%postun -n %{_name}-miner-files
%glib2_gsettings_schema_postun
%post -n libtracker-extract-0_14-0
%glib2_gsettings_schema_post
/sbin/ldconfig
%postun -n libtracker-extract-0_14-0
%glib2_gsettings_schema_postun
/sbin/ldconfig
%post -n libtracker-miner-0_14-0 -p /sbin/ldconfig
%postun -n libtracker-miner-0_14-0 -p /sbin/ldconfig
%post -n libtracker-sparql-0_14-0 -p /sbin/ldconfig
%postun -n libtracker-sparql-0_14-0 -p /sbin/ldconfig
%endif # !build_extras
%if %{build_gui}
%if 0%{?suse_version} > 1130
%post -n %{_name}-gui
%desktop_database_post
%icon_theme_cache_post
%postun -n %{_name}-gui
%desktop_database_postun
%icon_theme_cache_postun
%endif
%endif
%if %{build_thunderbird}
%if 0%{?suse_version} > 1130
%post -n %{_name}-miner-thunderbird
%desktop_database_post
%postun -n %{_name}-miner-thunderbird
%desktop_database_postun
%endif
%endif
%if !%{build_extras}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README NEWS
%{_sysconfdir}/xdg/autostart/tracker-store.desktop
%{_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
%dir %{_libdir}/tracker-0.14/
%{_libdir}/tracker-0.14/extract-modules/
%{_libdir}/tracker-0.14/writeback-modules/
%{_datadir}/tracker/
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Extract.service
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Writeback.service
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.service
%{_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
%{_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}
%{_mandir}/man1/tracker-writeback.1%{ext_man}
# Exclude files which live in other packages
%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
%endif
%files -n %{_name}-miner-files
%defattr(-,root,root)
%{_sysconfdir}/xdg/autostart/tracker-miner-fs.desktop
%{_libexecdir}/tracker-miner-fs
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Applications.service
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Files.service
%{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml
%{_datadir}/tracker/miners/tracker-miner-applications.desktop
%{_datadir}/tracker/miners/tracker-miner-files.desktop
%{_mandir}/man1/tracker-miner-fs.1%{ext_man}
%files -n libtracker-common-0_14-0
%defattr(-,root,root)
%{_libdir}/tracker-0.14/libtracker-common.so.*
%{_libdir}/tracker-0.14/libtracker-data.so.*
%files -n libtracker-extract-0_14-0
%defattr(-,root,root)
%{_libdir}/libtracker-extract*.so.*
%{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml
%files -n libtracker-miner-0_14-0
%defattr(-,root,root)
%{_libdir}/libtracker-miner*.so.*
%files -n libtracker-sparql-0_14-0
%defattr(-, root, root)
%{_libdir}/libtracker-sparql*.so.*
%files -n typelib-1_0-Tracker-0_14
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Tracker-0.14.typelib
%files -n typelib-1_0-TrackerExtract-0_14
%defattr(-,root,root)
%{_libdir}/girepository-1.0/TrackerExtract-0.14.typelib
%files -n typelib-1_0-TrackerMiner-0_14
%defattr(-,root,root)
%{_libdir}/girepository-1.0/TrackerMiner-0.14.typelib
%files -n tracker-devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/tracker-0.14/
%{_libdir}/tracker-0.14/libtracker-common.so
%{_libdir}/tracker-0.14/libtracker-data.so
%{_libdir}/pkgconfig/tracker-extract-0.14.pc
%{_libdir}/pkgconfig/tracker-miner-0.14.pc
%{_libdir}/pkgconfig/tracker-sparql-0.14.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
%defattr(-,root,root)
%{_datadir}/mozilla/extensions/%{firefox_appid}/trackerfox@bustany.org/
%dir %{_datadir}/xul-ext
%{_datadir}/xul-ext/trackerfox/
%endif
%if %{build_miner_flickr}
%files -n %{_name}-miner-flickr
%defattr(-,root,root)
%doc src/miners/flickr/README.SUSE
%{_sysconfdir}/xdg/autostart/tracker-miner-flickr.desktop
%{_libexecdir}/tracker-miner-flickr
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.Flickr.service
%{_datadir}/tracker/icons/tracker-miner-flickr.svg
%{_datadir}/tracker/miners/tracker-miner-flickr.desktop
%endif
%if %{build_miner_rss}
%files -n %{_name}-miner-rss
%defattr(-,root,root)
%doc src/miners/rss/README.SUSE examples/rss-reader/initial-data.ttl
%{_sysconfdir}/xdg/autostart/tracker-miner-rss.desktop
%{_libexecdir}/tracker-miner-rss
%{_datadir}/dbus-1/services/org.freedesktop.Tracker1.Miner.RSS.service
%{_datadir}/tracker/miners/tracker-miner-rss.desktop
%{_mandir}/man1/tracker-miner-rss.1%{ext_man}
%endif
%if %{build_thunderbird}
%files -n %{_name}-miner-thunderbird
%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
%endif
%if %{build_gui}
%files -n %{_name}-gui
%defattr(-,root,root)
# preferences
%{_bindir}/tracker-preferences
%{_datadir}/applications/tracker-preferences.desktop
%{_datadir}/icons/hicolor/*/apps/tracker.*
%{_datadir}/tracker/tracker-preferences.ui
%{_mandir}/man1/tracker-preferences.1*
# Tracker Needle (former search tool)
%{_bindir}/tracker-needle
%{_datadir}/applications/tracker-needle.desktop
%{_datadir}/tracker/tracker-needle.ui
%{_mandir}/man1/tracker-needle.1*
# explorer
%{_bindir}/tracker-explorer
%{_datadir}/tracker/tracker-explorer.ui
%endif
%if %{build_applet}
%files -n gnome-panel-applet-tracker
%defattr(-,root,root)
%{_datadir}/tracker/tracker-search-bar.ui
%{_datadir}/tracker/tracker-search-bar-menu.xml
%{_datadir}/dbus-1/services/org.gnome.panel.applet.SearchBarFactory.service
%{_datadir}/gnome-panel/4.0/applets/org.gnome.panel.SearchBar.panel-applet
%{_libexecdir}/tracker-search-bar
%{_mandir}/man1/tracker-search-bar.1*
%endif
%if %{build_nautilus}
%files -n nautilus-extension-tracker-tags
%defattr(-,root,root)
%{_libdir}/nautilus/extensions-3.0/libnautilus-tracker-tags*
%endif
%if !%{build_extras}
%files lang -f %{_name}.lang
%endif
%changelog