From ea558daed3688dc6fbdc468c0c801ab5dd909680 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 28 2009 23:33:42 +0000 Subject: Initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..2c71e7e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Connect-22.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..76c4c3d --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +sugar-connect-22-2_fc10:HEAD:sugar-connect-22-2.fc10.src.rpm:1233185459 diff --git a/sources b/sources index e69de29..82bf6bd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3505eb09c5d45ea90d2164ae4ff83cee Connect-22.tar.bz2 diff --git a/sugar-connect-checkout.sh b/sugar-connect-checkout.sh new file mode 100644 index 0000000..f61f898 --- /dev/null +++ b/sugar-connect-checkout.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# This script bsed on a template from the Fedora Project wiki +# https://fedoraproject.org/wiki/Packaging/SugarActivityGuidelines#Sample_Checkout_Script +# +# sugar-connect-checkout.sh +VERSION=22 +NAME=Connect +rm -rf $NAME-$VERSION +git clone git://dev.laptop.org/projects/connect-activity $NAME-$VERSION +tar -cjvf $NAME-$VERSION.tar.bz2 $NAME-$VERSION +rm -rf $NAME-$VERSION diff --git a/sugar-connect.spec b/sugar-connect.spec new file mode 100644 index 0000000..73b137d --- /dev/null +++ b/sugar-connect.spec @@ -0,0 +1,55 @@ +Name: sugar-connect +Version: 22 +Release: 2%{?dist} +Summary: Connect for Sugar + +Group: Sugar/Activities +License: GPLv2+ +URL: http://wiki.laptop.org/go/Connect +Source0: Connect-%{version}.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 +The Connect activity implements the game of Connect-4 as a two-player game. +Additional participants can watch the game, and will have a chance to play +the winner of the current game. + +%prep +%setup -q -n Connect-%{version} + + +%build +python ./setup.py build + + +%install +rm -rf %{buildroot} +python ./setup.py install --prefix=%{buildroot}/%{_prefix} +#%find_lang org.laptop.Connect + + +%clean +rm -rf %{buildroot} + + +%files +#-f org.laptop.Connect.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS +%{sugaractivitydir}/Connect.activity/ + + +%changelog +* Wed Jan 28 2009 Fabian Affolter - 22-2 +- Prepared for translations + +* Sat Oct 25 2008 Fabian Affolter - 22-1 +- Initial package for Fedora