3 # - add desktop file and png icon for package.
5 Summary: A simulation game
6 Summary(pl): Gra symulacyjna
11 Group: X11/Applications/Games
12 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5: 0a0b8067533b83a96488109ee265f664
14 Source1: http://corewars.sourceforge.net/warriors.tar.gz
15 # Source1-md5: 6ad0dbacddda7253120ff15930d23009
16 Source2: http://corewars.sourceforge.net/hill-warriors.tar.gz
17 # Source2-md5: b10c44dfc18e39837fe45110df6086d3
18 URL: http://corewars.sf.net/
19 BuildRequires: gtk+-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Core Wars is a simulation game. A number of programs are loaded into a
25 virtual machine and executed. The programs can to crash each other,
26 manipulate other programs, overwrite as much memory as they can,
27 etc... The "best" program is selected according to a scoring mechanism
28 which involves the number of memory cells the program has overwritten,
29 the number of other programs it has crashed and whether/when it
32 Two different languages are supported. The one called "Corewars" is
33 easy to learn. The second language, called "Redcode", is harder to
34 learn but also more powerful.
36 Additional polish Core Wars documentation is contained in pmars
40 Wojny Rdzeniowe s± gr± symulacyjn±. Kilka programów zostaje
41 za³adowanych do wirtualnej pamiêci i wykonanych. Programy mog±
42 wysypywaæ inne programy, manipulowaæ nimi, nadpisywaæ pamiêæ, etc.
43 Mechanizm wyboru najlepszego programu bierze pod uwagê ilo¶æ komórek
44 pamiêci, które program nadpisa³, liczbê ubitych programów oraz
47 U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
48 siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
50 Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
54 Summary: Core warriors
55 Summary(pl): Wojownicy rdzeniowi
56 Group: X11/Applications/Games
57 Requires: %{name} = %{version}
62 %description warriors -l pl
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 mkdir $RPM_BUILD_ROOT%{_datadir}/corewars/warriors
79 mv warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/all
80 # TODO: create links to above instead of doubling content
81 mv hill-warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/hill
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/*
91 %dir %{_datadir}/corewars
92 %{_datadir}/corewars/*.cw
93 %{_datadir}/corewars/*.red
96 %defattr(644,root,root,755)
97 %{_datadir}/corewars/warriors