File gtg.spec of Package gtg

#
# spec file for package gtg
#
# 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 http://bugs.opensuse.org/
#



Name:           gtg
Version:        0.2.4
Release:        2
License:        GPLv3+
Summary:        Personal Organizer for GNOME
Url:            https://gtg.fritalk.com
Group:          Productivity/Office/Organizers
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  dbus-1
# dbus-1 is only required for file ownerships
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-gobject2
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
Requires:       python-configobj
Requires:       python-gobject2
Requires:       python-gtk
Requires:       python-xdg
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{suse_version} > 1110
BuildArch:      noarch
%endif
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
%endif

%description
Getting Things GNOME! (GTG) is a personal organizer for the GNOME desktop
environment inspired by the Getting Things Done (GTD) methodology. GTG is
designed with flexibility, adaptability, and ease of use in mind so it can be
used as more than just GTD software.

GTG is intended to help you track everything you needto do and need to know,
from small tasks to large projects.

%lang_package
%prep
%setup -q

%build
%{__python} setup.py build

%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name} ProjectManagement
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-, root, root)
%doc AUTHORS LICENSE CHANGELOG README
%{_bindir}/gtg
%{_bindir}/gtg_new_task
%{python_sitelib}/GTG/
%{python_sitelib}/gtg-%{version}*.egg-info
%{_datadir}/applications/gtg.desktop
%{_datadir}/gtg/
%{_datadir}/icons/hicolor/*/apps/gtg.*
%{_datadir}/dbus-1/services/org.GTG.service
%{_mandir}/man1/gtg.1.gz
%{_mandir}/man1/gtg_new_task.1.gz

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by