]> git.pld-linux.org Git - packages/nethack.git/blob - nethack.spec
4fc2d86f2852f5f76cb18cf8a084c3ac23764f06
[packages/nethack.git] / nethack.spec
1 #
2 # Conditional build:
3 # --with vanilla - build vanilla NetHack (without patches)
4 #
5 # no patches for now, wait for updates
6 %define _with_vanilla   1
7
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
14 Name:           nethack
15 Version:        3.4.1
16 Release:        1
17 License:        Nethack GPL
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
24 Source4:        %{name}.png
25 Source5:        Guidebook-3.2pl.ps.gz
26 Source6:        Guidebook.pdf
27 Source7:        %{name}rc.gz
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
57 BuildRequires:  bison
58 BuildRequires:  flex
59 BuildRequires:  ncurses-devel
60 BuildRequires:  qt-devel >= 3.0.3
61 Requires:       /bin/gzip
62 Requires:       applnk >= 1.5.13
63 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
65 %define _nhdir  %{_datadir}/nethack
66 %define _dyndir /var/games/nethack
67
68 %description
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
75 by Mike Stephenson.
76
77 %{?!_with_vanilla:This package contains additional features.}
78
79 %description -l pt_BR
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.
83
84 %description -l es
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
88 individuos.
89
90 %description -l no
91 NetHack - Et eventyr i en faretruende labyrint.
92
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.
96
97 Denne utgaven er kopilert støtte for følgende utvidelser: QT og
98 ncurses.
99
100 %description -l pl
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.
108
109 %{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
110
111 %package spoilers
112 Summary:        Spoilers to NetHack
113 Summary(pl):    Psuje dla NetHacka
114 Group:          Applications/Games
115
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.)
120
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.)
125
126 %package doc-pdf
127 Summary:        Nethack Guidebook, PDF format
128 Summary(pl):    Nethackowy podrêcznik w formacie PDF
129 Group:          Applications/Games
130
131 %description doc-pdf
132 Nethack Guidebook, PDF format.
133
134 %description doc-pdf -l pl
135 Nethackowy podrêcznik w formacie PDF.
136
137 %prep
138 %setup -q -a 1 -a 2 -n %{name}-%{version}
139 %patch0 -p1
140 %patch1 -p1
141 %patch2 -p1
142
143 # patches adding fun
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}
163
164 %build
165 sh ./sys/unix/setup.sh links
166
167 %{__make} all \
168         CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
169         LFLAGS="%{rpmldflags}" \
170         CC="%{__cc}" \
171         CXX="%{__cxx}" \
172         LD="%{__cxx}" \
173         QTDIR="%{_prefix}"
174
175 %{__make} -C util recover \
176         CFLAGS="%{rpmcflags} -I../include" \
177         LFLAGS="%{rpmldflags}" \
178         CC="%{__cc}"
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games/RPG,%{_mandir}/man6}
183
184 %{__make} install DESTDIR=$RPM_BUILD_ROOT
185 install util/recover $RPM_BUILD_ROOT%{_nhdir}
186
187 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
188
189 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
190 cp %{SOURCE8} vol3-1.2.2.pdf
191
192 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games/RPG
193 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
194
195 %clean
196 rm -rf $RPM_BUILD_ROOT
197
198 %files
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
203
204 %attr(2755,root,games) %{_prefix}/games/nethack
205 %attr(2755,root,games) %{_nhdir}/nethack
206 %attr(2755,root,games) %{_nhdir}/recover
207
208 %attr(755,root,root) %dir %{_nhdir}
209 %{_nhdir}/nhdat
210 %{_nhdir}/*.xpm
211 %{_nhdir}/x11tiles
212
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
218
219 %{_mandir}/man6/*
220
221 %{_applnkdir}/Games/RPG/*
222 %{_pixmapsdir}/*
223
224 %files spoilers
225 %defattr(644,root,root,755)
226 %doc nhspoilers/README nhspoilers/*.txt
227 %doc %dir nhspoilers/gazetteer
228 %doc vol3-1.2.2.pdf
229
230 %files doc-pdf
231 %defattr(644,root,root,755)
232 %doc Guidebook.pdf
This page took 0.062226 seconds and 3 git commands to generate.