File gtg.spec of Package gtg

# spec file for package gtg
# Copyright (c) 2015 SUSE LINUX 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:           gtg
Version:        0.3.1
Release:        0
Summary:        Personal Organizer for GNOME
License:        GPL-3.0+
Group:          Productivity/Office/Organizers
Source1:        gtg.appdata.xml
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-liblarch >= 2.1
Requires:       python-liblarch_gtk >= 2.1
Requires:       python-xdg
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

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 need to do and need to know,
from small tasks to large projects.

%setup -q

%{__python} build

%{__python} install --prefix=%{_prefix} --root=%{buildroot}
%find_lang %{name} %{?no_lang_C}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable
mv %{buildroot}%{_datadir}/icons/hicolor/svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
# We don't ship any other icons in those icon sets.. 
rm -rf %{buildroot}%{_datadir}/icons/ubuntu-mono-{dark,light}
if [ -f %{buildroot}%{_datadir}/appdata/gtg.appdata.xml ]; then
  echo "Please remove the added gtg.appdata.xml file from the sources - the tarball installs it"
  mkdir -p %{buildroot}%{_datadir}/appdata
  cp %{S:1} %{buildroot}%{_datadir}/appdata/

%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}

rm -rf %{buildroot}



%defattr(-, root, root)
%doc %{_datadir}/help/C/gtg/
%dir %{_datadir}/appdata

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by