- new
authorAdam Gołębiowski <adamg@pld-linux.org>
Thu, 9 Mar 2006 20:00:08 +0000 (20:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    etswitch-desktop.patch -> 1.1
    etswitch-home_etc.patch -> 1.1
    etswitch.spec -> 1.1

etswitch-desktop.patch [new file with mode: 0644]
etswitch-home_etc.patch [new file with mode: 0644]
etswitch.spec [new file with mode: 0644]

diff --git a/etswitch-desktop.patch b/etswitch-desktop.patch
new file mode 100644 (file)
index 0000000..78330d5
--- /dev/null
@@ -0,0 +1,21 @@
+--- 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
diff --git a/etswitch-home_etc.patch b/etswitch-home_etc.patch
new file mode 100644 (file)
index 0000000..22021e7
--- /dev/null
@@ -0,0 +1,33 @@
+--- 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  */
diff --git a/etswitch.spec b/etswitch.spec
new file mode 100644 (file)
index 0000000..8a7d979
--- /dev/null
@@ -0,0 +1,61 @@
+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}/*
This page took 0.306936 seconds and 4 git commands to generate.