[4685] | 1 | # disable buildroot strip |
---|
| 2 | %define __spec_install_post %{nil} |
---|
[521] | 3 | |
---|
[4685] | 4 | Summary: A action game for X Window System like XEVIOUS. |
---|
| 5 | Name: xbat |
---|
| 6 | Version: 1.11 |
---|
[4686] | 7 | Release: 3%{?_dist_release} |
---|
[521] | 8 | Source0: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xev111.tar.gz |
---|
[4685] | 9 | SOURCE10: %{name}.desktop |
---|
| 10 | #SOURCE11: %{name}.png |
---|
[521] | 11 | Patch0: xev111.patch |
---|
[4685] | 12 | License: GPLv2 |
---|
[521] | 13 | Group: Applications/Games |
---|
| 14 | URL: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xevious.html |
---|
| 15 | |
---|
[4685] | 16 | BuildRequires: imake |
---|
| 17 | BuildRequires: desktop-file-utils |
---|
[4686] | 18 | BuildRequires: libX11-devel libXext-devel |
---|
[4685] | 19 | |
---|
[521] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Xbat is a action game for X Window System. |
---|
| 24 | It is like XEVIOUS. |
---|
| 25 | XEVIOUS is a video game that namco released in Dec.1983 |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %prep |
---|
[4685] | 29 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
[521] | 30 | |
---|
| 31 | %setup -n Xev111 -q |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | patch < ${RPM_SOURCE_DIR}/xev111.patch |
---|
| 35 | xmkmf -a |
---|
[4685] | 36 | %__make xbat |
---|
[521] | 37 | |
---|
| 38 | %install |
---|
[4685] | 39 | %__make DESTDIR=${RPM_BUILD_ROOT} install |
---|
| 40 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications |
---|
[521] | 41 | |
---|
[4685] | 42 | desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE10} |
---|
| 43 | #%__cp -a %{SOURCE11} %{buildroot}%{_datadir}/pixmaps/ |
---|
| 44 | |
---|
| 45 | ## changed executable bit |
---|
| 46 | find %{buildroot}%{_datadir}/games/Xbat -type f -exec chmod -x {} \; |
---|
| 47 | |
---|
[521] | 48 | %clean |
---|
[4685] | 49 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
[521] | 50 | |
---|
| 51 | %files |
---|
| 52 | %defattr(-,root,root) |
---|
[4685] | 53 | %{_bindir}/xbat |
---|
| 54 | %{_datadir}/games/Xbat |
---|
| 55 | %{_datadir}/applications/%{name}.desktop |
---|
| 56 | %dir %{_localstatedir}/games/Xbat |
---|
| 57 | %attr(666,root,root) %{_localstatedir}/games/Xbat/Score/* |
---|
[521] | 58 | |
---|
| 59 | %changelog |
---|
[4686] | 60 | * Tue Aug 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.11-3 |
---|
| 61 | - added BuildRequires: libXext-devel |
---|
| 62 | |
---|
[4685] | 63 | * Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.11-2 |
---|
| 64 | - used some rpm macros |
---|
| 65 | - added BuildRequires: desktop-file-utils |
---|
| 66 | - changed SCORES_DIR to /var/games/Xbat/Score |
---|
| 67 | |
---|
[521] | 68 | * Tue Oct 14 2008 Shu KONNO <owa@bg.wakwak.com> 1.11-1vl5 |
---|
| 69 | - applied new versioning policy, spec in utf-8 |
---|
| 70 | |
---|
| 71 | * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.11-0vl2 |
---|
| 72 | - rebuild for VineSeed |
---|
| 73 | |
---|
| 74 | * Tue Mar 9 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.11-0vl1 |
---|
| 75 | - initial build for Vine Linux |
---|
| 76 | |
---|
| 77 | # end of file |
---|