3 # _with_vanilla - build vanilla NetHack (without patches)
4 # _without_qt - no X11 and QT bloat
6 # no patches for now, wait for updates
7 %define _with_vanilla 1
9 %define file_version %(echo %{version} | tr -d .)
10 Summary: NetHack - An adventure into the Mazes of Menace
11 Summary(es): Juego estilo rogue que se basa en Dungeons and Dragons (calabozos y dragones)
12 Summary(no): NetHack - Et eventyr i en faretruende labyrint
13 Summary(pl): NetHack - Przygoda w Labiryntach Gro¼by
14 Summary(pt_BR): Jogo estilo rogue baseado no Dungeons and Dragons
19 Group: Applications/Games
20 Source0: ftp://ftp.nethack.org/pub/nethack/nh%{file_version}/src/%{name}-%{file_version}.tgz
21 # Source0-md5: aefcbeb20210b2d64511c84bd03c3e4e
22 #Source1: http://www.spod-central.org/~psmith/nh/spoi-%{file_version}.tar.gz
23 Source1: http://www.spod-central.org/~psmith/nh/spoi-340.tar.gz
24 # Source1-md5: 0e6596bfb1d6c527f805d4ba8e88b031
25 Source2: http://www.spod-central.org/~psmith/nh/gazetteer.tar.gz
26 # Source2-md5: 8c878e1eb8190f42ce28131fb2a3e65f
27 Source3: %{name}.desktop
29 Source5: Guidebook-3.2pl.ps.gz
30 # Source5-md5: 4a2a9a38deb08e9c4177c3b5ce6e627e
31 Source6: Guidebook.pdf
33 # Source7-md5: ffd3d14ab4df527e9f3738320dec7f93
34 # http://avrc.city.ac.uk/nethack/VernonSpoilers/vol3-1.2.2.pdf
35 Source8: %{name}-vol3-1.2.2.pdf
36 Patch0: %{name}-config.patch
37 Patch1: %{name}-makefile.patch
38 Patch2: %{name}-gcc3.patch
39 Patch3: %{name}-qt.patch
40 # patches below are adapted from ones found at http://avrc.city.ac.uk/nethack/patches.html
41 # warning: order is important in most cases
42 Patch100: %{name}-show_born.patch
43 Patch101: %{name}-dump.patch
44 Patch102: %{name}-behind_boulder.patch
45 Patch103: %{name}-yafm-monabil.patch
46 Patch104: %{name}-chivalry.patch
47 Patch105: %{name}-kenny.patch
48 Patch106: %{name}-sticky_objects.patch
49 Patch107: %{name}-steed-fix.patch
50 Patch108: %{name}-wash_hands.patch
51 Patch109: %{name}-listmons.patch
52 Patch110: %{name}-flipcoin.patch
53 Patch111: %{name}-ride_key.patch
54 Patch112: %{name}-dungeon_growth.patch
55 Patch113: %{name}-dragon_hoard.patch
56 Patch114: %{name}-torch.patch
57 Patch115: %{name}-hole.patch
58 Patch116: %{name}-mirror.patch
59 Patch117: %{name}-newt.patch
60 # after adding additional features update this patch
61 Patch200: %{name}-makedefs.patch
62 URL: http://www.nethack.org/
63 %{?!_without_qt:BuildRequires: XFree86-devel}
66 BuildRequires: ncurses-devel
67 %{?!_without_qt:BuildRequires: qt-devel >= 3.0.3}
69 Conflicts: applnk < 1.5.13
70 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 %define _nhdir %{_datadir}/nethack
73 %define _dyndir /var/games/nethack
76 A dungeon game similar to rogue but more elaborate, very popular at
77 Unix sites and on PC-class machines (nethack is probably the most
78 widely distributed of the freeware dungeon games). The earliest
79 versions, written by Jay Fenlason and later considerably enhanced by
80 Andries Brouwer, were simply called `hack'. The name changed when
81 maintenance was taken over by a group of hackers originally organized
84 %{?!_with_vanilla:This package contains additional features.}
87 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
88 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
89 anos pelo mesmo time de indivíduos.
92 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
93 and Dragons (calabozos y dragones). Es un juego muy elaborado y
94 profundo, desarrollado desde hace muchos años por el mismo grupo de
98 NetHack - Et eventyr i en faretruende labyrint.
100 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
101 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
102 til versjon 3.0 og 3.1 av NetHack.
104 Denne utgaven er kopilert støtte for følgende utvidelser: QT og
108 Gra dziej±ca siê w lochu, podobna do rogue, lecz bardziej dopracowana.
109 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
110 prawdopodobnie najszerzej rozpowszechnion± darmow± gr± labiryntow±.)
111 Najwcze¶niejsze wersje, napisane przez Jaya Fenlasona, a nastêpnie
112 znacznie rozszerzone przez Andriesa Brouwara, nazywa³y siê po prostu
113 'hack' (r±baæ, siekaæ.) Nazwa zmieni³a siê gdy opieka nad gr± zosta³a
114 przejêta przez grupê hackerów zawi±zan± przez Mike'a Stephensona.
116 %{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
119 Summary: Spoilers to NetHack
120 Summary(pl): Psuje dla NetHacka
121 Group: Applications/Games
123 %description spoilers
124 Spoilers - a set of texts which explain many secrets in the game.
125 Beware: the game after reading it becomes even more addictive! (But
126 you will lose delights of discovering its secrets.)
128 %description spoilers -l pl
129 Psuje - zbiór tekstów wyja¶niaj±cych wiele sekretów w grze. Uwaga: po
130 przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca! (Lecz
131 stracisz rozkosze poznawania jej tajników.)
134 Summary: Nethack Guidebook, PDF format
135 Summary(pl): Nethackowy podrêcznik w formacie PDF
136 Group: Applications/Games
139 Nethack Guidebook, PDF format.
141 %description doc-pdf -l pl
142 Nethackowy podrêcznik w formacie PDF.
149 %{?!_without_qt:%patch3 -p1}
152 %{?!_with_vanilla:%patch100 -p1}
153 %{?!_with_vanilla:%patch101 -p1}
154 %{?!_with_vanilla:%patch102 -p1}
155 %{?!_with_vanilla:%patch103 -p1}
156 %{?!_with_vanilla:%patch104 -p1}
157 %{?!_with_vanilla:%patch105 -p1}
158 %{?!_with_vanilla:%patch106 -p1}
159 %{?!_with_vanilla:%patch107 -p1}
160 %{?!_with_vanilla:%patch108 -p1}
161 %{?!_with_vanilla:%patch109 -p1}
162 %{?!_with_vanilla:%patch110 -p1}
163 %{?!_with_vanilla:%patch111 -p1}
164 %{?!_with_vanilla:%patch112 -p1}
165 %{?!_with_vanilla:%patch113 -p1}
166 #%%{?!_with_vanilla:%patch114 -p1}
167 #%%{?!_with_vanilla:%patch115 -p1}
168 #%%{?!_with_vanilla:%patch116 -p1}
169 %{?!_with_vanilla:%patch117 -p1}
170 %{?!_with_vanilla:%patch200 -p1}
173 sh ./sys/unix/setup.sh links
176 CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
177 LFLAGS="%{rpmldflags}" \
183 %{__make} -C util recover \
184 CFLAGS="%{rpmcflags} -I../include" \
185 LFLAGS="%{rpmldflags}" \
189 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/man6}
193 DESTDIR=$RPM_BUILD_ROOT
194 install util/recover $RPM_BUILD_ROOT%{_nhdir}
196 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
198 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
199 cp %{SOURCE8} vol3-1.2.2.pdf
201 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
202 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
205 rm -rf $RPM_BUILD_ROOT
208 %defattr(644,root,root,755)
209 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
210 #%doc $RPM_BUILD_ROOT%{_nhdir}/license CHANGES*
211 %lang(pl) %doc Guidebook-3.2pl.ps.gz
213 %attr(2755,root,games) %{_prefix}/games/nethack
214 %attr(2755,root,games) %{_nhdir}/nethack
215 %attr(2755,root,games) %{_nhdir}/recover
217 %attr(755,root,root) %dir %{_nhdir}
219 %{?!_without_qt:%{_nhdir}/*.xpm}
220 %{?!_without_qt:%{_nhdir}/x11tiles}
222 %attr(2775,root,games) %dir %{_dyndir}
223 %attr(2775,root,games) %dir %{_dyndir}/save
224 %attr(664,root,games) %{_dyndir}/perm
225 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/record
226 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/logfile
234 %defattr(644,root,root,755)
235 %doc nhspoilers/README nhspoilers/*.txt
236 %doc %dir nhspoilers/gazetteer
240 %defattr(644,root,root,755)