Accepting request 81425 from GNOME:Apps

Pushing G:A

OBS-URL: https://build.opensuse.org/request/show/81425
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tracker?expand=0&rev=32
This commit is contained in:
Sascha Peilicke
2011-09-09 09:56:14 +00:00
committed by Git OBS Bridge
parent 1256de4568
commit 5f8b2a079f
4 changed files with 235 additions and 42 deletions

View File

@@ -19,20 +19,27 @@
%define build_evo 0%{?suse_version} <= 1140
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%define thunderbird_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
Name: tracker
Version: 0.11.0
Release: 3
# FIXME: on update, check if we can re-enable the evo miner for Factory (last check: 0.11.0)
Version: 0.11.2
Release: 1
# FIXME: on update, check if we can re-enable the evo miner for Factory, see bgo#653517 (last check: 0.11.2)
# FIXME: on update, check if the sed hack in %%build is still needed (see bgo#658232) (last check: 0.11.2)
License: GPLv2+
Summary: Powerful object database, tag/metadata database, search tool and indexer
Url: http://projects.gnome.org/tracker/
Group: Productivity/Other
Source0: %{name}-%{version}.tar.bz2
Source0: http://download.gnome.org/sources/tracker/0.11/%{name}-%{version}.tar.bz2
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
BuildRequires: NetworkManager-devel
# It's a bit annoying to require those for the build, see bgo#655618.
BuildRequires: MozillaFirefox
BuildRequires: MozillaThunderbird
BuildRequires: NetworkManager-devel >= 0.8
BuildRequires: dbus-1-glib-devel
# Needed for the gtk-doc
BuildRequires: dia
@@ -48,7 +55,7 @@ BuildRequires: giflib-devel
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: graphviz
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: gstreamer-0_10-plugins-base-devel >= 0.10.31
BuildRequires: gtk-doc
BuildRequires: gtk3-devel
BuildRequires: intltool
@@ -62,7 +69,7 @@ BuildRequires: gnome-keyring-devel
BuildRequires: libgrss-devel
BuildRequires: libgsf-devel
%if 0%{?suse_version} >= 1140
BuildRequires: libgupnp-dlna-devel
BuildRequires: libgupnp-dlna-devel >= 0.5
%endif
BuildRequires: libicu-devel
BuildRequires: libiptcdata-devel
@@ -83,7 +90,7 @@ BuildRequires: zlib-devel
BuildRequires: pkgconfig(gee-1.0)
BuildRequires: pkgconfig(libnautilus-extension)
BuildRequires: pkgconfig(libpanelapplet-4.0)
BuildRequires: pkgconfig(rest-0.7)
BuildRequires: pkgconfig(rest-0.7) >= 0.6
Recommends: %{name}-lang
# We want to index files by default, if possible
Recommends: %{name}-miner-files
@@ -98,7 +105,7 @@ 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 infinte number of properties, metadata (both
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.
@@ -144,6 +151,23 @@ database, tag/metadata database, search tool and indexer.
This package contains a miner to index files and applications.
%package 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 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.
%package miner-flickr
License: GPLv2+
Summary: Tracker miner to index Flickr images
@@ -168,6 +192,23 @@ database, tag/metadata database, search tool and indexer.
This package contains a miner to index ATOM and RSS feeds.
%package 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 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.
%package gui
License: GPLv2+
Summary: Graphical User Interface for Tracker
@@ -180,7 +221,7 @@ 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 infinte number of properties, metadata (both
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.
@@ -190,19 +231,19 @@ 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-extract-0_11-0
%package -n libtracker-extract-0_12-0
License: GPLv2+
Summary: Extract library for Tracker
Group: System/Libraries
Recommends: %{name}
%glib2_gsettings_schema_requires
%description -n libtracker-extract-0_11-0
%description -n libtracker-extract-0_12-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 infinte number of properties, metadata (both
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.
@@ -212,18 +253,18 @@ 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_11-0
%package -n libtracker-miner-0_12-0
License: GPLv2+
Summary: Miner library for Tracker
Group: System/Libraries
Recommends: %{name}
%description -n libtracker-miner-0_11-0
%description -n libtracker-miner-0_12-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 infinte number of properties, metadata (both
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.
@@ -233,18 +274,18 @@ 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-sparql-0_11-0
%package -n libtracker-sparql-0_12-0
License: GPLv2+
Summary: Sparql library for Tracker
Group: System/Libraries
Recommends: %{name}
%description -n libtracker-sparql-0_11-0
%description -n libtracker-sparql-0_12-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 infinte number of properties, metadata (both
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.
@@ -259,16 +300,16 @@ License: GPLv2+
Summary: Tracker -- Development files
Group: Development/Libraries/GNOME
Requires: glib2-devel
Requires: libtracker-extract-0_11-0 = %{version}
Requires: libtracker-miner-0_11-0 = %{version}
Requires: libtracker-sparql-0_11-0 = %{version}
Requires: libtracker-extract-0_12-0 = %{version}
Requires: libtracker-miner-0_12-0 = %{version}
Requires: libtracker-sparql-0_12-0 = %{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 infinte number of properties, metadata (both
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.
@@ -324,7 +365,8 @@ cp %{S:1} src/miners/flickr/README.SUSE
cp %{S:2} src/miners/rss/README.SUSE
%build
autoreconf
# See bgo#658232
sed -i "s:update-desktop-database:/bin/true:g" src/plugins/thunderbird/Makefile*
%configure \
--enable-libvorbis \
--enable-libflac \
@@ -332,7 +374,9 @@ autoreconf
--enable-tracker-search-bar \
--enable-tracker-preferences \
--disable-functional-tests \
--enable-gtk-doc
--enable-gtk-doc \
--with-firefox-plugin-dir="%{_datadir}/mozilla/extensions/%{firefox_appid}" \
--with-thunderbird-plugin-dir="%{_datadir}/mozilla/extensions/%{thunderbird_appid}"
%__make %{?_smp_mflags} V=1
%install
@@ -353,6 +397,7 @@ rm -r %{buildroot}%{_datadir}/tracker-tests
%suse_update_desktop_file %{buildroot}%{_datadir}/tracker/miners/tracker-miner-rss.desktop
%suse_update_desktop_file tracker-preferences X-SuSE-ControlCenter-Personal
%suse_update_desktop_file tracker-needle DesktopUtility
%suse_update_desktop_file trackerbird-launcher
%fdupes %{buildroot}
%clean
@@ -370,21 +415,21 @@ rm -rf %{buildroot}
%postun miner-files
%glib2_gsettings_schema_postun
%post -n libtracker-extract-0_11-0
%post -n libtracker-extract-0_12-0
%glib2_gsettings_schema_post
/sbin/ldconfig
%postun -n libtracker-extract-0_11-0
%postun -n libtracker-extract-0_12-0
%glib2_gsettings_schema_postun
/sbin/ldconfig
%post -n libtracker-miner-0_11-0 -p /sbin/ldconfig
%post -n libtracker-miner-0_12-0 -p /sbin/ldconfig
%postun -n libtracker-miner-0_11-0 -p /sbin/ldconfig
%postun -n libtracker-miner-0_12-0 -p /sbin/ldconfig
%post -n libtracker-sparql-0_11-0 -p /sbin/ldconfig
%post -n libtracker-sparql-0_12-0 -p /sbin/ldconfig
%postun -n libtracker-sparql-0_11-0 -p /sbin/ldconfig
%postun -n libtracker-sparql-0_12-0 -p /sbin/ldconfig
%if 0%{?suse_version} > 1130
@@ -400,6 +445,14 @@ rm -rf %{buildroot}
%icon_theme_cache_postun
%endif
%if 0%{?suse_version} > 1130
%post miner-thunderbird
%desktop_database_post
%postun miner-thunderbird
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README NEWS
@@ -414,9 +467,10 @@ rm -rf %{buildroot}
%{_libexecdir}/%{name}-extract
%{_libexecdir}/%{name}-store
%{_libexecdir}/%{name}-writeback
%{_libdir}/%{name}-0.11/
%{_libdir}/%{name}-0.12/
%{_datadir}/%{name}/
%{_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
@@ -433,6 +487,7 @@ rm -rf %{buildroot}
%{_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}/%{name}/miners/tracker-miner-applications.desktop
%if 0%{?build_evo}
@@ -468,6 +523,12 @@ rm -rf %{buildroot}
%{_datadir}/%{name}/miners/tracker-miner-files.desktop
%{_mandir}/man1/tracker-miner-fs.1%{ext_man}
%files miner-firefox
%defattr(-,root,root)
%{_datadir}/mozilla/extensions/%{firefox_appid}/trackerfox@bustany.org/
%dir %{_datadir}/xul-ext
%{_datadir}/xul-ext/trackerfox/
%files miner-flickr
%defattr(-,root,root)
%doc src/miners/flickr/README.SUSE
@@ -485,6 +546,14 @@ rm -rf %{buildroot}
%{_datadir}/%{name}/miners/tracker-miner-rss.desktop
%{_mandir}/man1/tracker-miner-rss.1%{ext_man}
%files 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
%files gui
%defattr(-,root,root)
# preferences
@@ -502,26 +571,26 @@ rm -rf %{buildroot}
%{_bindir}/%{name}-explorer
%{_datadir}/%{name}/tracker-explorer.ui
%files -n libtracker-extract-0_11-0
%files -n libtracker-extract-0_12-0
%defattr(-,root,root)
%{_libdir}/libtracker-extract*.so.*
%{_libdir}/girepository-1.0/TrackerExtract-0.11.typelib
%{_libdir}/girepository-1.0/TrackerExtract-0.12.typelib
%{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml
%files -n libtracker-miner-0_11-0
%files -n libtracker-miner-0_12-0
%defattr(-,root,root)
%{_libdir}/libtracker-miner*.so.*
%{_libdir}/girepository-1.0/TrackerMiner-0.11.typelib
%{_libdir}/girepository-1.0/TrackerMiner-0.12.typelib
%files -n libtracker-sparql-0_11-0
%files -n libtracker-sparql-0_12-0
%defattr(-, root, root)
%{_libdir}/libtracker-sparql*.so.*
%{_libdir}/girepository-1.0/Tracker-0.11.typelib
%{_libdir}/girepository-1.0/Tracker-0.12.typelib
%files -n tracker-devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/tracker-0.11/
%{_includedir}/tracker-0.12/
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/libtracker-miner/
%{_datadir}/gtk-doc/html/libtracker-extract/