source: projects/specs/trunk/x/xmoto/xmoto-vl.spec @ 2471

Revision 2471, 7.9 KB checked in by kazutaka, 13 years ago (diff)

新規追加

Line 
1Name:           xmoto
2Version:        0.5.4
3Release:        1%{?_dist_release}
4Summary:        Challenging 2D Motocross Platform Game
5Summary(ja):    2D 画面のアクロバティックなモトクロスゲーム
6
7Group:          Applications/Games
8License:        GPLv2+
9URL:            http://xmoto.sourceforge.net/
10Source0:        http://download.tuxfamily.org/xmoto/xmoto/%{version}/xmoto-%{version}-src.tar.gz
11Source1:        xmoto.desktop
12Source2:        xmoto.png
13Source3:        xmoto-0.5.4-ja.po
14#Patch0:                xmoto-man.patch
15Patch1:         xmoto-0.3.4-Environment-cstlib.patch
16#Patch2:                xmoto-0.3.4-Scene-collisioninclude.patch
17Patch3:         xmoto-0.4.0-Environment-string.patch
18#Patch4:                xmoto-0.4.0-DrawLib-hashmap.patch
19#Patch5:                xmoto-0.4.2-initode.patch
20#Patch6:                xmoto-0.4.2-opengldepth.patch
21Patch7:         xmoto-0.5.0-xmargs-include.patch
22Patch8:         xmoto-0.5.0-helpers-text-includes.patch
23Patch9:         xmoto-0.5.0-helpers-log-include.patch
24#Patch10:       xmoto-0.5.2-x86-64.patch
25BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
26
27BuildRequires:  desktop-file-utils
28BuildRequires:  SDL_mixer-devel
29BuildRequires:  SDL_ttf-devel
30BuildRequires:  curl-devel
31BuildRequires:  ode-devel
32BuildRequires:  lua-devel
33BuildRequires:  libGL-devel
34BuildRequires:  libGLU-devel
35BuildRequires:  libjpeg-devel
36BuildRequires:  libpng-devel
37BuildRequires:  bzip2-devel
38BuildRequires:  sqlite3-devel
39BuildRequires:  SDL_net-devel
40BuildRequires:  libxdg-basedir-devel
41Requires:       TrueType-vlgothic
42
43Packager:       kazutaka
44
45%description
46X-Moto is a challenging 2D motocross platform game, where physics play an all
47important role in the gameplay. You need to control your bike to its limit, if
48you want to have a chance finishing the more difficult of the challenges.
49
50First you'll try just to complete the levels, while later you'll compete with
51yourself and others, racing against the clock.
52
53%description -l ja
54X-Moto はアクロバティックな 2D 画面のモトクロスゲームです。
55このゲームでは重力を上手に利用することがとても重要になります。
56また、難易度の高い面を攻略するには、バイクの特性の限界ギリギリ
57までコントルールする必要があります。
58
59最初は各面を攻略するところから始まりますが、全ての面をクリア
60した後もタイムトライアルに挑戦できます。
61
62
63%prep
64%setup -q
65#%patch
66%patch1 -p0
67#%patch2 -p0
68%patch3 -p0
69#%patch4 -p0
70#%patch5 -p1
71#%patch6 -p0
72%patch7 -p0
73%patch8 -p0
74%patch9 -p0
75#%patch10 -p0
76
77#fix encoding
78sed -i 's/\r//' src/xmscene/Camera.cpp
79sed -i 's/\r//' src/xmscene/Camera.h
80
81#fix permissions
82chmod 644 src/xmscene/Camera.*
83chmod -x src/*.cpp
84chmod -x src/*.h
85chmod -x src/*/*.cpp
86chmod -x src/*/*.h
87chmod -x src/*/*/*.cpp
88chmod -x src/*/*/*.h
89
90%build
91%configure --with-enable-zoom=1
92make
93
94
95%install
96rm -rf $RPM_BUILD_ROOT
97make install DESTDIR=$RPM_BUILD_ROOT
98
99# Install icon and desktop file
100mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
101cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
102
103desktop-file-install --vendor vine \
104                     --dir $RPM_BUILD_ROOT%{_datadir}/applications \
105                     --add-category X-Fedora %{SOURCE1}
106
107# use vlgothic as default font
108rm $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
109ln -s ../../../fonts/TrueType-vlgothic/VL-PGothic-Regular.ttf $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
110
111# install japanese translation
112%{__mkdir} -p ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES
113msgfmt %{SOURCE3} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/%{name}.mo
114
115# Locale files
116%find_lang %{name} %{name}.lang
117
118%clean
119rm -rf $RPM_BUILD_ROOT
120
121
122%post
123touch --no-create %{_datadir}/icons/hicolor || :
124if [ -x %{_bindir}/gtk-update-icon-cache ]; then
125 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
126fi
127
128%postun
129touch --no-create %{_datadir}/icons/hicolor || :
130if [ -x %{_bindir}/gtk-update-icon-cache ]; then
131 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
132fi
133
134%files -f %{name}.lang
135%defattr(-,root,root,-)
136%doc ChangeLog COPYING README
137%{_bindir}/xmoto
138%{_datadir}/xmoto
139%{_datadir}/applications/vine-xmoto.desktop
140%{_datadir}/icons/hicolor/48x48/apps/xmoto.png
141%{_mandir}/man6/xmoto.6.gz
142
143%changelog
144* Fri Jan 07 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.5.4-1
145- initial build for Vine Linux based on fedora development
146- add Source3: japanese translation
147
148* Mon Dec 13 2010 Jon Ciesla <limb@jcomserv.net> 0.5.4-1
149- New upstream.
150
151* Tue May 04 2010 Jon Ciesla <limb@jcomserv.net> 0.5.3-1
152- New upstream.
153- Dropped upstreamed x86-64 patch.
154
155* Mon Dec 07 2009 Jon Ciesla <limb@jcomserv.net> 0.5.2-1.1
156- EVR bump for fix CVS tagging snafu.
157
158* Tue Dec 06 2009 Howard Liberty <liberty@live.com> 0.5.2-1
159- New upstream.
160- Add x86-64 patch so it can be compiled in x86-64 enviroment.
161
162* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-1
163- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
164
165* Tue Apr 14 2009 Jon Ciesla <limb@jcomserv.net> 0.5.1-0
166- New upstream.
167- Dropped opengldepth patch, applied upstream.
168
169* Mon Feb 23 2009 Jon Ciesla <limb@jcomserv.net> 0.5.0-6
170- Patch for includes.
171
172* Mon Feb 02 2009 Jon Ciesla <limb@jcomserv.net> 0.5.0-5
173- Fix for ati crash, BZ 481485.
174
175* Tue Jan 20 2009 Jon Ciesla <limb@jcomserv.net> 0.5.0-4
176- Font requires change for BZ 480480, dejavu rename.
177
178* Tue Dec 30 2008 Jon Ciesla <limb@jcomserv.net> 0.5.0-3
179- Symlink to system font, BZ 477485.
180- Dropped extension from icon in .desktop.
181
182* Wed Dec 10 2008 Jon Ciesla <limb@jcomserv.net> 0.5.0-2
183- No remaining fuzzy patches, dropping patch fuzz workaround.
184
185* Mon Dec 01 2008 Jon Ciesla <limb@jcomserv.net> 0.5.0-1
186- Update to 0.5.0.
187
188* Wed Oct 15 2008 Hans de Goede <hdegoede@redhat.com> 0.4.2-4
189- Fix crash caused by using new ode (bz 466738)
190
191* Tue Sep 30 2008 Jon Ciesla <limb@jcomserv.net> 0.4.2-3
192- Patch for new ode version.
193
194* Fri Sep 12 2008 Jon Ciesla <limb@jcomserv.net> 0.4.2-2
195- Introducted patch fuzz workaround, will fix.
196
197* Tue Mar 18 2008 Jon Ciesla <limb@jcomserv.net> 0.4.2-1
198- Update to 0.4.2.
199- Dropping xmoto-man patch.
200
201* Wed Feb 13 2008 Jon Ciesla <limb@jcomserv.net> 0.4.1-1
202- Update to 0.4.1.
203- Dropped subversion BR.
204
205* Mon Feb 11 2008 Jon Ciesla <limb@jcomserv.net> 0.4.0-1
206- Update to 0.4.0.
207- Dropped unneeded patches.
208- Added string patch, hash_map, inline(jwrdegoede) patch.
209- BRed subversion.
210
211* Tue Jan 08 2008 Jon Ciesla <limb@jcomserv.net> 0.3.4-2
212- Added cstdlib, include extra tokens patches.
213- GCC 4.3 rebuild.
214
215* Thu Oct 25 2007 Jon Ciesla <limb@jcomserv.net> 0.3.4-1
216- Bumped to 0.3.4.
217
218* Mon Sep 24 2007 Jon Ciesla <limb@jcomserv.net> 0.3.3-2
219- Patches from upstream to correct BZ 295981.
220
221* Wed Aug 29 2007 Jon Ciesla <limb@jcomserv.net> 0.3.3-1
222- Bumped to upstream.
223- Fixed URL.
224
225* Thu Aug 16 2007 Jon Ciesla <limb@jcomserv.net> 0.3.1-2
226- License tag correction.
227
228* Mon Jul 09 2007 Jon Ciesla <limb@jcomserv.net> 0.3.1-1
229- Bumped to upstream, BZ 247445.
230
231* Wed Jun 20 2007 Jon Ciesla <limb@jcomserv.net> 0.3.0-1
232- Bumped to upstream.
233
234* Mon Mar 19 2007 Jon Ciesla <limb@jcomserv.net> 0.2.7-1
235- Bumped to upstream, fixed man issues.
236
237* Fri Mar 16 2007 Jon Ciesla <limb@jcomserv.net> 0.2.6-2
238- Bumped release, build mistake.
239
240* Fri Mar 16 2007 Jon Ciesla <limb@jcomserv.net> 0.2.6-1
241- New upstream release.
242- Removed Application from .desktop.
243- Spec cleanup.
244- Fixed man path with patch.
245- Removed X-Fedora.
246
247* Wed Feb 28 2007 Jon Ciesla <limb@jcomserv.net> 0.2.4-1
248- New upstream release
249- xmoto-edit now seperate from base xmoto
250
251* Mon Nov 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.2.2-2
252- Added again the debuginfo package (it's working)
253
254* Sun Nov 12 2006 Hugo Cisneiros <hugo@devin.com.br> 0.2.2-1
255- New upstream release
256
257* Mon Nov  6 2006 Jindrich Novy <jnovy@redhat.com> 0.2.0-2
258- Rebuild against the new curl
259
260* Wed Sep 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.2.0-1
261- New upstream release
262
263* Wed Sep 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.1.16-2
264- Rebuilt for FC6
265
266* Wed Jul  5 2006 Hugo Cisneiros <hugo@devin.com.br> 0.1.16-1
267- Initial RPM release
Note: See TracBrowser for help on using the repository browser.