]> git.pld-linux.org Git - packages/corewars.git/blob - corewars.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/corewars.git] / corewars.spec
1 #
2 # TODO:
3 # - add desktop file and png icon for package.
4 #
5 Summary:        A simulation game
6 Summary(pl):    Gra symulacyjna
7 Name:           corewars
8 Version:        0.9.12
9 Release:        1
10 License:        GPL
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)
18
19
20 %description
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
27 crashed.
28
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.
32
33 Additional polish Core Wars documentation is contained in pmars
34 package.
35
36 %description -l pl
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
42 okoliczno¶ci ¶mierci.
43
44 U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
45 siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
46
47 Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
48 siê w pakiecie pmars.
49
50 %package warriors
51 Summary:        Core warriors
52 Summary(pl):    Wojownicy rdzeniowi
53 Group:          X11/Applications/Games
54 Requires:       %{name} = %{version}
55
56 %description warriors
57 Core warriors.
58
59 %description warriors -l pl
60 Wojownicy rdzeniowi.
61
62 %prep
63 %setup -q -a1 -a2
64
65 %build
66 %configure2_13
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
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
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc ChangeLog DIFFERENCES INTERESTING-COMBINATIONS README TODO
86 %attr(755,root,root) %{_bindir}/*
87 %{_mandir}/man6/*
88 %dir %{_datadir}/corewars
89 %{_datadir}/corewars/*.cw
90 %{_datadir}/corewars/*.red
91
92 %files warriors
93 %defattr(644,root,root,755)
94 %{_datadir}/corewars/warriors
This page took 0.114661 seconds and 3 git commands to generate.