1 |
shlomif |
470326 |
%define name tofu |
2 |
|
|
%define oname Tofu |
3 |
|
|
%define version 0.5 |
4 |
umeabot |
544606 |
%define release %mkrel 10 |
5 |
shlomif |
470326 |
|
6 |
|
|
Summary: Network game engine written with Python and Twisted |
7 |
|
|
Name: %{name} |
8 |
|
|
Version: %{version} |
9 |
|
|
Release: %{release} |
10 |
|
|
Source0: %{oname}-%{version}.tar.bz2 |
11 |
|
|
License: GPLv2+ |
12 |
|
|
Group: Development/Python |
13 |
|
|
URL: http://home.gna.org/oomadness/en/tofu/ |
14 |
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot |
15 |
|
|
%py_requires -d |
16 |
|
|
BuildArch: noarch |
17 |
|
|
Requires: python-twisted-core |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
Tofu is a practical high-level network game engine, written in Python and |
21 |
|
|
based on Twisted. |
22 |
|
|
|
23 |
|
|
Tofu is designed for games where players play one or several characters |
24 |
|
|
across several levels. This includes jump'n run games, RPG or RTS, but not |
25 |
|
|
Tetris-like games or board game (chess, go,...). |
26 |
|
|
|
27 |
|
|
It currently support client-server and single player mode; peer-to-peer mode |
28 |
|
|
may be added later. |
29 |
|
|
|
30 |
|
|
Tofu is Free Software, under the GNU LGPL license. |
31 |
|
|
|
32 |
|
|
%prep |
33 |
|
|
%setup -q -n %{oname}-%{version} |
34 |
|
|
|
35 |
|
|
%build |
36 |
|
|
python setup.py build |
37 |
|
|
|
38 |
|
|
%install |
39 |
|
|
rm -rf %{buildroot} |
40 |
|
|
python setup.py install --root %{buildroot} |
41 |
|
|
|
42 |
|
|
|
43 |
|
|
%clean |
44 |
|
|
rm -rf %{buildroot} |
45 |
|
|
|
46 |
|
|
%files |
47 |
|
|
%defattr(-,root,root) |
48 |
|
|
%doc README demo/* |
49 |
|
|
%attr(0755,root,root) %{python_sitelib}/* |
50 |
|
|
|
51 |
|
|
|