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