2 # - add desktop file and png icon for package.
4 Summary: A simulation game
5 Summary(pl.UTF-8): Gra symulacyjna
10 Group: X11/Applications/Games
11 Source0: http://dl.sourceforge.net/corewars/%{name}-%{version}.tar.gz
12 # Source0-md5: 0a0b8067533b83a96488109ee265f664
13 Source1: http://corewars.sourceforge.net/warriors.tar.gz
14 # Source1-md5: 6ad0dbacddda7253120ff15930d23009
15 Source2: http://corewars.sourceforge.net/hill-warriors.tar.gz
16 # Source2-md5: b10c44dfc18e39837fe45110df6086d3
17 URL: http://corewars.sourceforge.net/
18 BuildRequires: gtk+-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
38 %description -l pl.UTF-8
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.UTF-8): Wojownicy rdzeniowi
55 Group: X11/Applications/Games
56 Requires: %{name} = %{version}-%{release}
61 %description warriors -l pl.UTF-8
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)
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