]> git.pld-linux.org Git - packages/corewars.git/commitdiff
initial release
authorwolf <wolf@pld-linux.org>
Mon, 18 Mar 2002 13:23:44 +0000 (13:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    corewars.spec -> 1.1

corewars.spec [new file with mode: 0644]

diff --git a/corewars.spec b/corewars.spec
new file mode 100644 (file)
index 0000000..5bc22dc
--- /dev/null
@@ -0,0 +1,94 @@
+Summary:       A simulation game
+Summary(pl):   Gra symulacyjna
+Name:          corewars
+Version:       0.9.12
+Release:       1
+License:       GPL
+Group:         X11/Applications/Games
+Source0:       http://download.sourceforge.net/corewars/%{name}-%{version}.tar.gz
+Source1:       http://corewars.sourceforge.net/warriors.tar.gz
+Source2:       http://corewars.sourceforge.net/hill-warriors.tar.gz
+URL:           http://corewars.sf.net/
+BuildRequires: gtk+-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _prefix         /usr/X11R6
+%define                _mandir         %{_prefix}/man
+
+%description
+Core Wars is a simulation game. A number of programs are loaded into a
+virtual machine and executed. The programs can to crash each other,
+manipulate other programs, overwrite as much memory as they can,
+etc... The "best" program is selected according to a scoring mechanism
+which involves the number of memory cells the program has overwritten,
+the number of other programs it has crashed and whether/when it
+crashed.
+
+Two different languages are supported. The one called "Corewars" is
+easy to learn. The second language, called "Redcode", is harder to
+learn but also more powerful.
+
+Additional polish Core Wars documentation is contained in pmars
+package.
+
+%description -l pl
+Wojny Rdzeniowe s± gr± symulacyjn±. Kilka programów zostaje
+za³adowanych do wirtualnej pamiêci i wykonanych. Programy mog±
+wysypywaæ inne programy, manipulowaæ nimi, nadpisywaæ pamiêæ, etc.
+Mechanizm wyboru najlepszego programu bierze pod uwagê ilo¶æ komórek
+pamiêci, które program nadpisa³, liczbê ubitych programów oraz
+okoliczno¶ci ¶mierci.
+
+U¿ywane s± dwa jêzyki. Pierwszy, "Corewars", jest ³atwy do nauczenia
+siê. Drugi, "Redcode", jest trudniejszy, lecz bardziej potê¿ny.
+
+Dodatkowa dokumentacja po polsku dotycz±ca Wojen Rdzeniowych znajduje
+siê w pakiecie pmars.
+
+%package warriors
+Summary:       Core warriors
+Summary(pl):   Wojownicy rdzeniowi
+Group:         X11/Applications/Games
+Requires:      %{name} = %{version}
+
+%description warriors
+Core warriors.
+
+%description warriors -l pl
+Wojownicy rdzeniowi.
+
+%prep
+%setup -q -a1 -a2
+
+%build
+%configure2_13
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+gzip ChangeLog DIFFERENCES INTERESTING-COMBINATIONS README TODO
+
+mkdir $RPM_BUILD_ROOT%{_datadir}/corewars/warriors
+mv warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/all
+# TODO: create links to above instead of doubling content
+mv hill-warriors $RPM_BUILD_ROOT%{_datadir}/corewars/warriors/hill
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.gz
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man6/*
+%dir %{_datadir}/corewars
+%{_datadir}/corewars/*.cw
+%{_datadir}/corewars/*.red
+
+%files warriors
+%defattr(644,root,root,755)
+%{_datadir}/corewars/warriors
This page took 0.080258 seconds and 4 git commands to generate.