2024-01-05 19:46:43 +01:00
|
|
|
Name: xmoto
|
2024-01-05 19:46:44 +01:00
|
|
|
Version: 0.6.2
|
2024-01-05 19:46:43 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A nice 2D motocross game
|
|
|
|
Group: Graphical Desktop/Applications/Games
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 19:46:44 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 19:46:43 +01:00
|
|
|
URL: https://xmoto.tuxfamily.org/
|
2024-01-05 19:46:44 +01:00
|
|
|
Source: https://github.com/xmoto/xmoto.git/v%{version}/xmoto-%{version}.tar.bz2
|
2024-01-05 19:46:43 +01:00
|
|
|
Source2: xmoto.desktop
|
|
|
|
Source3: xmoto-icon.png
|
|
|
|
Patch0: xmoto-0.5.3-libpng14.patch
|
|
|
|
Patch1: xmoto-0.5.10-gcc-4.8.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 19:46:44 +01:00
|
|
|
BuildRequires: libGLU-devel
|
|
|
|
BuildRequires: libSDL2-devel
|
|
|
|
BuildRequires: libSDL2_ttf-devel
|
2024-01-05 19:46:43 +01:00
|
|
|
BuildRequires: libbzip2-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-05 19:46:44 +01:00
|
|
|
BuildRequires: libglvnd-devel
|
2024-01-05 19:46:43 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: liblua-devel
|
|
|
|
BuildRequires: libpng-devel
|
2024-01-05 19:46:44 +01:00
|
|
|
BuildRequires: libsdl2_mixer-devel
|
|
|
|
BuildRequires: libsdl2_net-devel
|
2024-01-05 19:46:43 +01:00
|
|
|
BuildRequires: libsqlite-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libxdg-basedir-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
xmoto is a nice 2D motocross game, where phisics rules are very strong
|
|
|
|
|
2024-01-05 19:46:43 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 19:46:43 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2024-01-05 19:46:43 +01:00
|
|
|
#%patch1 -p0
|
2024-01-05 19:46:43 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 19:46:43 +01:00
|
|
|
%cmake -d build
|
|
|
|
|
|
|
|
## Workaround
|
|
|
|
#sed -i "s|llua|llua5.1|" Makefile src/Makefile
|
|
|
|
|
2024-01-05 19:46:43 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 19:46:43 +01:00
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
#install -D %{SOURCE2} %{buildroot}%{_datadir}/applications/xmoto.desktop
|
|
|
|
#install -D %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/xmoto.png
|
|
|
|
|
2024-01-05 19:46:43 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/xmoto
|
2024-01-05 19:46:44 +01:00
|
|
|
%{_datadir}/applications/xmoto.desktop
|
2024-01-05 19:46:43 +01:00
|
|
|
%dir %{_datadir}/xmoto
|
|
|
|
%dir %{_datadir}/xmoto/Textures
|
|
|
|
%dir %{_datadir}/xmoto/Textures/Fonts
|
2024-01-05 19:46:44 +01:00
|
|
|
%{_datadir}/xmoto/Textures/Fonts/DejaVuSans*.ttf
|
2024-01-05 19:46:43 +01:00
|
|
|
%dir %{_datadir}/xmoto/Textures/Musics
|
|
|
|
%{_datadir}/xmoto/Textures/Musics/*.ogg
|
2024-01-05 19:46:44 +01:00
|
|
|
%{_datadir}/xmoto/xmoto.*
|
|
|
|
%{_datadir}/pixmaps/xmoto.png
|
2024-01-05 19:46:43 +01:00
|
|
|
%{_mandir}/man6/xmoto.6*
|
2024-01-05 19:46:43 +01:00
|
|
|
%doc COPYING
|
2024-01-05 19:46:43 +01:00
|
|
|
#ChangeLog NEWS README TODO
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 19:46:44 +01:00
|
|
|
* Mon Mar 20 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2-1mamba
|
|
|
|
- update to 0.6.2
|
|
|
|
|
2024-01-05 19:46:43 +01:00
|
|
|
* Sat Mar 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-1mamba
|
|
|
|
- update to 0.6.1
|
|
|
|
|
2024-01-05 19:46:43 +01:00
|
|
|
* Sun Oct 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.10-1mamba
|
|
|
|
- update to 0.5.10
|
|
|
|
|
|
|
|
* Fri Mar 18 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.5.5-1mamba
|
|
|
|
- update to 0.5.5
|
|
|
|
|
|
|
|
* Mon Oct 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.3-1mamba
|
|
|
|
- update to 0.5.3
|
|
|
|
|
|
|
|
* Fri Nov 20 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.5.2-1mamba
|
|
|
|
- update to 0.5.2
|
|
|
|
- added build requirements for libSDL_net-devel
|
|
|
|
|
|
|
|
* Mon Jul 07 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.2-2mamba
|
|
|
|
- added desktop menu icon
|
|
|
|
- move build requirements to correct position
|
|
|
|
|
|
|
|
* Sat Jul 05 2008 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.4.2-1mamba
|
|
|
|
- package created by autospec
|