[4685] | 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 | |
---|
| 14 | BuildRequires: libtool |
---|
| 15 | BuildRequires: libX11-devel libXpm-devel libXt-devel libXmu-devel |
---|
| 16 | BuildRequires: desktop-file-utils |
---|
| 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | A clone of the old space arcade game 'Galaga'. (It's Galaga, you know |
---|
| 22 | how to play Galaga! Ship follows the mouse, button fires. Autofire by |
---|
| 23 | holding it down, so no one accuses us of breaking their mouse!) |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -q |
---|
| 29 | zcat %{SOURCE1} | patch |
---|
| 30 | |
---|
| 31 | ## checking host system type... Invalid configuration |
---|
| 32 | ## 'X86_64-unknown-linux-gnu': machiene 'X86_64-unknown' not recognized |
---|
| 33 | %__ln_s -f %{_datadir}/libtool/config/config.guess || exit 1 |
---|
| 34 | %__ln_s -f %{_datadir}/libtool/config/config.sub || exit 1 |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | CFLAGS=${RPM_OPT_FLAGS} \ |
---|
| 38 | %configure \ |
---|
| 39 | --prefix=%{_datadir}/games/xgalaga \ |
---|
| 40 | --exec-prefix=%{_bindir} \ |
---|
| 41 | --with-sound \ |
---|
| 42 | ; |
---|
| 43 | %__make %{?_smp_mflags}; |
---|
| 44 | #SOUNDDEFS=-DSOUNDSERVER=\"%{_libdir}/games/xgalaga/$(SOUNDSRV)\" \ |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | %__mkdir_p ${RPM_BUILD_ROOT}%{_mandir}/man6 |
---|
| 48 | %__make install \ |
---|
| 49 | DESTDIR=${RPM_BUILD_ROOT} \ |
---|
| 50 | ; |
---|
| 51 | |
---|
| 52 | ## install desktop menus |
---|
| 53 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications |
---|
| 54 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ |
---|
| 55 | desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga.desktop || exit 1 |
---|
| 56 | desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga-hyperspace.desktop || exit 1 |
---|
| 57 | %__cp -a xgalaga-icon.xpm %{buildroot}%{_datadir}/pixmaps/ || exit 1 |
---|
| 58 | |
---|
| 59 | %clean |
---|
| 60 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 61 | |
---|
| 62 | %files |
---|
| 63 | %defattr(-,root,root) |
---|
| 64 | %doc CHANGES INSTALL README README.SOUND |
---|
| 65 | %{_bindir}/xgalaga |
---|
| 66 | %{_bindir}/xgalaga-hyperspace |
---|
| 67 | %dir %{_datadir}/games/xgalaga |
---|
| 68 | %{_datadir}/games/xgalaga/CREDITS |
---|
| 69 | %{_datadir}/games/xgalaga/levels |
---|
| 70 | %{_datadir}/games/xgalaga/sounds |
---|
| 71 | #%{_datadir}/games/xgalaga/xgal.sndsrv.linux |
---|
| 72 | %{_datadir}/games/xgalaga/xgal.sndsrv.oss |
---|
| 73 | %{_mandir}/man*/* |
---|
| 74 | %{_datadir}/applications/xgalaga.desktop |
---|
| 75 | %{_datadir}/applications/xgalaga-hyperspace.desktop |
---|
| 76 | %{_datadir}/pixmaps/xgalaga-icon.xpm |
---|
| 77 | |
---|
| 78 | %changelog |
---|
| 79 | * Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.1.1-1 |
---|
| 80 | - initial build |
---|