1 Summary: The game that started roguelike genre.
2 Summary(pl): Gra, która zapocz±tkowa³a gatunek roguelike.
7 Group: Applications/Games
8 Source0: http://yarws.kid.waw.pl/files/%{name}.tar.z
9 Source1: %{name}.desktop
11 Source3: http://yarws.kid.waw.pl/files/%{name}_spoiler.zip
12 Source4: http://home.wanadoo.nl/loche/rogue/guide.txt
13 Patch0: %{name}-rip_time.patch
14 Patch1: %{name}-ldflags.patch
15 URL: http://home.wanadoo.nl/loche/rogue/
16 BuildRequires: ncurses-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _bindir /usr/games
20 %define _datadir /var/games/rogue
23 A Dungeons-and-Dragons-like game using character graphics, written
24 under BSD Unix and subsequently ported to other Unix systems. The
25 original BSD `curses(3)' screen-handling package was hacked together
26 by Ken Arnold primarily to support games, and the development of
27 `rogue(6)' popularized its use. Nethack, Omega, Larn, Angband, and an
28 entire subgenre of computer dungeon games (all known as `roguelikes')
29 all took off from the inspiration provided by `rogue(6)'; the popular
30 Windows game Diablo, though graphics-intensive, has very similar play
34 Gra czerpi±ca z Dungeons and Dragons u¿ywaj±ca znakowej grafiki,
35 napisana pod Uniksem BSD, a nastêpnie portowana na inne systemy
36 Uniksowe. Pocz±tkowa biblioteka obs³ugi ekranu 'curses (3)' by³a
37 hackowana wspólnie z Kenem Arnoldem g³ównie by wspieraæ gry, a rozwój
38 'rogue (6)' spopularyzowa³ j±. Nethack, Omega, Larn, Angband i ca³y
39 podgatunek lochowych gier komputerowych (znanych jako 'roguelike')
40 czerpi± inspiracjê z 'rogue (6)'. Popularna gra Diablo, mimo ogromnego
41 ³adunku grafiki, ma bardzo podobn± logikê gry.
44 Summary: Spoilers for rogue
45 Summary(pl): Psuje dla rogue
46 Group: Applications/Games
51 %description spoilers -l pl
55 %setup -a3 -q -c %{name}-%{version}
62 cat $i | sed 's/^#ifdef CURSES/#if 0/g' > $i.new
63 cat $i.new | sed 's/^#ifndef CURSES/#if 1/g' > $i
66 cat instruct.c | sed 's@%{_prefix}/games@%{_prefix}/share/doc/%{name}-%{version}@' > instruct.c.new
67 cat score.c | sed 's@%{_prefix}/games@%{_datadir}@' > score.c.new
68 mv -f instruct.c.new instruct.c
69 mv -f score.c.new score.c
71 %{__make} CC="%{__cc}" \
72 CFLAGS="%{rpmcflags} -DUNIX -DUNIX_SYS5 -I%{_includedir}/ncurses -c" \
73 LDFLAGS="%{rpmldflags} -lncurses"
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_applnkdir}/Games/Roguelike,%{_pixmapsdir}}
79 install rogue $RPM_BUILD_ROOT%{_bindir}
81 touch $RPM_BUILD_ROOT%{_datadir}/rogue.scores
84 gzip -9nf README guide.txt
85 gzip -9nf rogue.[drsw]*
87 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
88 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
95 %attr(2755,root,games) %{_bindir}/*
96 %attr(2775,root,games) %dir %{_datadir}
97 %attr(664,root,games) %config(noreplace) %verify(not md5 size mtime) %{_datadir}/rogue.scores
99 # don't gzip rogue.instr!
100 %doc usr/games/rogue.instr README.gz guide.txt.gz
102 %{_applnkdir}/Games/Roguelike/*
106 %defattr(644,root,root,755)