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)
19 %define _prefix /usr/X11R6
20 %define _mandir %{_prefix}/man
23 Core Wars is a simulation game. A number of programs are loaded into a
24 virtual machine and executed. The programs can to crash each other,
25 manipulate other programs, overwrite as much memory as they can,
26 etc... The "best" program is selected according to a scoring mechanism
27 which involves the number of memory cells the program has overwritten,
28 the number of other programs it has crashed and whether/when it
31 Two different languages are supported. The one called "Corewars" is
32 easy to learn. The second language, called "Redcode", is harder to
33 learn but also more powerful.
35 Additional polish Core Wars documentation is contained in pmars
39 Wojny Rdzeniowe s± gr± symulacyjn±. Kilka programów zostaje
40 za³adowanych do wirtualnej pamiêci i wykonanych. Programy mog±
41 wysypywaæ inne programy, manipulowaæ nimi, nadpisywaæ pamiêæ, etc.
42 Mechanizm wyboru najlepszego programu bierze pod uwagê ilo¶æ komórek
43 pamiêci, które program nadpisa³, liczbê ubitych programów oraz
46 U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
47 siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
49 Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
53 Summary: Core warriors
54 Summary(pl): Wojownicy rdzeniowi
55 Group: X11/Applications/Games
56 Requires: %{name} = %{version}
61 %description warriors -l pl
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
77 mkdir $RPM_BUILD_ROOT%{_datadir}/corewars/warriors
78 mv warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/all
79 # TODO: create links to above instead of doubling content
80 mv hill-warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/hill
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %doc ChangeLog DIFFERENCES INTERESTING-COMBINATIONS README TODO
88 %attr(755,root,root) %{_bindir}/*
90 %dir %{_datadir}/corewars
91 %{_datadir}/corewars/*.cw
92 %{_datadir}/corewars/*.red
95 %defattr(644,root,root,755)
96 %{_datadir}/corewars/warriors