1 | # disable buildroot strip |
---|
2 | %define __spec_install_post %{nil} |
---|
3 | |
---|
4 | Summary: A action game for X Window System like XEVIOUS. |
---|
5 | Name: xbat |
---|
6 | Version: 1.11 |
---|
7 | Release: 3%{?_dist_release} |
---|
8 | Source0: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xev111.tar.gz |
---|
9 | SOURCE10: %{name}.desktop |
---|
10 | #SOURCE11: %{name}.png |
---|
11 | Patch0: xev111.patch |
---|
12 | License: GPLv2 |
---|
13 | Group: Applications/Games |
---|
14 | URL: http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/xevious.html |
---|
15 | |
---|
16 | BuildRequires: imake |
---|
17 | BuildRequires: desktop-file-utils |
---|
18 | BuildRequires: libX11-devel libXext-devel |
---|
19 | |
---|
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 |
---|
29 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
30 | |
---|
31 | %setup -n Xev111 -q |
---|
32 | |
---|
33 | %build |
---|
34 | patch < ${RPM_SOURCE_DIR}/xev111.patch |
---|
35 | xmkmf -a |
---|
36 | %__make xbat |
---|
37 | |
---|
38 | %install |
---|
39 | %__make DESTDIR=${RPM_BUILD_ROOT} install |
---|
40 | %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications |
---|
41 | |
---|
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 | |
---|
48 | %clean |
---|
49 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
50 | |
---|
51 | %files |
---|
52 | %defattr(-,root,root) |
---|
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/* |
---|
58 | |
---|
59 | %changelog |
---|
60 | * Tue Aug 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.11-3 |
---|
61 | - added BuildRequires: libXext-devel |
---|
62 | |
---|
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 | |
---|
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 |
---|