]> git.pld-linux.org Git - packages/corewars.git/blob - corewars.spec
c22fa25385282b9ce397ad2a43b47ce11b044452
[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 %define         _prefix         /usr/X11R6
20 %define         _mandir         %{_prefix}/man
21
22 %description
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
29 crashed.
30
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.
34
35 Additional polish Core Wars documentation is contained in pmars
36 package.
37
38 %description -l pl
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
44 okoliczno¶ci ¶mierci.
45
46 U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
47 siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
48
49 Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
50 siê w pakiecie pmars.
51
52 %package warriors
53 Summary:        Core warriors
54 Summary(pl):    Wojownicy rdzeniowi
55 Group:          X11/Applications/Games
56 Requires:       %{name} = %{version}
57
58 %description warriors
59 Core warriors.
60
61 %description warriors -l pl
62 Wojownicy rdzeniowi.
63
64 %prep
65 %setup -q -a1 -a2
66
67 %build
68 %configure2_13
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
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
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc ChangeLog DIFFERENCES INTERESTING-COMBINATIONS README TODO
88 %attr(755,root,root) %{_bindir}/*
89 %{_mandir}/man6/*
90 %dir %{_datadir}/corewars
91 %{_datadir}/corewars/*.cw
92 %{_datadir}/corewars/*.red
93
94 %files warriors
95 %defattr(644,root,root,755)
96 %{_datadir}/corewars/warriors
This page took 0.330225 seconds and 2 git commands to generate.