]> git.pld-linux.org Git - packages/nethack.git/blobdiff - nethack.spec
- rel 10; build fixed - patch from FC
[packages/nethack.git] / nethack.spec
index 4fc2d86f2852f5f76cb18cf8a084c3ac23764f06..00c13a93f59a75fb68691eb3c99d68baa2419cd3 100644 (file)
@@ -1,69 +1,60 @@
 #
 # Conditional build:
-# --with vanilla - build vanilla NetHack (without patches)
+%bcond_without qt      # no X11 and Qt bloat 
+#
+# --define 'wizard other_username', default is root
+%define                _wizard         %{?wizard:%{wizard}}%{!?wizard:"root"}
 #
-# no patches for now, wait for updates
-%define _with_vanilla  1
-
 %define                file_version    %(echo %{version} | tr -d .)
 Summary:       NetHack - An adventure into the Mazes of Menace
-Summary(es):   Juego estilo rogue que se basa en Dungeons and Dragons (calabozos y dragones)
-Summary(no):   NetHack - Et eventyr i en faretruende labyrint
-Summary(pl):   NetHack - Przygoda w Labiryntach Gro¼by
-Summary(pt_BR):        Jogo estilo rogue baseado no Dungeons and Dragons
+Summary(es.UTF-8):     Juego estilo rogue que se basa en Dungeons and Dragons (calabozos y dragones)
+Summary(nb.UTF-8):     NetHack - Et eventyr i en faretruende labyrint
+Summary(pl.UTF-8):     NetHack - Przygoda w Labiryntach Groźby
+Summary(pt_BR.UTF-8):  Jogo estilo rogue baseado no Dungeons and Dragons
 Name:          nethack
-Version:       3.4.1
-Release:       1
+Version:       3.4.3
+Release:       10
 License:       Nethack GPL
 Group:         Applications/Games
-Source0:       ftp://ftp.nethack.org/pub/nethack/nh%{file_version}/src/%{name}-%{file_version}.tgz
-#Source1:      http://www.spod-central.org/~psmith/nh/spoi-%{file_version}.tar.gz
-Source1:       http://www.spod-central.org/~psmith/nh/spoi-340.tar.gz
+Source0:       http://downloads.sourceforge.net/nethack/%{name}-%{file_version}-src.tgz
+# Source0-md5: 21479c95990eefe7650df582426457f9
+Source1:       http://www.spod-central.org/~psmith/nh/spoi-%{file_version}.tar.gz
+# Source1-md5: 72cac599c3660eac0a54b17ece8989ff
 Source2:       http://www.spod-central.org/~psmith/nh/gazetteer.tar.gz
+# Source2-md5: 651997ab54552b5e9a586cef46bcc50a
 Source3:       %{name}.desktop
 Source4:       %{name}.png
 Source5:       Guidebook-3.2pl.ps.gz
+# Source5-md5: 4a2a9a38deb08e9c4177c3b5ce6e627e
 Source6:       Guidebook.pdf
+# Source6-md5: 4fc7970cd5664f293c426a4d696c8a6b
 Source7:       %{name}rc.gz
+# Source7-md5: ffd3d14ab4df527e9f3738320dec7f93
 # http://avrc.city.ac.uk/nethack/VernonSpoilers/vol3-1.2.2.pdf
 Source8:       %{name}-vol3-1.2.2.pdf
+# Source8-md5: 67937e7f7a786390a47bf9f195c1a5c4
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-makefile.patch
 Patch2:                %{name}-gcc3.patch
-# patches below are adapted from ones found at http://avrc.city.ac.uk/nethack/patches.html
-# warning: order is important in most cases
-Patch100:      %{name}-show_born.patch
-Patch101:      %{name}-dump.patch
-Patch102:      %{name}-behind_boulder.patch
-Patch103:      %{name}-yafm-monabil.patch
-Patch104:      %{name}-chivalry.patch
-Patch105:      %{name}-kenny.patch
-Patch106:      %{name}-sticky_objects.patch
-Patch107:      %{name}-steed-fix.patch
-Patch108:      %{name}-wash_hands.patch
-Patch109:      %{name}-listmons.patch
-Patch110:      %{name}-flipcoin.patch
-Patch111:      %{name}-ride_key.patch
-Patch112:      %{name}-dungeon_growth.patch
-Patch113:      %{name}-dragon_hoard.patch
-Patch114:      %{name}-torch.patch
-Patch115:      %{name}-hole.patch
-Patch116:      %{name}-mirror.patch
-Patch117:      %{name}-newt.patch
-# after adding additional features update this patch
-Patch200:      %{name}-makedefs.patch
+Patch3:                %{name}-qt.patch
+Patch4:                %{name}-qt33.patch
+# http://www.userfriendly.org/games/nethack/nethack-3.4.3-turbonerd-0.1.0.patch
+Patch5:                %{name}-3.4.3-turbonerd-0.1.0.patch
+Patch6:                nethack-3.4.3-format-security.patch
 URL:           http://www.nethack.org/
