File gtg.spec of Package gtg

# spec file for package gtg
# Copyright (c) 2020 SUSE LLC
# 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.4.0
Release:        0
Summary:        Personal Organizer for GNOME
License:        GPL-3.0-or-later
Group:          Productivity/Office/Organizers
BuildRequires:  dbus-1
BuildRequires:  fdupes
# dbus-1 is only required for file ownerships
BuildRequires:  meson
BuildRequires:  python-devel
BuildRequires:  python-gobject2
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
Requires:       python3-liblarch-gtk
Requires:       python3-nose
Requires:       python3-spec
Requires:       python3-pyxdg
Requires:       python3-pyflakes
Requires:       python3-pycodestyle
Requires:       python3-mock
Requires:       python3-dbus-python
Requires:       python3-gobject
Requires:       python3-pycairo 
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.

%package doc
Summary:        Documentations for %{name}

%description doc
Documentations for %{name}.


echo "`grep %{name}-%{version}.tar.xz %{SOURCE1} | grep -Eo '^[0-9a-f]+'`  %{SOURCE0}" | sha256sum -c
# Fix rpm runtime dependency rpmlint error replace the shebang in all the scripts with %%{_bindir}/python3
find . -type f -exec perl -pi -e 'BEGIN{undef $/};s[^#\!/usr/bin/env python3][#\!%{_bindir}/python3]' {} \;


%find_lang %{name} %{?no_lang_C}

%fdupes -s %{buildroot}

%license LICENSE
%doc NEWS

%files doc

%files lang -f %{name}.lang