]>
Commit | Line | Data |
---|---|---|
22383e2c | 1 | Summary: castle-combat - enclose land and destroy your opponent's castle |
2572eca3 | 2 | Summary(pl.UTF-8): castle-combat - zdobądź ziemię i zniszcz zamki przeciwnika |
22383e2c | 3 | Name: castle-combat |
0b8e91e6 | 4 | Version: 0.8.1 |
22383e2c | 5 | Release: 1 |
6 | License: GPL | |
7 | Group: X11/Applications/Games | |
0b8e91e6 | 8 | Source0: http://dl.sourceforge.net/castle-combat/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 63380e9fc3d4d9de780b3cc52c822ea6 | |
22383e2c | 10 | URL: http://user.cs.tu-berlin.de/~karlb/castle-combat/ |
0b8e91e6 | 11 | BuildRequires: python-Numeric |
12 | BuildRequires: python-TwistedCore | |
13 | BuildRequires: python-pygame-devel | |
14 | BuildRequires: rpm-pythonprov | |
22383e2c | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | castle-combat is a game where up to four players build castle walls, | |
19 | place cannons inside these walls, and shoot at the walls of their | |
20 | enemy(s). If a player can't build a complete wall around one of his | |
21 | castles, he loses. The last surviving player wins. | |
22 | ||
d77dc8f8 JR |
23 | %description -l pl.UTF-8 |
24 | castle-combat to gra, w której do czterech graczy buduje zamkowe mury, | |
25 | ustawia na nich armaty i strzela w mury swoich wrogów. Jeżeli gracz | |
26 | nie może otoczyć ani jednego ze swoich zamków murami przegrywa. | |
27 | Wygrywa ostatni, który przetrwa. | |
22383e2c | 28 | |
29 | %prep | |
30 | %setup -q | |
0b8e91e6 | 31 | %{__sed} -i 's@src@%{py_sitescriptdir}/src@' castle-combat.py |
32 | %{__sed} -i 's@"data"@"%{py_sitescriptdir}/data"@' src/common.py | |
22383e2c | 33 | |
34 | %build | |
0b8e91e6 | 35 | python setup.py build |
22383e2c | 36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
4636f929 | 39 | |
0b8e91e6 | 40 | python setup.py install \ |
41 | --root=$RPM_BUILD_ROOT | |
42 | ||
43 | cp -r data/ $RPM_BUILD_ROOT%{py_sitescriptdir} | |
22383e2c | 44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
0b8e91e6 | 50 | %doc README TODO |
22383e2c | 51 | %attr(755,root,root) %{_bindir}/* |
0b8e91e6 | 52 | %{py_sitescriptdir}/* |