]> git.pld-linux.org Git - packages/corewars.git/blob - corewars.spec
- fixed md5
[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.13
9 Release:        1
10 License:        GPL
11 Group:          X11/Applications/Games
12 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5:  0a0b8067533b83a96488109ee265f664
14 Source1:        http://corewars.sourceforge.net/warriors.tar.gz
15 # Source1-md5:  6ad0dbacddda7253120ff15930d23009
16 Source2:        http://corewars.sourceforge.net/hill-warriors.tar.gz
17 # Source2-md5:  b10c44dfc18e39837fe45110df6086d3
18 URL:            http://corewars.sf.net/
19 BuildRequires:  gtk+-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22
23 %description
24 Core Wars is a simulation game. A number of programs are loaded into a
25 virtual machine and executed. The programs can to crash each other,
26 manipulate other programs, overwrite as much memory as they can,
27 etc... The "best" program is selected according to a scoring mechanism
28 which involves the number of memory cells the program has overwritten,
29 the number of other programs it has crashed and whether/when it
30 crashed.
31
32 Two different languages are supported. The one called "Corewars" is
33 easy to learn. The second language, called "Redcode", is harder to
34 learn but also more powerful.
35
36 Additional polish Core Wars documentation is contained in pmars
37 package.
38
39 %description -l pl
40 Wojny Rdzeniowe s± gr± symulacyjn±. Kilka programów zostaje
41 za³adowanych do wirtualnej pamiêci i wykonanych. Programy mog±
42 wysypywaæ inne programy, manipulowaæ nimi, nadpisywaæ pamiêæ, etc.
43 Mechanizm wyboru najlepszego programu bierze pod uwagê ilo¶æ komórek
44 pamiêci, które program nadpisa³, liczbê ubitych programów oraz
45 okoliczno¶ci ¶mierci.
46
47 U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
48 siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
49
50 Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
51 siê w pakiecie pmars.
52
53 %package warriors
54 Summary:        Core warriors
55 Summary(pl):    Wojownicy rdzeniowi
56 Group:          X11/Applications/Games
57 Requires:       %{name} = %{version}
58
59 %description warriors
60 Core warriors.
61
62 %description warriors -l pl
63 Wojownicy rdzeniowi.
64
65 %prep
66 %setup -q -a1 -a2
67
68 %build
69 %configure2_13
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 mkdir $RPM_BUILD_ROOT%{_datadir}/corewars/warriors
79 mv warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/all
80 # TODO: create links to above instead of doubling content
81 mv hill-warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/hill
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc ChangeLog README 
89 %attr(755,root,root) %{_bindir}/*
90 %{_mandir}/man6/*
91 %dir %{_datadir}/corewars
92 %{_datadir}/corewars/*.cw
93 %{_datadir}/corewars/*.red
94
95 %files warriors
96 %defattr(644,root,root,755)
97 %{_datadir}/corewars/warriors
This page took 0.09245 seconds and 3 git commands to generate.