File rednotebook.spec of Package rednotebook

# spec file for package rednotebook
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           rednotebook
Version:        1.1.2
Release:        2
# Note: there's no lang package as of 1.1.1 because the translations are not installed in the usual place. See lp#687349.
License:        GPLv2+
Summary:        Graphical diary and journal
Group:          Productivity/Office/Other
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-gtk
BuildRequires:  python-webkitgtk
BuildRequires:  update-desktop-files
Requires:       python-gtk
Requires:       python-yaml
Recommends:     python-chardet
Recommends:     python-webkitgtk
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1110
%define python_sitelib %{py_sitedir}

RedNotebook is a graphical journal to keep track of notes and thoughts.
It includes a calendar navigation, customizable templates, export
functionality and word clouds. You can also format, tag and search your

%setup -q


%{__python} install --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --root=%{buildroot}
%suse_update_desktop_file %{name} Calendar
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

%if 0%{?suse_version} > 1130
gtk-update-icon-cache %{_datadir}/icons/hicolor || true

%if 0%{?suse_version} > 1130
gtk-update-icon-cache %{_datadir}/icons/hicolor || true


openSUSE Build Service is sponsored by