]> git.pld-linux.org Git - packages/nethack.git/blob - nethack.spec
- _applnkdir -> _desktopdir; rel. 2
[packages/nethack.git] / nethack.spec
1 #
2 # Conditional build:
3 # _with_vanilla - build vanilla NetHack (without patches)
4 # _without_qt   - no X11 and QT bloat
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(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
15 Name:           nethack
16 Version:        3.4.1
17 Release:        2
18 License:        Nethack GPL
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
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 # 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}
64 BuildRequires:  bison
65 BuildRequires:  flex
66 BuildRequires:  ncurses-devel
67 %{?!_without_qt:BuildRequires:  qt-devel >= 3.0.3}
68 Requires:       /bin/gzip
69 Conflicts:      applnk < 1.5.13
70 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72 %define _nhdir  %{_datadir}/nethack
73 %define _dyndir /var/games/nethack
74
75 %description
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
82 by Mike Stephenson.
83
84 %{?!_with_vanilla:This package contains additional features.}
85
86 %description -l pt_BR
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.
90
91 %description -l es
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
95 individuos.
96
97 %description -l no
98 NetHack - Et eventyr i en faretruende labyrint.
99
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.
103
104 Denne utgaven er kopilert støtte for følgende utvidelser: QT og
105 ncurses.
106
107 %description -l pl
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.
115
116 %{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
117
118 %package spoilers
119 Summary:        Spoilers to NetHack
120 Summary(pl):    Psuje dla NetHacka
121 Group:          Applications/Games
122
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.)
127
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.)
132
133 %package doc-pdf
134 Summary:        Nethack Guidebook, PDF format
135 Summary(pl):    Nethackowy podrêcznik w formacie PDF
136 Group:          Applications/Games
137
138 %description doc-pdf
139 Nethack Guidebook, PDF format.
140
141 %description doc-pdf -l pl
142 Nethackowy podrêcznik w formacie PDF.
143
144 %prep
145 %setup -q -a1 -a2
146 %patch0 -p1
147 %patch1 -p1
148 %patch2 -p1
149 %{?!_without_qt:%patch3 -p1}
150
151 # patches adding fun
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}
171
172 %build
173 sh ./sys/unix/setup.sh links
174
175 %{__make} all \
176         CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
177         LFLAGS="%{rpmldflags}" \
178         CC="%{__cc}" \
179         CXX="%{__cxx}" \
180         LD="%{__cxx}" \
181         QTDIR="%{_prefix}"
182
183 %{__make} -C util recover \
184         CFLAGS="%{rpmcflags} -I../include" \
185         LFLAGS="%{rpmldflags}" \
186         CC="%{__cc}"
187
188 %install
189 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/man6}
191
192 %{__make} install \
193         DESTDIR=$RPM_BUILD_ROOT
194 install util/recover $RPM_BUILD_ROOT%{_nhdir}
195
196 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
197
198 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
199 cp %{SOURCE8} vol3-1.2.2.pdf
200
201 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
202 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
203
204 %clean
205 rm -rf $RPM_BUILD_ROOT
206
207 %files
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
212
213 %attr(2755,root,games) %{_prefix}/games/nethack
214 %attr(2755,root,games) %{_nhdir}/nethack
215 %attr(2755,root,games) %{_nhdir}/recover
216
217 %attr(755,root,root) %dir %{_nhdir}
218 %{_nhdir}/nhdat
219 %{?!_without_qt:%{_nhdir}/*.xpm}
220 %{?!_without_qt:%{_nhdir}/x11tiles}
221
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
227
228 %{_mandir}/man6/*
229
230 %{_desktopdir}/*
231 %{_pixmapsdir}/*
232
233 %files spoilers
234 %defattr(644,root,root,755)
235 %doc nhspoilers/README nhspoilers/*.txt
236 %doc %dir nhspoilers/gazetteer
237 %doc vol3-1.2.2.pdf
238
239 %files doc-pdf
240 %defattr(644,root,root,755)
241 %doc Guidebook.pdf
This page took 0.709823 seconds and 4 git commands to generate.