Summary: Clone of across/elma games Summary(pl.UTF-8): Klon gry across/elma Name: xmoto Version: 0.5.9 Release: 6 License: GPL v2+ Group: X11/Applications/Games Source0: http://download.tuxfamily.org/xmoto/xmoto/%{version}/%{name}-%{version}-src.tar.gz # Source0-md5: d8d6b7a405139530650b8a9ae2ea6df3 Source1: %{name}.png Source2: %{name}.desktop Patch0: %{name}-lua51.patch Patch1: %{name}-includes.patch URL: http://xmoto.sourceforge.net/ BuildRequires: OpenGL-GLU-devel BuildRequires: SDL-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_net-devel BuildRequires: SDL_ttf-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: bzip2-devel BuildRequires: curl-devel BuildRequires: gettext-tools BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: libxdg-basedir-devel >= 1.1.1-2 BuildRequires: lua51-devel BuildRequires: ode-devel >= 1:0.11 BuildRequires: pkgconfig BuildRequires: sed >= 4.0 BuildRequires: sqlite3-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description X-Moto is a challenging 2D motocross platform game, where physics play an all important role in the gameplay. You need to control your bike to its limit, if you want to have a chance finishing the more difficult of the challenges. First you'll try just to complete the levels, while later you'll compete with yourself and others, racing against the clock. %description -l pl.UTF-8 X-Moto jest wyzywającą motocrossową dwuwymiarową grą platformową, gdzie fizyka ma w rozgrywce główną rolę. Panowanie nad motorem musi być jak najbardziej wyżyłowane, jeżeli chce się myśleć o ukończeniu trudniejszych poziomów. Z początku po prostu zalicza się poziomy, później walczy się z wynikami, swoimi i innych, w wyścigu z czasem. %prep %setup -q %patch0 -p1 %patch1 -p1 # fix some translations %{__sed} -i -e 's/lv_LV/lv/g;s/da_DK/da/g;s/gl_ES/gl/g;s/pt_PT/pt/g;s/tr_TR/tr/g' configure.in mv -f po/lv{_LV,}.po mv -f po/da{_DK,}.po mv -f po/gl{_ES,}.po mv -f po/pt{_PT,}.po mv -f po/tr{_TR,}.po # don't run svnversion touch src/svnVersion %build %{__libtoolize} %{__gettextize} %{__aclocal} -I m4 %{__autoconf} %{__automake} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir} install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/ca{_ES,} # identical to ca_ES %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ca_{AD,FR,IT}* mv -f $RPM_BUILD_ROOT%{_datadir}/locale/cs{_CZ,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/de{_DE,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/es{_ES,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/fi{_FI,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/fr{_FR,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/hu{_HU,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/it{_IT,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/lt{_LT,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/nb{_NO,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/nl{_NL,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/nn{_NO,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/pl{_PL,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/ru{_RU,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sk{_SK,} mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sv{_SE,} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc ChangeLog README TODO %attr(755,root,root) %{_bindir}/* %{_datadir}/xmoto %{_pixmapsdir}/* %{_desktopdir}/*.desktop %{_mandir}/man6/xmoto.*