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://download.sourceforge.net/corewars/%{name}-%{version}.tar.gz
13 Source1: http://corewars.sourceforge.net/warriors.tar.gz
14 Source2: http://corewars.sourceforge.net/hill-warriors.tar.gz
15 URL: http://corewars.sf.net/
16 BuildRequires: gtk+-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Core Wars is a simulation game. A number of programs are loaded into a
22 virtual machine and executed. The programs can to crash each other,
23 manipulate other programs, overwrite as much memory as they can,
24 etc... The "best" program is selected according to a scoring mechanism
25 which involves the number of memory cells the program has overwritten,
26 the number of other programs it has crashed and whether/when it
29 Two different languages are supported. The one called "Corewars" is
30 easy to learn. The second language, called "Redcode", is harder to
31 learn but also more powerful.
33 Additional polish Core Wars documentation is contained in pmars
37 Wojny Rdzeniowe s± gr± symulacyjn±. Kilka programów zostaje
38 za³adowanych do wirtualnej pamiêci i wykonanych. Programy mog±
39 wysypywaæ inne programy, manipulowaæ nimi, nadpisywaæ pamiêæ, etc.
40 Mechanizm wyboru najlepszego programu bierze pod uwagê ilo¶æ komórek
41 pamiêci, które program nadpisa³, liczbê ubitych programów oraz
44 U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
45 siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
47 Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
51 Summary: Core warriors
52 Summary(pl): Wojownicy rdzeniowi
53 Group: X11/Applications/Games
54 Requires: %{name} = %{version}
59 %description warriors -l pl
70 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
75 mkdir $RPM_BUILD_ROOT%{_datadir}/corewars/warriors
76 mv warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/all
77 # TODO: create links to above instead of doubling content
78 mv hill-warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/hill
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc ChangeLog DIFFERENCES INTERESTING-COMBINATIONS README TODO
86 %attr(755,root,root) %{_bindir}/*
88 %dir %{_datadir}/corewars
89 %{_datadir}/corewars/*.cw
90 %{_datadir}/corewars/*.red
93 %defattr(644,root,root,755)
94 %{_datadir}/corewars/warriors