File gnome-agenda.spec of Package gnome-agenda

# spec file for package gnome-agenda
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Malcolm J Lewis <>
# 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:           gnome-agenda
Release:        0
# FIXME: stop installing icon ourselves once bnc#746063 is fixed
Summary:        Calendar application for the GNOME Desktop
License:        GPL-2.0
Group:          Productivity/Office/Other
# We need this until bnc#746063 is fixed.
Source1:        x-office-calendar.png
# PATCH-FIX-UPSTREAM gnome-agenda-fix-desktop-file.patch -- Fix categories string
Patch0:         gnome-agenda-fix-desktop-file.patch
# PATCH-FIX-UPSTREAM gnome-agenda-fix-non-executable-script.patch -- Fix non-executable-script warnings
Patch1:         gnome-agenda-fix-non-executable-script.patch
# PATCH-FIX-UPSTREAM gnome-agenda-fix-incorrect-fsf-address.patch -- Fix incorrect-fsf-address warnings
Patch2:         gnome-agenda-fix-incorrect-fsf-address.patch
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       python-configobj
Requires:       python-dateutil
Requires:       python-evolution
Requires:       python-gconf
Requires:       python-gdata
Requires:       python-gtk
Requires:       python-pysqlite
Requires:       vobject
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This application offers easy access to your calendars. Supported
calendars include iCalendar, Google Calendar, Novell Groupwise and

%setup -q -n agenda-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

python build

python install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
# Unfortunate that we have to do this manually, see bnc#746063
mkdir %{buildroot}%{_datadir}/pixmaps/
install -m 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/
%suse_update_desktop_file agenda
%fdupes %{buildroot}

%if 0%{?suse_version} > 1130



openSUSE Build Service is sponsored by