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