xmoto/xmoto.spec

109 lines
3.1 KiB
RPMSpec

Name: xmoto
Version: 0.6.1
Release: 1mamba
Summary: A nice 2D motocross game
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: https://xmoto.tuxfamily.org/
Source: https://github.com/xmoto/xmoto.git/%{version}/xmoto-%{version}.tar.bz2
#Source: http://download.tuxfamily.org/xmoto/xmoto/%{version}/xmoto-%{version}-src.tar.gz
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
BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libjpeg-devel
BuildRequires: liblua-devel
BuildRequires: libode-devel
BuildRequires: libpng-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libSDL_net-devel
BuildRequires: libSDL_ttf-devel
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
%debug_package
%prep
%setup -q -n %{name}-%{version}
#%patch1 -p0
%build
%cmake -d build
## Workaround
#sed -i "s|llua|llua5.1|" Makefile src/Makefile
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
#install -D %{SOURCE2} %{buildroot}%{_datadir}/applications/xmoto.desktop
#install -D %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/xmoto.png
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/xmoto
%{_datadir}/pixmaps/xmoto.xpm
%dir %{_datadir}/xmoto
%dir %{_datadir}/xmoto/Textures
%dir %{_datadir}/xmoto/Textures/Fonts
%{_datadir}/xmoto/Textures/Fonts/DejaVuSans.ttf
%{_datadir}/xmoto/Textures/Fonts/DejaVuSansMono.ttf
%dir %{_datadir}/xmoto/Textures/Musics
%{_datadir}/xmoto/Textures/Musics/*.ogg
%{_datadir}/xmoto/xmoto.bin
%{_datadir}/xmoto/xmoto_icone_x.ico
%{_datadir}/applications/xmoto.desktop
%{_mandir}/man6/xmoto.6*
%doc COPYING
#ChangeLog NEWS README TODO
%changelog
* Sat Mar 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-1mamba
- update to 0.6.1
* 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