Browse Source

updated xbat-vl.spec; updated xsoldier-vl.spec; added xgalaga/xgalaga-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4685 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 12 years ago
parent
commit
69553a7ba8
3 changed files with 146 additions and 60 deletions
  1. 35 30
      x/xbat/xbat-vl.spec
  2. 80 0
      x/xgalaga/xgalaga-vl.spec
  3. 31 30
      x/xsoldier/xsoldier-vl.spec

+ 35 - 30
x/xbat/xbat-vl.spec

@@ -1,19 +1,22 @@
-%define name xbat
-%define version 1.11
-%define release 1%{?_dist_release}
-
-Summary: Xbat is a action game for X Window System like XEVIOUS.
-Name: %{name}
-Version: %{version}
-Release: %{release}
+# disable buildroot strip
+%define __spec_install_post %{nil}
+
+Summary: A action game for X Window System like XEVIOUS.
+Name: xbat
+Version: 1.11
+Release: 2%{?_dist_release}
 Source0: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xev111.tar.gz
+SOURCE10: %{name}.desktop
+#SOURCE11: %{name}.png
 Patch0:  xev111.patch
-License: GNU GENERAL PUBLIC LICENSE Version 2
+License: GPLv2
 Group: Applications/Games
 URL: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xevious.html
 
-#Requires: 
-#BuildRequires: 
+BuildRequires:  imake
+BuildRequires:  desktop-file-utils
+BuildRequires:  libX11-devel
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 %description
@@ -23,40 +26,42 @@ XEVIOUS is a video game that namco released in Dec.1983
 
 
 %prep
-rm -rf ${RPM_BUILD_ROOT}
+%__rm -rf ${RPM_BUILD_ROOT}
 
 %setup -n Xev111 -q
 
 %build
 patch < ${RPM_SOURCE_DIR}/xev111.patch
 xmkmf -a
-make xbat
+%__make xbat
 
 %install
-make DESTDIR=${RPM_BUILD_ROOT} install
-mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications
-cat >  ${RPM_BUILD_ROOT}/usr/share/applications/%{name}.desktop <<EOF
-[Desktop Entry]
-Name=XBat
-Comment=Xbat is a action game like XEVIOUS.
-TryExec=xbat
-Exec=/usr/bin/xbat
-Icon=
-Terminal=0
-Type=Application
-Categories=GNOME;Application;Game
-EOF
+%__make DESTDIR=${RPM_BUILD_ROOT} install
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
+
+desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE10}
+#%__cp -a %{SOURCE11} %{buildroot}%{_datadir}/pixmaps/
+
+## changed executable bit 
+find %{buildroot}%{_datadir}/games/Xbat -type f -exec chmod -x {} \;
 
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+%__rm -rf ${RPM_BUILD_ROOT}
 
 %files
 %defattr(-,root,root)
-/usr/bin/xbat
-/usr/share/games/Xbat
-/usr/share/applications/%{name}.desktop
+%{_bindir}/xbat
+%{_datadir}/games/Xbat
+%{_datadir}/applications/%{name}.desktop
+%dir %{_localstatedir}/games/Xbat
+%attr(666,root,root) %{_localstatedir}/games/Xbat/Score/*
 
 %changelog
+* Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.11-2
+- used some rpm macros
+- added BuildRequires:  desktop-file-utils
+- changed SCORES_DIR to /var/games/Xbat/Score
+
 * Tue Oct 14 2008 Shu KONNO <owa@bg.wakwak.com> 1.11-1vl5
 - applied new versioning policy, spec in utf-8
 

+ 80 - 0
x/xgalaga/xgalaga-vl.spec

@@ -0,0 +1,80 @@
+Summary:        A Galaga-clone for X11
+Name:           xgalaga
+Version:        2.1.1.0
+Release:        1%{?_dist_release}
+Source:         xgalaga-%{version}.tar.gz
+Source1:       http://ftp.de.debian.org/debian/pool/main/x/xgalaga/xgalaga_2.1.1.0-3.diff.gz
+# SOURCE10:       xgalaga.desktop
+# SOURCE11:       xgalaga-hyperspace.desktop
+# SOURCE12:       xgalaga-icon.xpm
+Url:            http://sourceforge.net/projects/xgalaga/
+License:        GPLv2+
+Group:          Applications/Games
+
+BuildRequires:  libtool
+BuildRequires:  libX11-devel libXpm-devel libXt-devel libXmu-devel
+BuildRequires:  desktop-file-utils
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+A clone of the old space arcade game 'Galaga'.	(It's Galaga, you know
+how to play Galaga!  Ship follows the mouse, button fires.  Autofire by
+holding it down, so no one accuses us of breaking their mouse!)
+
+
+
+%prep
+%setup -q
+zcat %{SOURCE1} | patch
+
+## checking host system type... Invalid configuration 
+## 'X86_64-unknown-linux-gnu': machiene 'X86_64-unknown' not recognized
+%__ln_s -f %{_datadir}/libtool/config/config.guess || exit 1
+%__ln_s -f %{_datadir}/libtool/config/config.sub || exit 1
+
+%build
+CFLAGS=${RPM_OPT_FLAGS} \
+    %configure \
+        --prefix=%{_datadir}/games/xgalaga \
+        --exec-prefix=%{_bindir} \
+	--with-sound \
+	;
+%__make %{?_smp_mflags};
+#SOUNDDEFS=-DSOUNDSERVER=\"%{_libdir}/games/xgalaga/$(SOUNDSRV)\" \
+
+%install
+%__mkdir_p ${RPM_BUILD_ROOT}%{_mandir}/man6
+%__make install \
+    DESTDIR=${RPM_BUILD_ROOT} \
+    ;
+
+## install desktop menus
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
+desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga.desktop || exit 1
+desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga-hyperspace.desktop || exit 1
+%__cp -a xgalaga-icon.xpm %{buildroot}%{_datadir}/pixmaps/ || exit 1
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc CHANGES INSTALL README README.SOUND
+%{_bindir}/xgalaga
+%{_bindir}/xgalaga-hyperspace
+%dir %{_datadir}/games/xgalaga
+%{_datadir}/games/xgalaga/CREDITS
+%{_datadir}/games/xgalaga/levels
+%{_datadir}/games/xgalaga/sounds
+#%{_datadir}/games/xgalaga/xgal.sndsrv.linux
+%{_datadir}/games/xgalaga/xgal.sndsrv.oss
+%{_mandir}/man*/*
+%{_datadir}/applications/xgalaga.desktop
+%{_datadir}/applications/xgalaga-hyperspace.desktop
+%{_datadir}/pixmaps/xgalaga-icon.xpm
+
+%changelog
+* Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.1.1-1
+- initial build

