--- /dev/null
+diff -Nru 0verkill-0.16/cfg.h 0verkill-0.16.new/cfg.h
+--- 0verkill-0.16/cfg.h Sat Mar 15 13:01:51 2003
++++ 0verkill-0.16.new/cfg.h Sat Mar 15 13:08:52 2003
+@@ -32,6 +32,7 @@
+ #define LEVEL_SPRITES_SUFFIX ".sp"
+
+ #define CFG_FILE ".0verkill"
++#define CONFIG_DIR_CFG_FILE "0verkill"
+
+ #define AREA_X 1000
+ #define AREA_Y 500
+diff -Nru 0verkill-0.16/client.c 0verkill-0.16.new/client.c
+--- 0verkill-0.16/client.c Sun Dec 16 10:26:38 2001
++++ 0verkill-0.16.new/client.c Sat Mar 15 13:12:35 2003
+@@ -189,8 +189,12 @@
+ FILE *stream;
+ int a;
+ unsigned char txt[256];
+-
++ char *config_dir;
+ #ifndef WIN32
++ config_dir = getenv("CONFIG_DIR");
++ if (config_dir) {
++ sprintf(txt, "%s/%s", config_dir, CONFIG_DIR_CFG_FILE);
++ } else
+ sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE);
+ #else
+ sprintf(txt,"./%s",CFG_FILE);
+@@ -221,8 +225,13 @@
+ {
+ FILE *stream;
+ unsigned char txt[256];
+-
++ char *config_dir;
++
+ #ifndef WIN32
++ config_dir = getenv("CONFIG_DIR");
++ if (config_dir) {
++ sprintf(txt, "%s/%s", config_dir, CONFIG_DIR_CFG_FILE);
++ } else
+ sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE);
+ #else
+ sprintf(txt,"./%s",CFG_FILE);
Summary(pl): 0verkill - gra multiplayer w ASCII
Name: 0verkill
Version: 0.16
-Release: 1
+Release: 2
License: GPL
Group: Applications/Games
Source0: http://artax.karlin.mff.cuni.cz/~brain/%{name}/release/%{name}-%{version}.tgz
Patch0: %{name}-datadir.patch
+Patch1: %{name}-home_etc.patch
+Patch2: %{name}-home_etc-doc.patch
URL: http://artax.karlin.mff.cuni.cz/~brain/%{name}/
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__aclocal}