File gnome-activity-journal.spec of Package gnome-activity-journal
#
# spec file for package gnome-activity-journal
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Andrew Wafaa, United Kingdom.
#
# 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/
#
Name: gnome-activity-journal
Version: 0.8.0
Release: 0
Summary: Chronological journal to help find files
License: GPL-3.0+ and CC-BY-SA-3.0
Group: Productivity/File utilities
Url: http://live.gnome.org/GnomeActivityJournal
Source: http://launchpad.net/gnome-activity-journal/0.8/0.8.0/+download/%{name}-%{version}.tar.gz
Source99: gnome-activity-journal-rpmlintrc
# PATCH-FIX-UPSTREAM gaj-zeitgeist09.patch bnc#768577 lp#930196 dimstar@openssue.org -- Fix execution with zeitgeist 0.9
Patch0: gaj-zeitgeist09.patch
BuildRequires: fdupes
BuildRequires: gconf2-devel
# For directory ownership
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python-devel
BuildRequires: python-distutils-extra
BuildRequires: update-desktop-files
BuildRequires: zeitgeist
Requires: dbus-1-python
Requires: python-gconf
# Needed for gnome.ui
Requires: python-gnome
Requires: python-gtk
Requires: zeitgeist
Recommends: %{name}-lang
# We don't provide gnome-zeitgeist since the binary name has changed
Obsoletes: gnome-zeitgeist
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1110
BuildArch: noarch
%endif
%gconf_schemas_prereq
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%description
GNOME Activity Journal is a tool for easily browsing and finding files
on your computer. It keeps a chronological journal of all file activity
and supports tagging and establishing relationships between groups of
files.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Fix for gconf schemas that are not correctly installed
mkdir -p %{buildroot}%{_sysconfdir}/gconf/schemas/
mv %{buildroot}%{_datadir}/gconf/schemas/gnome-activity-journal.schemas %{buildroot}%{_sysconfdir}/gconf/schemas
%suse_update_desktop_file gnome-activity-journal DesktopUtility
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}%{py_sitedir}
%pre -f %{name}.schemas_pre
%post
%desktop_database_post
%icon_theme_cache_post
%preun -f %{name}.schemas_preun
%postun
%desktop_database_postun
%icon_theme_cache_postun
%posttrans -f %{name}.schemas_posttrans
%clean
rm -rf %{buildroot}
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_bindir}/gnome-activity-journal
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%{_datadir}/gnome-activity-journal/
%{_datadir}/pixmaps/gnome-activity-journal.xpm
%dir %{_datadir}/zeitgeist/_zeitgeist/
%dir %{_datadir}/zeitgeist/_zeitgeist/engine/
%dir %{_datadir}/zeitgeist/_zeitgeist/engine/extensions/
%{_datadir}/zeitgeist/_zeitgeist/engine/extensions/gnome_activity_journal.py
%{python_sitelib}/*.egg-info
%{_mandir}/man?/*.*
%files lang -f %{name}.lang
%changelog