]> git.pld-linux.org Git - packages/corewars.git/blob - corewars.spec
- tabs in preamble
[packages/corewars.git] / corewars.spec
1 # TODO:
2 # - add desktop file and png icon for package.
3 #
4 Summary:        A simulation game
5 Summary(pl.UTF-8):      Gra symulacyjna
6 Name:           corewars
7 Version:        0.9.13
8 Release:        1
9 License:        GPL
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
19 Requires:       nedit
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.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
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.UTF-8):      Wojownicy rdzeniowi
55 Group:          X11/Applications/Games
56 Requires:       %{name} = %{version}-%{release}
57
58 %description warriors
59 Core warriors.
60
61 %description warriors -l pl.UTF-8
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 README
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.276242 seconds and 4 git commands to generate.