+ 31 - 30
x/xsoldier/xsoldier-vl.spec

@@ -1,66 +1,67 @@
 %define name xsoldier
-%define version 1.4
+%define version 1.8
 %define release 1%{?_dist_release}
 
-Summary: xsoldier is a X11 shoot-em up game for Linux.
+Summary: X11 shoot-em up game
 Summary(ja): X11上で動くシューティングゲーム
 Name: %{name}
 Version: %{version}
 Release: %{release}
 Source0: %{name}-%{version}.tar.gz
-License: GNU General Public License
+SOURCE10: %{name}.desktop
+SOURCE11: %{name}.png
+License: GPLv2+
 Group: Applications/Games
 URL: http://www.interq.or.jp/libra/oohara/xsoldier/
 
-Requires: SDL, SDL_image
-BuildRequires:  SDL_image-devel
+Requires:       SDL SDL_image libX11 libXpm
+BuildRequires:  SDL_image-devel libX11-devel libXpm-devel
+BuildRequires:  desktop-file-utils
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 
 %description
-xsoldier is a X11 shoot-em up game for Linux. It was created by Yuusuke HASHIMOTO <hachi@surfline.ne.jp>. The webpage of the original author is [http://www.surfline.ne.jp/hachi/xsoldier.html]. I took over the development of xsoldier.
-
-#%desctiption -l ja
+xsoldier is a X11 shoot-em up game for Linux. 
 
 
 %prep
-rm -rf ${RPM_BUILD_ROOT}
+%__rm -rf ${RPM_BUILD_ROOT}
 
 %setup -q
 
 %build
-./configure --prefix=/usr --with-sdl
-make
+%configure --with-sdl
+%__make
 
 %install
-make DESTDIR=${RPM_BUILD_ROOT} mandir=%{_mandir} install
-mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications
-cat >  ${RPM_BUILD_ROOT}/usr/share/applications/%{name}.desktop <<EOF
-[Desktop Entry]
-Name=xsoldier
-Comment=xsoldier is a X11 shoot-em up game for Linux.
-TryExec=xsoldier
-Exec=/usr/bin/xsoldier
-Icon=
-Terminal=0
-Type=Application
-Categories=GNOME;Application;Game
-EOF
+%__make DESTDIR=${RPM_BUILD_ROOT} mandir=%{_mandir} install
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
+desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE10}
+%__cp -a %{SOURCE11} %{buildroot}%{_datadir}/pixmaps/
 
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+%__rm -rf ${RPM_BUILD_ROOT}
 
 
 %files
 %defattr(-,root,root)
-/usr/bin/xsoldier
-/usr/share/games/xsoldier
-/usr/var/games/xsoldier/xsoldier.scores
-/usr/share/applications/%{name}.desktop
-%{_mandir}/man6/xsoldier.6.gz
+%doc README LICENSE INSTALL GPL ChangeLog COPYING
+%{_bindir}/xsoldier
+%{_datadir}/games/xsoldier
+%attr(666,root,root) %{_localstatedir}/games/xsoldier/xsoldier.scores
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}.png
+%{_mandir}/man*/xsoldier.*.gz
 
 
 %changelog
+* Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.8-1
+- new upstream release
+- stored xsoldier.scores to /var/games/xsoldier
+- added xsoldier.desktop
+- added BuildRequires: libX11-devel libXpm-devel desktop-file-utils
+
 * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.4-1vl5
 - applied new versioning policy, spec in utf-8
 - updated man-path to %%{_mandir}