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