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}-dragon_hoard.patch
44 Patch114: %{name}-torch.patch
45 Patch115: %{name}-hole.patch
46 Patch116: %{name}-mirror.patch
47 Patch117: %{name}-newt.patch
48 # after adding additional features update this patch
49 Patch200: %{name}-makedefs.patch
50 URL: http://www.nethack.org/
51 BuildRequires: XFree86-devel
54 BuildRequires: ncurses-devel
55 BuildRequires: qt-devel
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 %define _nhdir %{_datadir}/nethack
60 %define _dyndir /var/games/nethack
63 A dungeon game similar to rogue but more elaborate, very popular at
64 Unix sites and on PC-class machines (nethack is probably the most
65 widely distributed of the freeware dungeon games). The earliest
66 versions, written by Jay Fenlason and later considerably enhanced by
67 Andries Brouwer, were simply called `hack'. The name changed when
68 maintenance was taken over by a group of hackers originally organized
71 %{?!_with_vanilla:This package contains additional features.}
74 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
75 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
76 anos pelo mesmo time de indivíduos.
79 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
80 and Dragons (calabozos y dragones). Es un juego muy elaborado y
81 profundo, desarrollado desde hace muchos años por el mismo grupo de
85 NetHack - Et eventyr i en faretruende labyrint.
87 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
88 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
89 til versjon 3.0 og 3.1 av NetHack.
91 Denne utgaven er kopilert støtte for følgende utvidelser: QT og
95 Gra dziej±ca siê w lochu, podobna do rogue, lecz bardziej dopracowana.
96 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
97 prawdopodobnie najszerzej rozpowszechnion± darmow± gr± labiryntow±.)
98 Najwcze¶niejsze wersje, napisane przez Jaya Fenlasona, a nastêpnie
99 znacznie rozszerzone przez Andriesa Brouwara, nazywa³y siê po prostu
100 'hack' (r±baæ, siekaæ.) Nazwa zmieni³a siê gdy opieka nad gr± zosta³a
101 przejêta przez grupê hackerów zawi±zan± przez Mike'a Stephensona.
103 %{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
106 Summary: Spoilers to NetHack
107 Summary(pl): Psuje dla NetHacka
108 Group: Applications/Games
110 %description spoilers
111 Spoilers - a set of texts which explain many secrets in the game.
112 Beware: the game after reading it becomes even more addictive! (But
113 you will lose delights of discovering its secrets.)
115 %description spoilers -l pl
116 Psuje - zbiór tekstów wyja¶niaj±cych wiele sekretów w grze. Uwaga: po
117 przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca! (Lecz
118 stracisz rozkosze poznawania jej tajników.)
121 Summary: Nethack Guidebook, PDF format
122 Summary(pl): Nethackowy podrêcznik w formacie PDF
123 Group: Applications/Games
126 Nethack Guidebook, PDF format.
128 %description doc-pdf -l pl
129 Nethackowy podrêcznik w formacie PDF.
132 %setup -q -a 1 -a 2 -n %{name}-%{version}
137 %{?!_with_vanilla:%patch100 -p1}
138 %{?!_with_vanilla:%patch101 -p1}
139 %{?!_with_vanilla:%patch102 -p1}
140 %{?!_with_vanilla:%patch103 -p1}
141 %{?!_with_vanilla:%patch104 -p1}
142 %{?!_with_vanilla:%patch105 -p1}
143 %{?!_with_vanilla:%patch106 -p1}
144 %{?!_with_vanilla:%patch107 -p1}
145 %{?!_with_vanilla:%patch108 -p1}
146 %{?!_with_vanilla:%patch109 -p1}
147 %{?!_with_vanilla:%patch110 -p1}
148 %{?!_with_vanilla:%patch111 -p1}
149 %{?!_with_vanilla:%patch112 -p1}
150 %{?!_with_vanilla:%patch113 -p1}
151 #%{?!_with_vanilla:%patch114 -p1}
152 #%{?!_with_vanilla:%patch115 -p1}
153 #%{?!_with_vanilla:%patch116 -p1}
154 %{?!_with_vanilla:%patch117 -p1}
155 %{?!_with_vanilla:%patch200 -p1}
158 sh ./sys/unix/setup.sh links
161 CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
162 LFLAGS="%{rpmldflags}" \
167 %{__make} -C util recover \
168 CFLAGS="%{rpmcflags} -I../include" \
169 LFLAGS="%{rpmldflags}" \
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games/Roguelike,%{_mandir}/man6}
176 %{__make} install DESTDIR=$RPM_BUILD_ROOT
177 install util/recover $RPM_BUILD_ROOT%{_nhdir}
179 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
181 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
182 cp %{SOURCE8} vol3-1.2.2.pdf
184 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
185 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
188 rm -rf $RPM_BUILD_ROOT
191 %defattr(644,root,root,755)
192 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
193 #%doc $RPM_BUILD_ROOT%{_nhdir}/license CHANGES*
194 %lang(pl) %doc Guidebook-3.2pl.ps.gz
196 %attr(2755,root,games) %{_prefix}/games/nethack
197 %attr(2755,root,games) %{_nhdir}/nethack
198 %attr(2755,root,games) %{_nhdir}/recover
200 %attr(755,root,root) %dir %{_nhdir}
205 %attr(2775,root,games) %dir %{_dyndir}
206 %attr(2775,root,games) %dir %{_dyndir}/save
207 %attr(664,root,games) %{_dyndir}/perm
208 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/record
209 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/logfile
213 %{_applnkdir}/Games/Roguelike/*
217 %defattr(644,root,root,755)
218 %doc nhspoilers/README nhspoilers/*.txt
219 %doc %dir nhspoilers/gazetteer
223 %defattr(644,root,root,755)