1 | %define name syasokoban |
---|
2 | %define version 2.0.1 |
---|
3 | %define release 1%{?_dist_release} |
---|
4 | |
---|
5 | Summary: Sokoban puzzle game |
---|
6 | Summary(ja): 倉庫番パズルゲーム |
---|
7 | Name: %{name} |
---|
8 | Version: %{version} |
---|
9 | Release: %{release} |
---|
10 | #Source0: http://scorpioncity.com/sokoban/%{name}Src.zip # ver.2.0 |
---|
11 | Source0: %{name}-%{version}.tar.gz |
---|
12 | License: BSD License |
---|
13 | Group: Applications/Games |
---|
14 | URL: http://scorpioncity.com/sokoban.html |
---|
15 | |
---|
16 | Requires: SDL |
---|
17 | BuildRequires: SDL-devel |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | |
---|
20 | |
---|
21 | %description |
---|
22 | An implementation of the popular Sokoban puzzle game. |
---|
23 | The goal is to push the crates onto the designated squares |
---|
24 | without getting stuck. |
---|
25 | |
---|
26 | #%desctiption -l ja |
---|
27 | |
---|
28 | |
---|
29 | %prep |
---|
30 | rm -rf ${RPM_BUILD_ROOT} |
---|
31 | |
---|
32 | %setup -q |
---|
33 | |
---|
34 | %build |
---|
35 | make |
---|
36 | |
---|
37 | %install |
---|
38 | #make DESTDIR=${RPM_BUILD_ROOT} install |
---|
39 | mkdir -p ${RPM_BUILD_ROOT}/usr/share/SYASokoban |
---|
40 | cp README.txt syasokoban ${RPM_BUILD_ROOT}/usr/share/SYASokoban/ |
---|
41 | cp -r data ${RPM_BUILD_ROOT}/usr/share/SYASokoban/ |
---|
42 | mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications |
---|
43 | cat > ${RPM_BUILD_ROOT}/usr/share/applications/%{name}.desktop <<EOF |
---|
44 | [Desktop Entry] |
---|
45 | Name=Still Yet Another Sokoban |
---|
46 | Comment=An implementation of the popular Sokoban puzzle game. |
---|
47 | TryExec=syasokoban |
---|
48 | Exec=/usr/bin/syasokoban |
---|
49 | Icon= |
---|
50 | Terminal=0 |
---|
51 | Type=Application |
---|
52 | Categories=GNOME;Application;Game |
---|
53 | EOF |
---|
54 | |
---|
55 | # syasokobanの実行スクリプトを作成:ソースを書き換える??? |
---|
56 | mkdir -p ${RPM_BUILD_ROOT}/usr/bin |
---|
57 | cat > ${RPM_BUILD_ROOT}/usr/bin/syasokoban <<EOF |
---|
58 | #! /bin/bash |
---|
59 | cd /usr/share/SYASokoban/; ./syasokoban |
---|
60 | EOF |
---|
61 | |
---|
62 | # syasokobanが実行したときのログファイルが同じディレクトリにできるので、 |
---|
63 | # それが書き込めるようにした対処策:ソースを書き換える??? |
---|
64 | cat > ${RPM_BUILD_ROOT}/usr/share/SYASokoban/syasokobanlog.txt <<EOF |
---|
65 | Sokoban:OnMouseEnter (0 0) |
---|
66 | Desktop:OnMouseEnter (0 0) |
---|
67 | CSokoban::Destroy() |
---|
68 | EOF |
---|
69 | |
---|
70 | |
---|
71 | %clean |
---|
72 | rm -rf ${RPM_BUILD_ROOT} |
---|
73 | |
---|
74 | |
---|
75 | %files |
---|
76 | %defattr(-,root,root) |
---|
77 | /usr/share/SYASokoban |
---|
78 | %attr(755,root,root) /usr/bin/syasokoban |
---|
79 | %attr(770,root,root) /usr/share/SYASokoban/syasokobanlog.txt |
---|
80 | /usr/share/applications/%{name}.desktop |
---|
81 | |
---|
82 | %changelog |
---|
83 | * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.1-1vl5 |
---|
84 | - new upstream release |
---|
85 | - applied new versioning policy, spec in utf-8 |
---|
86 | |
---|
87 | * Sun Jun 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 2.0-0vl2 |
---|
88 | - rebuild for VineSeed |
---|
89 | |
---|
90 | * Tue Mar 9 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 2.0-0vl1 |
---|
91 | - initial build for Vine Linux |
---|
92 | |
---|
93 | # * Sun Jul 2 2006 2.0-0vl1 |
---|
94 | # - Update |
---|
95 | |
---|
96 | # * Mon Jul 4 2005 1.02-0vl1 |
---|
97 | # - initial build for Vine Linux |
---|
98 | |
---|
99 | # end of file |
---|