File Ri-li.spec of Package Ri-li
#
# spec file for package Ri-li
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: Ri-li
Version: 2.0.1
Release: 0
Summary: Arcade Game where you drive a Toy Wood Engine
License: GPL-2.0+
Group: Amusements/Games/Action/Arcade
Url: http://ri-li.sourceforge.net/
Source: http://prdownloads.sourceforge.net/ri-li/Ri-li-%{version}.tar.bz2
Source1: Ri-li.desktop
Patch1: Ri-li-gcc43.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: make
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Ri-li is a arcade game where you drive a toy wood engine in many levels
and you must collect all the coaches to win.
%prep
%setup -q
%patch1
dos2unix NEWS COPYING* AUTHORS README
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
install -D -m 0644 data/Ri-li-icon-48x48.png "%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png"
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Game ArcadeGame
%fdupes %{buildroot}%{_datadir}
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/Ri_li
%{_datadir}/Ri-li
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%changelog