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 <malcolmlewis@opensuse.org>
#
# 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-agenda
Version:        0.3.1.6
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
Url:            http://code.google.com/p/gnome-agenda/
Source0:        http://gnome-agenda.googlecode.com/svn/tags/agenda-0.3.1.6.tar.gz
# We need this until bnc#746063 is fixed.
Source1:        x-office-calendar.png
# PATCH-FIX-UPSTREAM gnome-agenda-fix-desktop-file.patch malcolmlewis@opensuse.org -- Fix categories string http://code.google.com/p/gnome-agenda/issues/detail?id=14
Patch0:         gnome-agenda-fix-desktop-file.patch
# PATCH-FIX-UPSTREAM gnome-agenda-fix-non-executable-script.patch malcolmlewis@opensuse.org -- Fix non-executable-script warnings http://code.google.com/p/gnome-agenda/issues/detail?id=15
Patch1:         gnome-agenda-fix-non-executable-script.patch
# PATCH-FIX-UPSTREAM gnome-agenda-fix-incorrect-fsf-address.patch malcolmlewis@opensuse.org -- Fix incorrect-fsf-address warnings http://code.google.com/p/gnome-agenda/issues/detail?id=16
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
%py_requires

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

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

%build
python setup.py build

%install
python setup.py 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
%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files
%defattr(-,root,root)
%doc COPYING README TODO
%{_bindir}/agenda-gtk
%{python_sitelib}/agenda
%{python_sitelib}/agenda-%{version}-py%{py_ver}.egg-info
%{_datadir}/applications/agenda.desktop
%{_datadir}/pixmaps/x-office-calendar.png

%changelog
openSUSE Build Service is sponsored by