source: projects/specs/trunk/x/xgalaga/xgalaga-vl.spec @ 4685

Revision 4685, 2.5 KB checked in by munepi, 13 years ago (diff)

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

Line 
1Summary:        A Galaga-clone for X11
2Name:           xgalaga
3Version:        2.1.1.0
4Release:        1%{?_dist_release}
5Source:         xgalaga-%{version}.tar.gz
6Source1:       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
10Url:            http://sourceforge.net/projects/xgalaga/
11License:        GPLv2+
12Group:          Applications/Games
13
14BuildRequires:  libtool
15BuildRequires:  libX11-devel libXpm-devel libXt-devel libXmu-devel
16BuildRequires:  desktop-file-utils
17
18BuildRoot:      %{_tmppath}/%{name}-%{version}-build
19
20%description
21A clone of the old space arcade game 'Galaga'.  (It's Galaga, you know
22how to play Galaga!  Ship follows the mouse, button fires.  Autofire by
23holding it down, so no one accuses us of breaking their mouse!)
24
25
26
27%prep
28%setup -q
29zcat %{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
37CFLAGS=${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/
55desktop-file-install --dir %{buildroot}%{_datadir}/applications xgalaga.desktop || exit 1
56desktop-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
Note: See TracBrowser for help on using the repository browser.