-BuildRequires: XFree86-devel
 BuildRequires: bison
 BuildRequires: flex
+BuildRequires: groff
 BuildRequires: ncurses-devel
-BuildRequires: qt-devel >= 3.0.3
+%{?with_qt:BuildRequires:      qt-devel >= 3.0.3}
+BuildRequires: util-linux
+%{?with_qt:BuildRequires:      xorg-lib-libX11-devel}
 Requires:      /bin/gzip
-Requires:      applnk >= 1.5.13
+Conflicts:     applnk < 1.5.13
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define _nhdir %{_datadir}/nethack
-%define _dyndir        /var/games/nethack
+%define                _nhdir          %{_datadir}/nethack
+%define                _dyndir         /var/games/nethack
 
 %description
 A dungeon game similar to rogue but more elaborate, very popular at
@@ -74,43 +65,39 @@ Andries Brouwer, were simply called `hack'. The name changed when
 maintenance was taken over by a group of hackers originally organized
 by Mike Stephenson.
 
-%{?!_with_vanilla:This package contains additional features.}
-
-%description -l pt_BR
-Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
-Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
-anos pelo mesmo time de indivíduos.
+%description -l pt_BR.UTF-8
+Nethack é um jogo clássico estilo rogue, baseado no Dungeons and
+Dragons. Ele é um jogo muito elaborado e profundo, desenvolvido há
+anos pelo mesmo time de indivíduos.
 
-%description -l es
-Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
+%description -l es.UTF-8
+Nethack es un juego clásico estilo rogue, basado en el juego Dungeons
 and Dragons (calabozos y dragones). Es un juego muy elaborado y
-profundo, desarrollado desde hace muchos años por el mismo grupo de
+profundo, desarrollado desde hace muchos años por el mismo grupo de
 individuos.
 
-%description -l no
+%description -l nb.UTF-8
 NetHack - Et eventyr i en faretruende labyrint.
 
-NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
-spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
+NetHack 3.4.0 er siste utvidelse til NetHack, et tøm og røm eventyr
+spill. Det er basert på spill som Rouge og Hack, og er etterfølgeren
 til versjon 3.0 og 3.1 av NetHack.
 
-Denne utgaven er kopilert støtte for følgende utvidelser: QT og
+Denne utgaven er kopilert støtte for følgende utvidelser: Qt og
 ncurses.
 
-%description -l pl
-Gra dziej±ca siê w lochu, podobna do rogue, lecz bardziej dopracowana.
+%description -l pl.UTF-8
+Gra dziejąca się w lochu, podobna do rogue, lecz bardziej dopracowana.
 Bardzo popularna na Uniksach i maszynach klasy PC (nethack jest
-prawdopodobnie najszerzej rozpowszechnion± darmow± gr± labiryntow±.)
-Najwcze¶niejsze wersje, napisane przez Jaya Fenlasona, a nastêpnie
-znacznie rozszerzone przez Andriesa Brouwara, nazywa³y siê po prostu
-'hack' (r±baæ, siekaæ.) Nazwa zmieni³a siê gdy opieka nad gr± zosta³a
-przejêta przez grupê hackerów zawi±zan± przez Mike'a Stephensona.
-
-%{?!_with_vanilla:Ten pakiet zawiera dodatkowe bajery.}
+prawdopodobnie najszerzej rozpowszechnioną darmową grą labiryntową.)
+Najwcześniejsze wersje, napisane przez Jaya Fenlasona, a następnie
+znacznie rozszerzone przez Andriesa Brouwara, nazywały się po prostu
+'hack' (rąbać, siekać.) Nazwa zmieniła się gdy opieka nad grą została
+przejęta przez grupę hackerów zawiązaną przez Mike'a Stephensona.
 
 %package spoilers
 Summary:       Spoilers to NetHack
-Summary(pl):   Psuje dla NetHacka
+Summary(pl.UTF-8):     Psuje dla NetHacka
 Group:         Applications/Games
 
 %description spoilers
@@ -118,54 +105,37 @@ Spoilers - a set of texts which explain many secrets in the game.
 Beware: the game after reading it becomes even more addictive! (But
 you will lose delights of discovering its secrets.)
 
-%description spoilers -l pl
-Psuje - zbiór tekstów wyja¶niaj±cych wiele sekretów w grze. Uwaga: po
-przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca! (Lecz
-stracisz rozkosze poznawania jej tajników.)
+%description spoilers -l pl.UTF-8
+Psuje - zbiór tekstów wyjaśniających wiele sekretów w grze. Uwaga: po
+przeczytaniu gra staje się jeszcze bardziej uzależniająca! (Lecz
+stracisz rozkosze poznawania jej tajników.)
 
 %package doc-pdf
 Summary:       Nethack Guidebook, PDF format
-Summary(pl):   Nethackowy podrêcznik w formacie PDF
+Summary(pl.UTF-8):     Nethackowy podręcznik w formacie PDF
 Group:         Applications/Games
 
 %description doc-pdf
 Nethack Guidebook, PDF format.
 
-%description doc-pdf -l pl
-Nethackowy podrêcznik w formacie PDF.
+%description doc-pdf -l pl.UTF-8
+Nethackowy podręcznik w formacie PDF.
 
 %prep
-%setup -q -a 1 -a 2 -n %{name}-%{version}
+%setup -q -a1 -a2
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-
-# patches adding fun
-%{?!_with_vanilla:%patch100 -p1}
-%{?!_with_vanilla:%patch101 -p1}
-%{?!_with_vanilla:%patch102 -p1}
-%{?!_with_vanilla:%patch103 -p1}
-%{?!_with_vanilla:%patch104 -p1}
-%{?!_with_vanilla:%patch105 -p1}
-%{?!_with_vanilla:%patch106 -p1}
-%{?!_with_vanilla:%patch107 -p1}
-%{?!_with_vanilla:%patch108 -p1}
-%{?!_with_vanilla:%patch109 -p1}
-%{?!_with_vanilla:%patch110 -p1}
-%{?!_with_vanilla:%patch111 -p1}
-%{?!_with_vanilla:%patch112 -p1}
-%{?!_with_vanilla:%patch113 -p1}
-#%{?!_with_vanilla:%patch114 -p1}
-#%{?!_with_vanilla:%patch115 -p1}
-#%{?!_with_vanilla:%patch116 -p1}
-%{?!_with_vanilla:%patch117 -p1}
-%{?!_with_vanilla:%patch200 -p1}
+%{?with_qt:%patch3 -p1}
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
 
 %build
 sh ./sys/unix/setup.sh links
 
-%{__make} all \
-       CFLAGS="%{rpmcflags} -I../include -I%{_includedir}/ncurses" \
+%{__make} -j1 all \
+       CFLAGS="%{rpmcflags} -I../include -I/usr/include/ncurses -DWIZARD='\"%{_wizard}\"'" \
        LFLAGS="%{rpmldflags}" \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
@@ -179,17 +149,18 @@ sh ./sys/unix/setup.sh links
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games/RPG,%{_mandir}/man6}
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir}/man6}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 install util/recover $RPM_BUILD_ROOT%{_nhdir}
 
-install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6/
+install doc/nethack.6 doc/recover.6 $RPM_BUILD_ROOT%{_mandir}/man6
 
 cp %{SOURCE5} %{SOURCE6} %{SOURCE7} .
 cp %{SOURCE8} vol3-1.2.2.pdf
 
-install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games/RPG
+install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
 
 %clean
@@ -205,20 +176,20 @@ rm -rf $RPM_BUILD_ROOT
 %attr(2755,root,games) %{_nhdir}/nethack
 %attr(2755,root,games) %{_nhdir}/recover
 
-%attr(755,root,root) %dir %{_nhdir}
+%dir %{_nhdir}
 %{_nhdir}/nhdat
-%{_nhdir}/*.xpm
-%{_nhdir}/x11tiles
+%{?with_qt:%{_nhdir}/*.x[bp]m}
+%{?with_qt:%{_nhdir}/x11tiles}
 
 %attr(2775,root,games) %dir %{_dyndir}
 %attr(2775,root,games) %dir %{_dyndir}/save
 %attr(664,root,games) %{_dyndir}/perm
-%attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/record
-%attr(664,root,games) %config(noreplace) %verify(not,md5,size,mtime) %{_dyndir}/logfile
+%attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_dyndir}/record
+%attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) %{_dyndir}/logfile
 
 %{_mandir}/man6/*
 
-%{_applnkdir}/Games/RPG/*
+%{_desktopdir}/*.desktop
 %{_pixmapsdir}/*
 
 %files spoilers
This page took 0.079894 seconds and 4 git commands to generate.