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