[2471] | 1 | Name: xmoto |
---|
| 2 | Version: 0.5.4 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: Challenging 2D Motocross Platform Game |
---|
| 5 | Summary(ja): 2D 画面のアクロバティックなモトクロスゲーム |
---|
| 6 | |
---|
| 7 | Group: Applications/Games |
---|
| 8 | License: GPLv2+ |
---|
| 9 | URL: http://xmoto.sourceforge.net/ |
---|
| 10 | Source0: http://download.tuxfamily.org/xmoto/xmoto/%{version}/xmoto-%{version}-src.tar.gz |
---|
| 11 | Source1: xmoto.desktop |
---|
| 12 | Source2: xmoto.png |
---|
| 13 | Source3: xmoto-0.5.4-ja.po |
---|
| 14 | #Patch0: xmoto-man.patch |
---|
| 15 | Patch1: xmoto-0.3.4-Environment-cstlib.patch |
---|
| 16 | #Patch2: xmoto-0.3.4-Scene-collisioninclude.patch |
---|
| 17 | Patch3: 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 |
---|
| 21 | Patch7: xmoto-0.5.0-xmargs-include.patch |
---|
| 22 | Patch8: xmoto-0.5.0-helpers-text-includes.patch |
---|
| 23 | Patch9: xmoto-0.5.0-helpers-log-include.patch |
---|
| 24 | #Patch10: xmoto-0.5.2-x86-64.patch |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 26 | |
---|
| 27 | BuildRequires: desktop-file-utils |
---|
| 28 | BuildRequires: SDL_mixer-devel |
---|
| 29 | BuildRequires: SDL_ttf-devel |
---|
| 30 | BuildRequires: curl-devel |
---|
| 31 | BuildRequires: ode-devel |
---|
| 32 | BuildRequires: lua-devel |
---|
| 33 | BuildRequires: libGL-devel |
---|
| 34 | BuildRequires: libGLU-devel |
---|
| 35 | BuildRequires: libjpeg-devel |
---|
| 36 | BuildRequires: libpng-devel |
---|
| 37 | BuildRequires: bzip2-devel |
---|
| 38 | BuildRequires: sqlite3-devel |
---|
| 39 | BuildRequires: SDL_net-devel |
---|
| 40 | BuildRequires: libxdg-basedir-devel |
---|
| 41 | Requires: TrueType-vlgothic |
---|
| 42 | |
---|
| 43 | Packager: kazutaka |
---|
| 44 | |
---|
| 45 | %description |
---|
| 46 | X-Moto is a challenging 2D motocross platform game, where physics play an all |
---|
| 47 | important role in the gameplay. You need to control your bike to its limit, if |
---|
| 48 | you want to have a chance finishing the more difficult of the challenges. |
---|
| 49 | |
---|
| 50 | First you'll try just to complete the levels, while later you'll compete with |
---|
| 51 | yourself and others, racing against the clock. |
---|
| 52 | |
---|
| 53 | %description -l ja |
---|
| 54 | X-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 |
---|
| 78 | sed -i 's/\r//' src/xmscene/Camera.cpp |
---|
| 79 | sed -i 's/\r//' src/xmscene/Camera.h |
---|
| 80 | |
---|
| 81 | #fix permissions |
---|
| 82 | chmod 644 src/xmscene/Camera.* |
---|
| 83 | chmod -x src/*.cpp |
---|
| 84 | chmod -x src/*.h |
---|
| 85 | chmod -x src/*/*.cpp |
---|
| 86 | chmod -x src/*/*.h |
---|
| 87 | chmod -x src/*/*/*.cpp |
---|
| 88 | chmod -x src/*/*/*.h |
---|
| 89 | |
---|
| 90 | %build |
---|
| 91 | %configure --with-enable-zoom=1 |
---|
| 92 | make |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %install |
---|
| 96 | rm -rf $RPM_BUILD_ROOT |
---|
| 97 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 98 | |
---|
| 99 | # Install icon and desktop file |
---|
| 100 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps |
---|
| 101 | cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps |
---|
| 102 | |
---|
| 103 | desktop-file-install --vendor vine \ |
---|
| 104 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 105 | --add-category X-Fedora %{SOURCE1} |
---|
| 106 | |
---|
| 107 | # use vlgothic as default font |
---|
| 108 | rm $RPM_BUILD_ROOT%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf |
---|
| 109 | ln -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 |
---|
| 113 | msgfmt %{SOURCE3} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/%{name}.mo |
---|
| 114 | |
---|
| 115 | # Locale files |
---|
| 116 | %find_lang %{name} %{name}.lang |
---|
| 117 | |
---|
| 118 | %clean |
---|
| 119 | rm -rf $RPM_BUILD_ROOT |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | %post |
---|
| 123 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
| 124 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
| 125 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
| 126 | fi |
---|
| 127 | |
---|
| 128 | %postun |
---|
| 129 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
| 130 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
| 131 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
| 132 | fi |
---|
| 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 |
---|