xgalaga-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Summary: A Galaga-clone for X11
  2. Name: xgalaga
  3. Version: 2.1.1.0
  4. Release: 1%{?_dist_release}
  5. Source: xgalaga-%{version}.tar.gz
  6. Source1: http://ftp.de.debian.org/debian/pool/main/x/xgalaga/xgalaga_2.1.1.0-3.diff.gz
  7. # SOURCE10: xgalaga.desktop
  8. # SOURCE11: xgalaga-hyperspace.desktop
  9. # SOURCE12: xgalaga-icon.xpm
  10. Url: http://sourceforge.net/projects/xgalaga/
  11. License: GPLv2+
  12. Group: Applications/Games
  13. BuildRequires: libtool
  14. BuildRequires: libX11-devel libXpm-devel libXt-devel libXmu-devel
  15. BuildRequires: desktop-file-utils
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  17. %description
  18. A clone of the old space arcade game 'Galaga'. (It's Galaga, you know
  19. how to play Galaga! Ship follows the mouse, button fires. Autofire by
  20. holding it down, so no one accuses us of breaking their mouse!)
  21. %prep
  22. %setup -q
  23. zcat %{SOURCE1} | patch
  24. ## checking host system type... Invalid configuration
  25. ## 'X86_64-unknown-linux-gnu': machiene 'X86_64-unknown' not recognized
  26. %__ln_s -f %{_datadir}/libtool/config/config.guess || exit 1
  27. %__ln_s -f %{_datadir}/libtool/config/config.sub || exit 1
  28. %build
  29. CFLAGS=${RPM_OPT_FLAGS} \
  30. %configure \
  31. --prefix=%{_datadir}/games/xgalaga \
  32. --exec-prefix=%{_bindir} \
  33. --with-sound \
  34. ;
  35. %__make %{?_smp_mflags};
  36. #SOUNDDEFS=-DSOUNDSERVER=\"%{_libdir}/games/xgalaga/$(SOUNDSRV)\" \
  37. %install
  38. %__mkdir_p ${RPM_BUILD_ROOT}%{_mandir}/man6
  39. %__make install \
  40. DESTDIR=${RPM_BUILD_ROOT} \
  41. ;
  42. ## install desktop menus
  43. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
  44. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
  45. desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga.desktop || exit 1
  46. desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga-hyperspace.desktop || exit 1
  47. %__cp -a xgalaga-icon.xpm %{buildroot}%{_datadir}/pixmaps/ || exit 1
  48. %clean
  49. %__rm -rf $RPM_BUILD_ROOT
  50. %files
  51. %defattr(-,root,root)
  52. %doc CHANGES INSTALL README README.SOUND
  53. %{_bindir}/xgalaga
  54. %{_bindir}/xgalaga-hyperspace
  55. %dir %{_datadir}/games/xgalaga
  56. %{_datadir}/games/xgalaga/CREDITS
  57. %{_datadir}/games/xgalaga/levels
  58. %{_datadir}/games/xgalaga/sounds
  59. #%{_datadir}/games/xgalaga/xgal.sndsrv.linux
  60. %{_datadir}/games/xgalaga/xgal.sndsrv.oss
  61. %{_mandir}/man*/*
  62. %{_datadir}/applications/xgalaga.desktop
  63. %{_datadir}/applications/xgalaga-hyperspace.desktop
  64. %{_datadir}/pixmaps/xgalaga-icon.xpm
  65. %changelog
  66. * Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.1.1-1
  67. - initial build