]> git.pld-linux.org Git - packages/nethack.git/blob - nethack.spec
- removed lies
[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:        10
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}-dragon_hoard.patch
44 Patch114:       %{name}-torch.patch
45 Patch115:       %{name}-hole.patch
46 Patch116:       %{name}-mirror.patch
47 Patch117:       %{name}-newt.patch
48 # after adding additional features update this patch
49 Patch200:       %{name}-makedefs.patch
50 URL:            http://www.nethack.org/
51 BuildRequires:  XFree86-devel
52 BuildRequires:  bison
53 BuildRequires:  flex
54 BuildRequires:  ncurses-devel
55 BuildRequires:  qt-devel
56 Requires:       /bin/gzip
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %define _nhdir  %{_datadir}/nethack
60 %define _dyndir /var/games/nethack
61
62 %description
63 A dungeon game similar to rogue but more elaborate, very popular at
64 Unix sites and on PC-class machines (nethack is probably the most
65 widely distributed of the freeware dungeon games). The earliest
66 versions, written by Jay Fenlason and later considerably enhanced by
67 Andries Brouwer, were simply called `hack'. The name changed when
68 maintenance was taken over by a group of hackers originally organized
69 by Mike Stephenson.
70
71 %{?!_with_vanilla:This package contains additional features.}
72
73 %description -l pt_BR
74 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
75 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
76 anos pelo mesmo time de indivíduos.
77
78 %description -l es
79 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
80 and Dragons (calabozos y dragones). Es un juego muy elaborado y
81 profundo, desarrollado desde hace muchos años por el mismo grupo de
82 individuos.
83
84 %description -l no
85 NetHack - Et eventyr i en faretruende labyrint.
86
87 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
88 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
89 til versjon 3.0 og 3.1 av NetHack.
90
91 Denne utgaven er kopilert støtte for følgende utvidelser: QT og
92 ncurses.
93
94 %description -l pl
95 Gra dziej±ca siê w lochu, podobna do rogue, lecz bardziej dopracowana.
96 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
97 prawdopodobnie najszerzej rozpowszechnion± darmow± gr± labiryntow±.)
98 Najwcze¶niejsze wersje, napisane przez Jaya Fenlasona, a nastêpnie
99 znacznie rozszerzone przez Andriesa Brouwara, nazywa³y siê po prostu
100 'hack' (r±baæ, siekaæ.) Nazwa zmieni³a siê gdy opieka nad gr± zosta³a
101 przejêta przez grupê hackerów zawi±zan± przez Mike'a Stephensona.
102
103 %{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
104
105 %package spoilers
106 Summary:        Spoilers to NetHack
107 Summary(pl):    Psuje dla NetHacka
108 Group:          Applications/Games
109
110 %description spoilers
111 Spoilers - a set of texts which explain many secrets in the game.
112 Beware: the game after reading it becomes even more addictive! (But
113 you will lose delights of discovering its secrets.)
114
115 %description spoilers -l pl
116 Psuje - zbiór tekstów wyja¶niaj±cych wiele sekretów w grze. Uwaga: po
117 przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca! (Lecz
118 stracisz rozkosze poznawania jej tajników.)
119
120 %package doc-pdf
121 Summary:        Nethack Guidebook, PDF format
122 Summary(pl):    Nethackowy podrêcznik w formacie PDF
123 Group:          Applications/Games
124
125 %description doc-pdf
126 Nethack Guidebook, PDF format.
127
128 %description doc-pdf -l pl
129 Nethackowy podrêcznik w formacie PDF.
130
131 %prep
132 %setup -q -a 1 -a 2 -n %{name}-%{version}
133 %patch0 -p1
134 %patch1 -p1
135
136 # patches adding fun
137 %{?!_with_vanilla:%patch100 -p1}
138 %{?!_with_vanilla:%patch101 -p1}
139 %{?!_with_vanilla:%patch102 -p1}
140 %{?!_with_vanilla:%patch103 -p1}
141 %{?!_with_vanilla:%patch104 -p1}
142 %{?!_with_vanilla:%patch105 -p1}
143 %{?!_with_vanilla:%patch106 -p1}
144 %{?!_with_vanilla:%patch107 -p1}
145 %{?!_with_vanilla:%patch108 -p1}
146 %{?!_with_vanilla:%patch109 -p1}
147 %{?!_with_vanilla:%patch110 -p1}
148 %{?!_with_vanilla:%patch111 -p1}
149 %{?!_with_vanilla:%patch112 -p1}
150 %{?!_with_vanilla:%patch113 -p1}
151 #%{?!_with_vanilla:%patch114 -p1}
152 #%{?!_with_vanilla:%patch115 -p1}
153 #%{?!_with_vanilla:%patch116 -p1}
154 %{?!_with_vanilla:%patch117 -p1}
155 %{?!_with_vanilla:%patch200 -p1}
156
157 %build
158 sh ./sys/unix/setup.sh links
159
160 %{__make} all \
161         CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
162         LFLAGS="%{rpmldflags}" \
163         CC="%{__cc}" \
164         CXX="%{__cxx}" \
165         LD="%{__cxx}"
166
167 %{__make} -C util recover \
168         CFLAGS="%{rpmcflags} -I../include" \
169         LFLAGS="%{rpmldflags}" \
170         CC="%{__cc}"
171
172 %install
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games/Roguelike,%{_mandir}/man6}
175
176 %{__make} install DESTDIR=$RPM_BUILD_ROOT
177 install util/recover $RPM_BUILD_ROOT%{_nhdir}
178
179 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
180
181 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
182 cp %{SOURCE8} vol3-1.2.2.pdf
183
184 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games/Roguelike
185 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %files
191 %defattr(644,root,root,755)
192 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
193 #%doc $RPM_BUILD_ROOT%{_nhdir}/license CHANGES*
194 %lang(pl) %doc Guidebook-3.2pl.ps.gz
195
196 %attr(2755,root,games) %{_prefix}/games/nethack
197 %attr(2755,root,games) %{_nhdir}/nethack
198 %attr(2755,root,games) %{_nhdir}/recover
199
200 %attr(755,root,root) %dir %{_nhdir}
201 %{_nhdir}/nhdat
202 %{_nhdir}/*.xpm
203 %{_nhdir}/x11tiles
204
205 %attr(2775,root,games) %dir %{_dyndir}
206 %attr(2775,root,games) %dir %{_dyndir}/save
207 %attr(664,root,games) %{_dyndir}/perm
208 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/record
209 %attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/logfile
210
211 %{_mandir}/man6/*
212
213 %{_applnkdir}/Games/Roguelike/*
214 %{_pixmapsdir}/*
215
216 %files spoilers
217 %defattr(644,root,root,755)
218 %doc nhspoilers/README nhspoilers/*.txt
219 %doc %dir nhspoilers/gazetteer
220 %doc vol3-1.2.2.pdf
221
222 %files doc-pdf
223 %defattr(644,root,root,755)
224 %doc Guidebook.pdf
This page took 0.07354 seconds and 3 git commands to generate.