]> git.pld-linux.org Git - packages/nethack.git/commitdiff
- added option (--with patchhack) to incorporate patchhack patches nethack-3_3_1-4
authordepesz <depesz@depesz.pl>
Sat, 9 Mar 2002 10:56:52 +0000 (10:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nethack.spec -> 1.22

nethack.spec

index e5a0bbcf88efc3886c4c702f5c067ffd9fd40596..cbe38bdc7d40e8b8bb27959b2c6ad0bd318714da 100644 (file)
@@ -1,12 +1,14 @@
-%define                file_version    %(echo %{version} | tr -d .)
+%define                nethack_version 3.3.1
+%define                patchhack_version       5.1
+%define                file_version    %(echo %{nethack_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
 Name:          nethack
-Version:       3.3.1
-Release:       3
+Version:       %{nethack_version}%{?_with_patchhack:ph%{patchhack_version}}
+Release:       4
 License:       Nethack GPL
 Group:         Applications/Games
 Source0:       ftp://ftp.nethack.org/pub/nethack/nh331/src/%{name}-%{file_version}.tgz
@@ -15,7 +17,9 @@ Source2:      http://www.spod-central.org/~psmith/nh/gazetteer.tar.gz
 Source3:       %{name}.desktop
 Source4:       %{name}.png
 Source5:       Guidebook-3.2pl.ps.gz
-Patch0:                %{name}-pld.patch
+Patch0:                patchhack-nh%{file_version}-5.1.diff.gz
+Patch1:                %{name}-ph-pld.patch
+Patch2:                %{name}-pld.patch
 Icon:          roguelike.gif
 URL:           http://www.nethack.org/
 BuildRequires: bison
@@ -80,8 +84,13 @@ Spoilery - zbi
 po przeczytaniu gra staje siê jeszcze bardziej uzale¿niaj±ca!
 
 %prep
-%setup -q -a 1 -a 2
-%patch0 -p1
+%setup -q -a 1 -a 2 -n %{name}-%{nethack_version}
+%if %{?_with_patchhack:1}%{?!_with_patchhack:0}
+%patch0 -p0
+%patch1 -p1
+%else
+%patch2 -p1
+%endif
 
 %build
 ./sys/unix/setup.sh links
@@ -103,7 +112,7 @@ rm $RPM_BUILD_ROOT%{_mandir}/man6/{dlb.6,dgn_comp.6,lev_comp.6}
 install util/recover   $RPM_BUILD_ROOT%{_nhdir}
 
 cp %{SOURCE5} .
-gzip -9nf doc/Guidebook README doc/window.doc \
+gzip -9nf doc/Guidebook README README.patch_hack doc/window.doc \
        $RPM_BUILD_ROOT%{_nhdir}/license \
        nhspoilers/README nhspoilers/*.txt nhspoilers/gazetteer/README
 
@@ -115,7 +124,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.gz doc/{Guidebook,window.doc}.gz
+%doc README.gz README.patch_hack.gz doc/{Guidebook,window.doc}.gz
 %doc $RPM_BUILD_ROOT%{_nhdir}/license.gz
 %lang(pl) %doc Guidebook-3.2pl.ps.gz
 
This page took 0.055491 seconds and 4 git commands to generate.