File sugar-finance.spec of Package sugar-finance
#
# spec file for package sugar-finance
#
# Copyright (c) 2013 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/
#
%define date 20090126
Name: sugar-finance
Version: 10
%if 0%{?suse_version}
Release: 1
%else
Release: 0.2.%{date}%{?dist}
%endif
Summary: Financial planning for Sugar
License: GPL-3.0+
Url: http://wiki.laptop.org/go/Finance
Group: Sugar/Activities
Source0: http://download.sugarlabs.org/activities/4040/finance-%{version}.xo
Source1: %{name}-checkout.sh
Source2: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: python
BuildRequires: sugar-toolkit-gtk3
Requires: sugar
%description
Finance is a simple financial planning activity. It can be integrated
into classroom assignments, or else used to track finances for a school
club. It might also be useful for students who wish to help their parents
with home finances.
The register view allows students to enter income and expenses, assign
categories, and review past transactions. The chart view shows students
a visual breakdown of their expenses by category. The budget view allows
users to assign a monthly budget to each category, and to see how each
month's expenses compare to the budget.
%prep
%setup -q -n Finance.activity
chmod -x {icons/help.svg,finance.py}
%build
python ./setup.py build
%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang org.laptop.community.Finance
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files -f org.laptop.community.Finance.lang
%defattr(-,root,root,-)
%doc COPYING NEWS TODO
%{_datadir}/sugar/activities/Finance.activity/
%changelog