- updated to 2.0.3, updated URLs
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 10 May 2003 20:15:41 +0000 (20:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- patched to place score file in proper place

Changed files:
    geki2-KXL-scorepath.patch -> 1.1
    geki2-KXL.spec -> 1.4

geki2-KXL-scorepath.patch [new file with mode: 0644]
geki2-KXL.spec

diff --git a/geki2-KXL-scorepath.patch b/geki2-KXL-scorepath.patch
new file mode 100644 (file)
index 0000000..b917a46
--- /dev/null
@@ -0,0 +1,54 @@
+diff -Nur geki2-KXL-2.0.3.orig/configure.in geki2-KXL-2.0.3/configure.in
+--- geki2-KXL-2.0.3.orig/configure.in  2001-10-20 05:06:28.000000000 +0200
++++ geki2-KXL-2.0.3/configure.in       2003-05-10 21:04:16.000000000 +0200
+@@ -29,10 +29,17 @@
+         BMP_PATH=$prefix/share/geki2/bmp
+         WAV_PATH=$prefix/share/geki2/wav
+ fi
++if test "x$localstatedir" = "xNONE"; then
++      SCORE_PATH=/var/games
++else
++      SCORE_PATH=$localstatedir/games
++fi
+ AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
++AC_DEFINE_UNQUOTED(SCORE_PATH,"$SCORE_PATH")
+ AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
+ AC_DEFINE_UNQUOTED(WAV_PATH,"$WAV_PATH")
+ AC_DEFINE_UNQUOTED(TITLE,"$PACKAGE $VERSION")
++AC_SUBST(SCORE_PATH)
+ AC_SUBST(DATA_PATH)
+ AC_SUBST(BMP_PATH)
+ AC_SUBST(WAV_PATH)
+diff -Nur geki2-KXL-2.0.3.orig/data/Makefile.am geki2-KXL-2.0.3/data/Makefile.am
+--- geki2-KXL-2.0.3.orig/data/Makefile.am      2001-08-12 08:33:57.000000000 +0200
++++ geki2-KXL-2.0.3/data/Makefile.am   2003-05-10 21:04:58.000000000 +0200
+@@ -5,5 +5,6 @@
+           map1.dat map2.dat map3.dat map4.dat map5.dat map6.dat .score
+-install:
+-      $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
++install-data-local:
++      $(INSTALL) -d -m 755 $(DESTDIR)$(SCORE_PATH)
++      $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(SCORE_PATH)/geki2.score
+diff -Nur geki2-KXL-2.0.3.orig/src/ranking.c geki2-KXL-2.0.3/src/ranking.c
+--- geki2-KXL-2.0.3.orig/src/ranking.c 2001-04-11 15:23:13.000000000 +0200
++++ geki2-KXL-2.0.3/src/ranking.c      2003-05-10 21:04:45.000000000 +0200
+@@ -37,7 +37,7 @@
+   FILE *fp;\r
+   Uint16 i;\r
\r
+-  if ((fp = fopen(DATA_PATH "/.score", "r"))) {\r
++  if ((fp = fopen(SCORE_PATH "/geki2.score", "r"))) {\r
+     fscanf(fp, "%d", &(Root->HiScore));\r
+     for (i = 0; i < 5; i ++)\r
+       fscanf(fp, "%d %d %d %s",\r
+@@ -69,7 +69,7 @@
+   FILE *fp;\r
+   Uint16 i;\r
\r
+-  if ((fp = fopen(DATA_PATH "/.score", "w"))) {\r
++  if ((fp = fopen(SCORE_PATH "/geki2.score", "w"))) {\r
+     fprintf(fp, "%d\n", Root->HiScore);\r
+     for (i = 0; i < 5; i ++)\r
+       fprintf(fp, "%d %d %d %s\n",\r
index 867710b..7acce36 100644 (file)
@@ -1,44 +1,53 @@
 Summary:       Geki2, a video-oriented game
 Summary(pl):   Geki2 - gra wideo
 Name:          geki2-KXL
-Version:       2.0.2
-Release:       2
+Version:       2.0.3
+Release:       1
 License:       GPL
 Group:         X11/Applications/Games
-Source0:       http://www2.mwnet.or.jp/~fc3srx7/download/%{name}-%{version}.tar.gz
-URL:           http://www2.mwnet.or.jp/~fc3srx7/
+Source0:       http://kxl.hn.org/download/%{name}-%{version}.tar.gz
+Patch0:                %{name}-scorepath.patch
+URL:           http://kxl.hn.org/games.php
 BuildRequires: KXL-devel >= 1.1.1
+BuildRequires: autoconf
+BuildRequires: automake
+Requires:      KXL >= 1.1.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-
 %description
 2D length scroll shooting game.
 
 %description -l pl
-Strzelanka 2D, klon raptora.
+Pionowo przewijana strzelanka 2D, klon raptora.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
-./configure --prefix=%{_prefix}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog README
-%attr(755,root,root) %{_bindir}/geki2
+%attr(2755,root,games) %{_bindir}/geki2
 %dir %{_datadir}/geki2
 %{_datadir}/geki2/bmp
 %{_datadir}/geki2/wav
 %dir %{_datadir}/geki2/data
 %{_datadir}/geki2/data/*.dat
-#%attr(664,root,games) %config(noreplace) %verify(not size mtime md5) /var/games/geki2.score
-#%%{_prefix}/share/geki2/data/.score
+%attr(664,root,games) %config(noreplace) %verify(not size mtime md5) /var/games/geki2.score
This page took 0.07472 seconds and 4 git commands to generate.