diff --git a/.cvsignore b/.cvsignore index e69de29..65182f4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Finance-0.20090126.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..7fcc241 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +sugar-finance-0-0_1_20090126_fc10:HEAD:sugar-finance-0-0.1.20090126.fc10.src.rpm:1234047553 diff --git a/sources b/sources index e69de29..47e4ae0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4f4d1de5f12926003d05ecde73c7bfa8 Finance-0.20090126.tar.bz2 diff --git a/sugar-finance-checkout.sh b/sugar-finance-checkout.sh new file mode 100644 index 0000000..7c87dc7 --- /dev/null +++ b/sugar-finance-checkout.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# This script bsed on a template from the Fedora Project wiki +# https://fedoraproject.org/wiki/Packaging/SugarActivityGuidelines +# +# sugar-xomail-checkout.sh +NAME=Xomail +REPO_NAME=xomail +VERSION=0.20090128 +rm -rf $NAME-$VERSION +git clone git://dev.laptop.org/users/wadeb/$REPO_NAME $NAME-$VERSION +tar -cjvf $NAME-$VERSION.tar.bz2 $NAME-$VERSION --exclude=.git +rm -rf $NAME-$VERSION diff --git a/sugar-finance.spec b/sugar-finance.spec new file mode 100644 index 0000000..4bee6e2 --- /dev/null +++ b/sugar-finance.spec @@ -0,0 +1,60 @@ +%define date 20090126 + +Name: sugar-finance +Version: 0 +Release: 0.1.%{date}%{?dist} +Summary: Financial planning for Sugar + +Group: Sugar/Activities +License: GPLv3+ +URL: http://wiki.laptop.org/go/Finance +Source0: Finance-%{version}.%{date}.tar.bz2 +Source1: %{name}-checkout.sh +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{_id_u} -n) +BuildArch: noarch + +BuildRequires: python +BuildRequires: sugar-toolkit + +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-%{version}.%{date} +chmod -x {icons/help.svg,finance.py} + + +%build +python ./setup.py build + + +%install +rm -rf %{buildroot} +python ./setup.py install --prefix=%{buildroot}/%{_prefix} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc COPYING NEWS TODO +%{sugaractivitydir}/Finance.activity/ + + +%changelog +* Mon Jan 26 2009 Fabian Affolter - 0-0.1.20090126 +- Initial package for Fedora