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