3 # --with vanilla - build vanilla NetHack (without patches)
5 %define file_version %(echo %{version} | tr -d .)
6 Summary: NetHack - An adventure into the Mazes of Menace
7 Summary(es): Juego estilo rogue que se basa en Dungeons and Dragons (calabozos y dragones)
8 Summary(no): NetHack - Et eventyr i en faretruende labyrint
9 Summary(pl): NetHack - Przygoda w Labiryntach Gro¼by
10 Summary(pt_BR): Jogo estilo rogue baseado no Dungeons and Dragons
15 Group: Applications/Games
16 Source0: ftp://ftp.nethack.org/pub/nethack/nh%{file_version}/src/%{name}-%{file_version}.tgz
17 Source1: http://www.spod-central.org/~psmith/nh/spoi-%{file_version}.tar.gz
18 Source2: http://www.spod-central.org/~psmith/nh/gazetteer.tar.gz
19 Source3: %{name}.desktop
21 Source5: Guidebook-3.2pl.ps.gz
22 Source6: Guidebook.pdf
24 # http://avrc.city.ac.uk/nethack/VernonSpoilers/vol3-1.2.2.pdf
25 Source8: %{name}-vol3-1.2.2.pdf
26 Patch0: %{name}-config.patch
27 Patch1: %{name}-makefile.patch
28 # patches below are adapted from ones found at http://avrc.city.ac.uk/nethack/patches.html
29 # warning: order is important in most cases
30 Patch100: %{name}-show_born.patch
31 Patch101: %{name}-dump.patch
32 Patch102: %{name}-behind_boulder.patch
33 Patch103: %{name}-yafm-monabil.patch
34 Patch104: %{name}-chivalry.patch
35 Patch105: %{name}-kenny.patch
36 Patch106: %{name}-sticky_objects.patch
37 Patch107: %{name}-steed-fix.patch
38 Patch108: %{name}-wash_hands.patch
39 Patch109: %{name}-listmons.patch
40 Patch110: %{name}-flipcoin.patch
41 Patch111: %{name}-ride_key.patch
42 Patch112: %{name}-dungeon_growth.patch
43 Patch113: %{name}-newtoys.patch
44 Patch114: %{name}-dragon_hoard.patch
45 # after adding additional features update this patch
46 Patch200: %{name}-makedefs.patch
47 URL: http://www.nethack.org/
51 BuildRequires: XFree86-devel
52 BuildRequires: ncurses-devel
53 BuildRequires: qt-devel
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 %define _nhdir %{_datadir}/nethack
57 %define _dyndir /var/games/nethack
60 A dungeon game similar to rogue but more elaborate, very popular at
61 Unix sites and on PC-class machines (nethack is probably the most
62 widely distributed of the freeware dungeon games). The earliest
63 versions, written by Jay Fenlason and later considerably enhanced by
64 Andries Brouwer, were simply called `hack'. The name changed when
65 maintenance was taken over by a group of hackers originally organized
68 %{?!_with_vanilla:This package contains additional features.}
71 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
72 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
73 anos pelo mesmo time de indivíduos.
76 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
77 and Dragons (calabozos y dragones). Es un juego muy elaborado y
78 profundo, desarrollado desde hace muchos años por el mismo grupo de
82 NetHack - Et eventyr i en faretruende labyrint.
84 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
85 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
86 til versjon 3.0 og 3.1 av NetHack.
88 Denne utgaven er kopilert støtte for følgende utvidelser: QT og
92 Gra dziej±ca siê w lochu, podobna do rogue, lecz bardziej dopracowana.
93 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
94 prawdopodobnie najszerzej rozpowszechnion± darmow± gr± labiryntow±.)
95 Najwcze¶niejsze wersje, napisane przez Jaya Fenlasona, a nastêpnie
96 znacznie rozszerzone przez Andriesa Brouwara, nazywa³y siê po prostu
97 'hack' (r±baæ, siekaæ.) Nazwa zmieni³a siê gdy opieka nad gr± zosta³a
98 przejêta przez grupê hackerów zawi±zan± przez Mike'a Stephensona.
100 %{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
103 Summary: Spoilers to NetHack
104 Summary(pl): Psuje dla NetHacka
105 Group: Applications/Games
107 %description spoilers
108 Spoilers - a set of texts which explain many secrets in the game.
109 Beware: the game after reading it becomes even more addictive! (But
110 you will lose delights of discovering its secrets.)
112 %description spoilers -l pl
113 Psuje - zbiór tekstów wyja¶niaj±cych wiele sekretów w grze. Uwaga: po
114 przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca! (Lecz
115 stracisz rozkosze poznawania jej tajników.)
118 Summary: Nethack Guidebook, PDF format
119 Summary(pl): Nethackowy podrêcznik w formacie PDF
120 Group: Applications/Games
123 Nethack Guidebook, PDF format.
125 %description doc-pdf -l pl
126 Nethackowy podrêcznik w formacie PDF.
129 %setup -q -a 1 -a 2 -n %{name}-%{version}
134 %{?!_with_vanilla:%patch100 -p1}
135 %{?!_with_vanilla:%patch101 -p1}
136 %{?!_with_vanilla:%patch102 -p1}
137 %{?!_with_vanilla:%patch103 -p1}
138 %{?!_with_vanilla:%patch104 -p1}
139 %{?!_with_vanilla:%patch105 -p1}
140 %{?!_with_vanilla:%patch106 -p1}
141 %{?!_with_vanilla:%patch107 -p1}
142 %{?!_with_vanilla:%patch108 -p1}
143 %{?!_with_vanilla:%patch109 -p1}
144 %{?!_with_vanilla:%patch110 -p1}
145 %{?!_with_vanilla:%patch111 -p1}
146 %{?!_with_vanilla:%patch112 -p1}
147 %{?!_with_vanilla:%patch113 -p1}
148 %{?!_with_vanilla:%patch114 -p1}
149 %{?!_with_vanilla:%patch200 -p1}
152 sh ./sys/unix/setup.sh links
155 CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
156 LFLAGS="%{rpmldflags}" \
161 %{__make} -C util recover \
162 CFLAGS="%{rpmcflags} -I../include" \
163 LFLAGS="%{rpmldflags}" \
167 rm -rf $RPM_BUILD_ROOT
168 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games/Roguelike,%{_mandir}/man6}
170 %{__make} install DESTDIR=$RPM_BUILD_ROOT
171 install util/recover $RPM_BUILD_ROOT%{_nhdir}
173 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
175 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
176 cp %{SOURCE8} vol3-1.2.2.pdf
178 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
179 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
182 rm -rf $RPM_BUILD_ROOT
185 %defattr(644,root,root,755)
186 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
187 %doc $RPM_BUILD_ROOT%{_nhdir}/license
188 %lang(pl) %doc Guidebook-3.2pl.ps.gz
190 %attr(2755,root,games) %{_prefix}/games/nethack
191 %attr(2755,root,games) %{_nhdir}/nethack
192 %attr(2755,root,games) %{_nhdir}/recover
194 %attr(755,root,root) %dir %{_nhdir}
199 %attr(2775,root,games) %dir %{_dyndir}
200 %attr(2775,root,games) %dir %{_dyndir}/save
201 %attr(664,root,games) %{_dyndir}/perm
202 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/record
203 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/logfile
207 %{_applnkdir}/Games/Roguelike/*
211 %defattr(644,root,root,755)
212 %doc nhspoilers/README nhspoilers/*.txt
213 %doc %dir nhspoilers/gazetteer
217 %defattr(644,root,root,755)