--- /dev/null
+--- etswitch-0.1.8/etswitch.desktop.in~ 2006-03-09 20:43:12.000000000 +0100
++++ etswitch-0.1.8/etswitch.desktop.in 2006-03-09 20:45:19.568592250 +0100
+@@ -4,15 +4,9 @@
+ Name=ETSwitch
+ GenericName=Game switcher
+ Comment=ETSwitch version @VERSION@
+-
+-Name[sv_SE]=ETSwitch
+-GenericName[sv_SE]=Game switcher
+-Comment[sv_SE]=ETSwitch version @VERSION@
+-
+-Name[fi_FI]=ETSwitch
+-GenericName[fi_FI]=Peli vaihtaja
+-Comment[fi_FI]=ETSwitch versio @VERSION@
+-
++GenericName[fi]=Peli vaihtaja
++Comment[fi]=ETSwitch versio @VERSION@
++GenericName[pl]=Minimalizacja gier
+ Exec=etswitch --no-delay
+ Icon=etswitch.png
+ Terminal=false
--- /dev/null
+--- etswitch-0.1.8/src/conf.c~ 2005-11-03 17:56:30.000000000 +0100
++++ etswitch-0.1.8/src/conf.c 2006-03-09 20:48:40.865172500 +0100
+@@ -95,7 +95,9 @@
+
+ file = calloc(max,1);
+ bin = calloc(78,1);
+- home = (char *)getenv("HOME");
++ home = getenv("HOME_ETC");
++ if ( home == NULL)
++ home = (char *)getenv("HOME");
+ snprintf((char *)file, (size_t)max, "%s/.etswitch/etswitch.rc", (char *)home);
+ if (!(fp = open((char *)file,O_RDONLY))){
+ fprintf(stderr, "fopen read failed: %s, at line: %d\n", strerror(errno),__LINE__);
+@@ -121,6 +123,10 @@
+ int r;
+ int special;
+
++ char * home = getenv("HOME_ETC");
++ if (home == NULL)
++ home = getenv("HOME");
++
+ dir = calloc(PATH_MAX+1,1);
+ /* home = calloc(PATH_MAX+1,1); */
+ file = calloc(PATH_MAX+NAME_MAX+1,1);
+@@ -130,7 +136,7 @@
+ exit(EXIT_FAILURE);
+ }
+ /* change to get pw*/
+- snprintf((char *)dir, PATH_MAX, "%s/.etswitch", getenv("HOME"));
++ snprintf((char *)dir, PATH_MAX, "%s/.etswitch", home);
+ snprintf((char *)file, PATH_MAX+NAME_MAX, "%s/etswitch.rc", dir);
+ if (stat((char *)dir, &dir_stat)!=-1){
+ if (!S_ISDIR (dir_stat.st_mode)){ /* the name is a directory, and it exists */
--- /dev/null
+Summary: A *nix 'minimizer' for a few games
+Summary(pl): Aplikacja do minimalizowania okien gier
+Name: etswitch
+Version: 0.1.8
+Release: 1
+License: GPL v2
+Group: X11/Applications/Games
+Source0: http://hem.bredband.net/b400150/etswitch/%{name}-%{version}.tar.gz
+# Source0-md5: 37bb53ed18e729e688dcbe9694d1a1ce
+Patch0: %{name}-desktop.patch
+Patch1: %{name}-home_etc.patch
+URL: http://hem.bredband.net/b400150/
+BuildRequires: X11-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Etswitch is a program allowing *nix users to minimize Enemy Territory
+(and a plethora of other games) easily much in the same way as ETmin or
+q3min for m$ users.
+
+Aside from Wolf ET, et switch also supports 21 other games available to
+linux users.
+
+%description -l pl
+Etswitch to program pozwalaj±cy u¿ytkownikom systemów *nix na
+minimalizacjê Enemy Territory (oraz wielu innych gier) w ten sam wygodny
+sposób jak aplikacje ETmin lub q3min dla u¿ytkowników systemów Windows.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/etswitch
+%{_mandir}/man1/etswitch.1*
+%{_pixmapsdir}/*
+%{_desktopdir}/*