File Ri-li.spec of Package Ri-li
# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: Ri-li
Version: 2.0.1
Release: 0
Summary: Arcade Game where you drive a Toy Wood Engine
Source: http://prdownloads.sourceforge.net/ri-li/Ri-li-%{version}.tar.bz2
Source1: Ri-li.desktop
Patch1: Ri-li-gcc43.patch
URL: http://ri-li.sourceforge.net/
Group: Amusements/Games/Action/Arcade
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%if 0%{?suse_version} >= 1120
BuildRequires: libSDL-devel
BuildRequires: libSDL_mixer-devel
%else
BuildRequires: SDL-devel
%if 0%{?suse_version} >= 1000
BuildRequires: SDL_mixer-devel
%else
BuildRequires: SDL_mixer
%endif
%endif
BuildRequires: gcc gcc-c++ make glibc-devel pkgconfig
BuildRequires: autoconf automake libtool
BuildRequires: update-desktop-files
%description
Ri-li is a arcade game licensed under the GPL (General Public License).
You drive a toy wood engine in many levels and you must collect all the
coaches to win.
%debug_package
%prep
%setup -q
%patch1
%__sed -i 's/\r$//' NEWS COPYING* AUTHORS README
%build
autoreconf -fiv
%configure
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%__install -D -m 0644 data/Ri-li-icon-48x48.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
%suse_update_desktop_file -r "%{name}" Game ArcadeGame
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING* NEWS README
%{_bindir}/Ri_li
%{_datadir}/Ri-li
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png