]> git.pld-linux.org Git - SPECS.git/blob - castle-combat.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.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:  rpmbuild(macros) >= 1.710
12 BuildRequires:  python-Numeric
13 BuildRequires:  python-TwistedCore
14 BuildRequires:  python-pygame-devel
15 BuildRequires:  rpm-pythonprov
16 BuildRequires:  sed >= 4.0
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 castle-combat is a game where up to four players build castle walls,
22 place cannons inside these walls, and shoot at the walls of their
23 enemy(s). If a player can't build a complete wall around one of his
24 castles, he loses. The last surviving player wins.
25
26 %description -l pl.UTF-8
27 castle-combat to gra, w której do czterech graczy buduje zamkowe mury,
28 ustawia na nich armaty i strzela w mury swoich wrogów. Jeżeli gracz
29 nie może otoczyć ani jednego ze swoich zamków murami przegrywa.
30 Wygrywa ostatni, który przetrwa.
31
32 %prep
33 %setup -q
34 %{__sed} -i 's@src@%{py_sitescriptdir}/%{name}/src@' castle-combat.py
35 %{__sed} -i 's@"data"@"%{py_sitescriptdir}/%{name}/data"@' src/common.py
36
37 %build
38 %py_build
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
43
44 %py_install
45
46 cp -r data $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
47 cp -r src $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README TODO
55 %attr(755,root,root) %{_bindir}/*
56 %{py_sitescriptdir}/%{name}
This page took 0.12608 seconds and 3 git commands to generate.