]> git.pld-linux.org Git - packages/nethack.git/blob - nethack.spec
- converted to UTF-8
[packages/nethack.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:        5
17 License:        Nethack GPL
18 Group:          Applications/Games
19 Source0:        http://dl.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 Source7:        %{name}rc.gz
31 # Source7-md5:  ffd3d14ab4df527e9f3738320dec7f93
32 # http://avrc.city.ac.uk/nethack/VernonSpoilers/vol3-1.2.2.pdf
33 Source8:        %{name}-vol3-1.2.2.pdf
34 Patch0:         %{name}-config.patch
35 Patch1:         %{name}-makefile.patch
36 Patch2:         %{name}-gcc3.patch
37 Patch3:         %{name}-qt.patch
38 Patch4:         %{name}-qt33.patch
39 # http://www.userfriendly.org/games/nethack/nethack-3.4.3-turbonerd-0.1.0.patch
40 Patch5:         %{name}-3.4.3-turbonerd-0.1.0.patch
41 URL:            http://www.nethack.org/
42 %{?with_qt:BuildRequires:       XFree86-devel}
43 BuildRequires:  bison
44 BuildRequires:  flex
45 BuildRequires:  groff
46 BuildRequires:  ncurses-devel
47 %{?with_qt:BuildRequires:       qt-devel >= 3.0.3}
48 Requires:       /bin/gzip
49 Conflicts:      applnk < 1.5.13
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %define         _nhdir          %{_datadir}/nethack
53 %define         _dyndir         /var/games/nethack
54
55 %description
56 A dungeon game similar to rogue but more elaborate, very popular at
57 Unix sites and on PC-class machines (nethack is probably the most
58 widely distributed of the freeware dungeon games). The earliest
59 versions, written by Jay Fenlason and later considerably enhanced by
60 Andries Brouwer, were simply called `hack'. The name changed when
61 maintenance was taken over by a group of hackers originally organized
62 by Mike Stephenson.
63
64 %description -l pt_BR.UTF-8
65 Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
66 Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
67 anos pelo mesmo time de indivíduos.
68
69 %description -l es.UTF-8
70 Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
71 and Dragons (calabozos y dragones). Es un juego muy elaborado y
72 profundo, desarrollado desde hace muchos años por el mismo grupo de
73 individuos.
74
75 %description -l nb.UTF-8
76 NetHack - Et eventyr i en faretruende labyrint.
77
78 NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
79 spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
80 til versjon 3.0 og 3.1 av NetHack.
81
82 Denne utgaven er kopilert støtte for følgende utvidelser: Qt og
83 ncurses.
84
85 %description -l pl.UTF-8
86 Gra dziejąca się w lochu, podobna do rogue, lecz bardziej dopracowana.
87 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
88 prawdopodobnie najszerzej rozpowszechnioną darmową grą labiryntową.)
89 Najwcześniejsze wersje, napisane przez Jaya Fenlasona, a następnie
90 znacznie rozszerzone przez Andriesa Brouwara, nazywały się po prostu
91 'hack' (rąbać, siekać.) Nazwa zmieniła się gdy opieka nad grą została
92 przejęta przez grupę hackerów zawiązaną przez Mike'a Stephensona.
93
94 %package spoilers
95 Summary:        Spoilers to NetHack
96 Summary(pl.UTF-8):   Psuje dla NetHacka
97 Group:          Applications/Games
98
99 %description spoilers
100 Spoilers - a set of texts which explain many secrets in the game.
101 Beware: the game after reading it becomes even more addictive! (But
102 you will lose delights of discovering its secrets.)
103
104 %description spoilers -l pl.UTF-8
105 Psuje - zbiór tekstów wyjaśniających wiele sekretów w grze. Uwaga: po
106 przeczytaniu gra staje się jeszcze bardziej uzależniająca! (Lecz
107 stracisz rozkosze poznawania jej tajników.)
108
109 %package doc-pdf
110 Summary:        Nethack Guidebook, PDF format
111 Summary(pl.UTF-8):   Nethackowy podręcznik w formacie PDF
112 Group:          Applications/Games
113
114 %description doc-pdf
115 Nethack Guidebook, PDF format.
116
117 %description doc-pdf -l pl.UTF-8
118 Nethackowy podręcznik w formacie PDF.
119
120 %prep
121 %setup -q -a1 -a2
122 %patch0 -p1
123 %patch1 -p1
124 %patch2 -p1
125 %{?with_qt:%patch3 -p1}
126 %patch4 -p1
127 %patch5 -p1
128
129 %build
130 sh ./sys/unix/setup.sh links
131
132 %{__make} all \
133         CFLAGS="%{rpmcflags} -I../include -I/usr/include/ncurses -DWIZARD='\"%{_wizard}\"'" \
134         LFLAGS="%{rpmldflags}" \
135         CC="%{__cc}" \
136         CXX="%{__cxx}" \
137         LD="%{__cxx}" \
138         QTDIR="%{_prefix}"
139
140 %{__make} -C util recover \
141         CFLAGS="%{rpmcflags} -I../include" \
142         LFLAGS="%{rpmldflags}" \
143         CC="%{__cc}"
144
145 %install
146 rm -rf $RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/man6}
148
149 %{__make} install \
150         DESTDIR=$RPM_BUILD_ROOT
151 install util/recover $RPM_BUILD_ROOT%{_nhdir}
152
153 install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6
154
155 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
156 cp %{SOURCE8} vol3-1.2.2.pdf
157
158 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
159 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
160
161 %clean
162 rm -rf $RPM_BUILD_ROOT
163
164 %files
165 %defattr(644,root,root,755)
166 %doc README doc/Guidebook doc/window.doc doc/fixes* %{name}rc.gz
167 #%doc $RPM_BUILD_ROOT%{_nhdir}/license CHANGES*
168 %lang(pl) %doc Guidebook-3.2pl.ps.gz
169
170 %attr(2755,root,games) %{_prefix}/games/nethack
171 %attr(2755,root,games) %{_nhdir}/nethack
172 %attr(2755,root,games) %{_nhdir}/recover
173
174 %attr(755,root,root) %dir %{_nhdir}
175 %{_nhdir}/nhdat
176 %{?with_qt:%{_nhdir}/*.x[bp]m}
177 %{?with_qt:%{_nhdir}/x11tiles}
178
179 %attr(2775,root,games) %dir %{_dyndir}
180 %attr(2775,root,games) %dir %{_dyndir}/save
181 %attr(664,root,games) %{_dyndir}/perm
182 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_dyndir}/record
183 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_dyndir}/logfile
184
185 %{_mandir}/man6/*
186
187 %{_desktopdir}/*.desktop
188 %{_pixmapsdir}/*
189
190 %files spoilers
191 %defattr(644,root,root,755)
192 %doc nhspoilers/README nhspoilers/*.txt
193 %doc %dir nhspoilers/gazetteer
194 %doc vol3-1.2.2.pdf
195
196 %files doc-pdf
197 %defattr(644,root,root,755)
198 %doc Guidebook.pdf
This page took 0.04407 seconds and 4 git commands to generate.