]> git.pld-linux.org Git - packages/nethack.git/blob - nethack.spec
- release 2 for Th
[packages/nethack.git] / nethack.spec
1 #
2 # Conditional build:
3 %bcond_without  qt      # no X11 and Qt bloat 
4 %bcond_with     vanilla # build vanilla NetHack (without patches)
5 #
6 # no patches for now, wait for updates
7 %define         with_vanilla    1
8 #
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(nb):    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
15 Name:           nethack
16 Version:        3.4.3
17 Release:        2
18 License:        Nethack GPL
19 Group:          Applications/Games
20 Source0:        http://dl.sourceforge.net/sourceforge/nethack/%{name}-%{file_version}-src.tgz
21 # Source0-md5:  21479c95990eefe7650df582426457f9
22 Source1:        http://www.spod-central.org/~psmith/nh/spoi-%{file_version}.tar.gz
23 # Source1-md5:  72cac599c3660eac0a54b17ece8989ff
24 #Source1:       http://www.spod-central.org/~psmith/nh/spoi-340.tar.gz
25 Source2:        http://www.spod-central.org/~psmith/nh/gazetteer.tar.gz
26 # Source2-md5:  651997ab54552b5e9a586cef46bcc50a
27 Source3:        %{name}.desktop
28 Source4:        %{name}.png
29 Source5:        Guidebook-3.2pl.ps.gz
30 # Source5-md5:  4a2a9a38deb08e9c4177c3b5ce6e627e
31 Source6:        Guidebook.pdf
32 Source7:        %{name}rc.gz
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 Patch4:         %{name}-qt33.patch
41 # patches below are adapted from ones found at http://avrc.city.ac.uk/nethack/patches.html
42 # warning: order is important in most cases
43 Patch100:       %{name}-show_born.patch
44 Patch101:       %{name}-dump.patch
45 Patch102:       %{name}-behind_boulder.patch
46 Patch103:       %{name}-yafm-monabil.patch
47 Patch104:       %{name}-chivalry.patch
48 Patch105:       %{name}-kenny.patch
49 Patch106:       %{name}-sticky_objects.patch
50 Patch107:       %{name}-steed-fix.patch
51 Patch108:       %{name}-wash_hands.patch
52 Patch109:       %{name}-listmons.patch
53 Patch110:       %{name}-flipcoin.patch
54 Patch111:       %{name}-ride_key.patch
55 Patch112:       %{name}-dungeon_growth.patch
56 Patch113:       %{name}-dragon_hoard.patch
57 Patch114:       %{name}-torch.patch
58 Patch115:       %{name}-hole.patch
59 Patch116:       %{name}-mirror.patch
60 Patch117:       %{name}-newt.patch
61 # after adding additional features update this patch
62 Patch200:       %{name}-makedefs.patch
63 URL:            http://www.nethack.org/
64 %{?with_qt:BuildRequires:       XFree86-devel}
65 BuildRequires:  bison
66 BuildRequires:  flex
67 BuildRequires:  ncurses-devel
68 %{?with_qt:BuildRequires:       qt-devel >= 3.0.3}
69 Requires:       /bin/gzip
70 Conflicts:      applnk < 1.5.13
71 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72
73 %define         _nhdir          %{_datadir}/nethack
74 %define         _dyndir         /var/games/nethack
75
76 %description
77 A dungeon game similar to rogue but more elaborate, very popular at
78 Unix sites and on PC-class machines (nethack is probably the most
79 widely distributed of the freeware dungeon games). The earliest
80 versions, written by Jay Fenlason and later considerably enhanced by
81 Andries Brouwer, were simply called `hack'. The name changed when
82 maintenance was taken over by a group of hackers originally organized
83 by Mike Stephenson.
84
85 %{!?with_vanilla:This package contains additional features.}
86
87 %description -l pt_BR
88 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
89 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
90 anos pelo mesmo time de indivíduos.
91
92 %description -l es
93 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
94 and Dragons (calabozos y dragones). Es un juego muy elaborado y
95 profundo, desarrollado desde hace muchos años por el mismo grupo de
96 individuos.
97
98 %description -l nb
99 NetHack - Et eventyr i en faretruende labyrint.
100
101 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
102 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
103 til versjon 3.0 og 3.1 av NetHack.
104
105 Denne utgaven er kopilert støtte for følgende utvidelser: Qt og
106 ncurses.
107
108 %description -l pl
109 Gra dziej±ca siê w lochu, podobna do rogue, lecz bardziej dopracowana.
110 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
111 prawdopodobnie najszerzej rozpowszechnion± darmow± gr± labiryntow±.)
112 Najwcze¶niejsze wersje, napisane przez Jaya Fenlasona, a nastêpnie
113 znacznie rozszerzone przez Andriesa Brouwara, nazywa³y siê po prostu
114 'hack' (r±baæ, siekaæ.) Nazwa zmieni³a siê gdy opieka nad gr± zosta³a
115 przejêta przez grupê hackerów zawi±zan± przez Mike'a Stephensona.
116
117 %{!?with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
118
119 %package spoilers
120 Summary:        Spoilers to NetHack
121 Summary(pl):    Psuje dla NetHacka
122 Group:          Applications/Games
123
124 %description spoilers
125 Spoilers - a set of texts which explain many secrets in the game.
126 Beware: the game after reading it becomes even more addictive! (But
127 you will lose delights of discovering its secrets.)
128
129 %description spoilers -l pl
130 Psuje - zbiór tekstów wyja¶niaj±cych wiele sekretów w grze. Uwaga: po
131 przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca! (Lecz
132 stracisz rozkosze poznawania jej tajników.)
133
134 %package doc-pdf
135 Summary:        Nethack Guidebook, PDF format
136 Summary(pl):    Nethackowy podrêcznik w formacie PDF
137 Group:          Applications/Games
138
139 %description doc-pdf
140 Nethack Guidebook, PDF format.
141
142 %description doc-pdf -l pl
143 Nethackowy podrêcznik w formacie PDF.
144
145 %prep
146 %setup -q -a1 -a2
147 %patch0 -p1
148 %patch1 -p1
149 %patch2 -p1
150 %{?with_qt:%patch3 -p1}
151 %patch4 -p1
152
153 # patches adding fun
154 %{!?with_vanilla:%patch100 -p1}
155 %{!?with_vanilla:%patch101 -p1}
156 %{!?with_vanilla:%patch102 -p1}
157 %{!?with_vanilla:%patch103 -p1}
158 %{!?with_vanilla:%patch104 -p1}
159 %{!?with_vanilla:%patch105 -p1}
160 %{!?with_vanilla:%patch106 -p1}
161 %{!?with_vanilla:%patch107 -p1}
162 %{!?with_vanilla:%patch108 -p1}
163 %{!?with_vanilla:%patch109 -p1}
164 %{!?with_vanilla:%patch110 -p1}
165 %{!?with_vanilla:%patch111 -p1}
166 %{!?with_vanilla:%patch112 -p1}
167 %{!?with_vanilla:%patch113 -p1}
168 #%%{!?with_vanilla:%patch114 -p1}
169 #%%{!?with_vanilla:%patch115 -p1}
170 #%%{!?with_vanilla:%patch116 -p1}
171 %{!?with_vanilla:%patch117 -p1}
172 %{!?with_vanilla:%patch200 -p1}
173
174 %build
175 sh ./sys/unix/setup.sh links
176
177 %{__make} all \
178         CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
179         LFLAGS="%{rpmldflags}" \
180         CC="%{__cc}" \
181         CXX="%{__cxx}" \
182         LD="%{__cxx}" \
183         QTDIR="%{_prefix}"
184
185 %{__make} -C util recover \
186         CFLAGS="%{rpmcflags} -I../include" \
187         LFLAGS="%{rpmldflags}" \
188         CC="%{__cc}"
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/man6}
193
194 %{__make} install \
195         DESTDIR=$RPM_BUILD_ROOT
196 install util/recover $RPM_BUILD_ROOT%{_nhdir}
197
198 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6
199
200 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
201 cp %{SOURCE8} vol3-1.2.2.pdf
202
203 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
204 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
205
206 %clean
207 rm -rf $RPM_BUILD_ROOT
208
209 %files
210 %defattr(644,root,root,755)
211 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
212 #%doc $RPM_BUILD_ROOT%{_nhdir}/license CHANGES*
213 %lang(pl) %doc Guidebook-3.2pl.ps.gz
214
215 %attr(2755,root,games) %{_prefix}/games/nethack
216 %attr(2755,root,games) %{_nhdir}/nethack
217 %attr(2755,root,games) %{_nhdir}/recover
218
219 %attr(755,root,root) %dir %{_nhdir}
220 %{_nhdir}/nhdat
221 %{?with_qt:%{_nhdir}/*.x[bp]m}
222 %{?with_qt:%{_nhdir}/x11tiles}
223
224 %attr(2775,root,games) %dir %{_dyndir}
225 %attr(2775,root,games) %dir %{_dyndir}/save
226 %attr(664,root,games) %{_dyndir}/perm
227 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/record
228 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/logfile
229
230 %{_mandir}/man6/*
231
232 %{_desktopdir}/*
233 %{_pixmapsdir}/*
234
235 %files spoilers
236 %defattr(644,root,root,755)
237 %doc nhspoilers/README nhspoilers/*.txt
238 %doc %dir nhspoilers/gazetteer
239 %doc vol3-1.2.2.pdf
240
241 %files doc-pdf
242 %defattr(644,root,root,755)
243 %doc Guidebook.pdf
This page took 0.072437 seconds and 4 git commands to generate.