]> git.pld-linux.org Git - SPECS.git/blob - nethack.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / nethack.spec
1 #
2 # Conditional build:
3 %bcond_without  qt      # no X11 and Qt bloat 
4 #
5 # --define 'wizard other_username', default is root
6 %define         _wizard         %{?wizard:%{wizard}}%{!?wizard:"root"}
7 #
8 %define         file_version    %(echo %{version} | tr -d .)
9 Summary:        NetHack - An adventure into the Mazes of Menace
10 Summary(es.UTF-8):      Juego estilo rogue que se basa en Dungeons and Dragons (calabozos y dragones)
11 Summary(nb.UTF-8):      NetHack - Et eventyr i en faretruende labyrint
12 Summary(pl.UTF-8):      NetHack - Przygoda w Labiryntach Groźby
13 Summary(pt_BR.UTF-8):   Jogo estilo rogue baseado no Dungeons and Dragons
14 Name:           nethack
15 Version:        3.4.3
16 Release:        10
17 License:        Nethack GPL
18 Group:          Applications/Games
19 Source0:        http://downloads.sourceforge.net/nethack/%{name}-%{file_version}-src.tgz
20 # Source0-md5:  21479c95990eefe7650df582426457f9
21 Source1:        http://www.spod-central.org/~psmith/nh/spoi-%{file_version}.tar.gz
22 # Source1-md5:  72cac599c3660eac0a54b17ece8989ff
23 Source2:        http://www.spod-central.org/~psmith/nh/gazetteer.tar.gz
24 # Source2-md5:  651997ab54552b5e9a586cef46bcc50a
25 Source3:        %{name}.desktop
26 Source4:        %{name}.png
27 Source5:        Guidebook-3.2pl.ps.gz
28 # Source5-md5:  4a2a9a38deb08e9c4177c3b5ce6e627e
29 Source6:        Guidebook.pdf
30 # Source6-md5:  4fc7970cd5664f293c426a4d696c8a6b
31 Source7:        %{name}rc.gz
32 # Source7-md5:  ffd3d14ab4df527e9f3738320dec7f93
33 # http://avrc.city.ac.uk/nethack/VernonSpoilers/vol3-1.2.2.pdf
34 Source8:        %{name}-vol3-1.2.2.pdf
35 # Source8-md5:  67937e7f7a786390a47bf9f195c1a5c4
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 # http://www.userfriendly.org/games/nethack/nethack-3.4.3-turbonerd-0.1.0.patch
42 Patch5:         %{name}-3.4.3-turbonerd-0.1.0.patch
43 Patch6:         nethack-3.4.3-format-security.patch
44 URL:            http://www.nethack.org/
45 BuildRequires:  bison
46 BuildRequires:  flex
47 BuildRequires:  groff
48 BuildRequires:  ncurses-devel
49 %{?with_qt:BuildRequires:       qt-devel >= 3.0.3}
50 BuildRequires:  util-linux
51 %{?with_qt:BuildRequires:       xorg-lib-libX11-devel}
52 Requires:       /bin/gzip
53 Conflicts:      applnk < 1.5.13
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 %description -l pt_BR.UTF-8
69 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
70 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
71 anos pelo mesmo time de indivíduos.
72
73 %description -l es.UTF-8
74 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
75 and Dragons (calabozos y dragones). Es un juego muy elaborado y
76 profundo, desarrollado desde hace muchos años por el mismo grupo de
77 individuos.
78
79 %description -l nb.UTF-8
80 NetHack - Et eventyr i en faretruende labyrint.
81
82 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
83 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
84 til versjon 3.0 og 3.1 av NetHack.
85
86 Denne utgaven er kopilert støtte for følgende utvidelser: Qt og
87 ncurses.
88
89 %description -l pl.UTF-8
90 Gra dziejąca się w lochu, podobna do rogue, lecz bardziej dopracowana.
91 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
92 prawdopodobnie najszerzej rozpowszechnioną darmową grą labiryntową.)
93 Najwcześniejsze wersje, napisane przez Jaya Fenlasona, a następnie
94 znacznie rozszerzone przez Andriesa Brouwara, nazywały się po prostu
95 'hack' (rąbać, siekać.) Nazwa zmieniła się gdy opieka nad grą została
96 przejęta przez grupę hackerów zawiązaną przez Mike'a Stephensona.
97
98 %package spoilers
99 Summary:        Spoilers to NetHack
100 Summary(pl.UTF-8):      Psuje dla NetHacka
101 Group:          Applications/Games
102
103 %description spoilers
104 Spoilers - a set of texts which explain many secrets in the game.
105 Beware: the game after reading it becomes even more addictive! (But
106 you will lose delights of discovering its secrets.)
107
108 %description spoilers -l pl.UTF-8
109 Psuje - zbiór tekstów wyjaśniających wiele sekretów w grze. Uwaga: po
110 przeczytaniu gra staje się jeszcze bardziej uzależniająca! (Lecz
111 stracisz rozkosze poznawania jej tajników.)
112
113 %package doc-pdf
114 Summary:        Nethack Guidebook, PDF format
115 Summary(pl.UTF-8):      Nethackowy podręcznik w formacie PDF
116 Group:          Applications/Games
117
118 %description doc-pdf
119 Nethack Guidebook, PDF format.
120
121 %description doc-pdf -l pl.UTF-8
122 Nethackowy podręcznik w formacie PDF.
123
124 %prep
125 %setup -q -a1 -a2
126 %patch0 -p1
127 %patch1 -p1
128 %patch2 -p1
129 %{?with_qt:%patch3 -p1}
130 %patch4 -p1
131 %patch5 -p1
132 %patch6 -p1
133
134 %build
135 sh ./sys/unix/setup.sh links
136
137 %{__make} -j1 all \
138         CFLAGS="%{rpmcflags} -I../include -I/usr/include/ncurses -DWIZARD='\"%{_wizard}\"'" \
139         LFLAGS="%{rpmldflags}" \
140         CC="%{__cc}" \
141         CXX="%{__cxx}" \
142         LD="%{__cxx}" \
143         QTDIR="%{_prefix}"
144
145 %{__make} -C util recover \
146         CFLAGS="%{rpmcflags} -I../include" \
147         LFLAGS="%{rpmldflags}" \
148         CC="%{__cc}"
149
150 %install
151 rm -rf $RPM_BUILD_ROOT
152 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/man6}
153
154 %{__make} install \
155         DESTDIR=$RPM_BUILD_ROOT
156 install util/recover $RPM_BUILD_ROOT%{_nhdir}
157
158 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6
159
160 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
161 cp %{SOURCE8} vol3-1.2.2.pdf
162
163 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
164 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %files
170 %defattr(644,root,root,755)
171 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
172 #%doc $RPM_BUILD_ROOT%{_nhdir}/license CHANGES*
173 %lang(pl) %doc Guidebook-3.2pl.ps.gz
174
175 %attr(2755,root,games) %{_prefix}/games/nethack
176 %attr(2755,root,games) %{_nhdir}/nethack
177 %attr(2755,root,games) %{_nhdir}/recover
178
179 %dir %{_nhdir}
180 %{_nhdir}/nhdat
181 %{?with_qt:%{_nhdir}/*.x[bp]m}
182 %{?with_qt:%{_nhdir}/x11tiles}
183
184 %attr(2775,root,games) %dir %{_dyndir}
185 %attr(2775,root,games) %dir %{_dyndir}/save
186 %attr(664,root,games) %{_dyndir}/perm
187 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_dyndir}/record
188 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_dyndir}/logfile
189
190 %{_mandir}/man6/*
191
192 %{_desktopdir}/*.desktop
193 %{_pixmapsdir}/*
194
195 %files spoilers
196 %defattr(644,root,root,755)
197 %doc nhspoilers/README nhspoilers/*.txt
198 %doc %dir nhspoilers/gazetteer
199 %doc vol3-1.2.2.pdf
200
201 %files doc-pdf
202 %defattr(644,root,root,755)
203 %doc Guidebook.pdf
This page took 0.280139 seconds and 3 git commands to generate.