File TaskCoach.spec of Package TaskCoach
#
# spec file for package TaskCoach
#
# 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 https://bugs.opensuse.org/
#
%define _name taskcoach
Name: TaskCoach
Version: 1.4.6
Release: 0
Summary: Flexible to-do manager featuring hierarchical tasks
License: GPL-3.0-only
Group: Productivity/Office/Organizers
URL: https://www.taskcoach.org/
Source: http://downloads.sourceforge.net/taskcoach/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-lxml
BuildRequires: python-twisted
BuildRequires: python-wxWidgets
Requires: libXss1
Requires: python >= 2.6
Requires: python-lxml
Requires: python-twisted
Requires: python-wxGTK >= 2.8.9.2
Requires: python-xml
Recommends: python-notify
BuildArch: noarch
%description
Task Coach is a simple open source todo manager to keep track of personal tasks
and todo lists. It is designed for composite tasks, and also offers effort
tracking, categories, notes and more.
%prep
%autosetup
sed -i '/^Keywords=/s/$/;/' build.in/linux_common/%{_name}.desktop
grep -rl '^#!.*/' | xargs sed -i '/^#!/s/env.*py.*/python/'
%build
%py2_build
%install
install -Dm 0644 build.in/linux_common/%{_name}.desktop %{buildroot}%{_datadir}/applications/%{_name}.desktop
install -Dm 0644 icons.in/%{_name}.png %{buildroot}%{_datadir}/pixmaps/%{_name}.png
%py2_install
find %{buildroot}%{python_sitelib}/ -type f -perm 755 -exec chmod 0644 {} \;
grep -rl '^#!.*/' %{buildroot}%{python_sitelib}/%{_name}lib/ | xargs chmod 0755
%fdupes %{buildroot}%{python_sitelib}/
%files
%doc CHANGES.txt HACKING.txt INSTALL.txt PUBLICITY.txt README.txt TODO.tsk
%{_bindir}/%{_name}.py
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png
%dir %{python_sitelib}/buildlib/
%{python_sitelib}/buildlib/*
%dir %{python_sitelib}/%{_name}lib/
%{python_sitelib}/%{_name}lib/*
%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info
%license COPYRIGHT.txt LICENSE.txt
%changelog