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