# norootforbuild Name: lugaru Summary: Kung-Fu Rabbit Adventure Video Game Group: Amusements/Games/Action/Other Version: 1.0 Release: 0 License: GPLv2 URL: http://www.wolfire.com/lugaru # revision 183 from Source: %{name}-%{version}.tar.bz2 Source1: %{name}.desktop # PATCH-FIX-UPSTREAM lugaru-1.0-rev225-cmake-fix.patch adam@mizerski.pl -- Fix detecting GLU Patch0: lugaru-1.0-rev225-cmake-fix.patch # PATCH-FIX-OPENSUSE lugaru-1.0-dont-install-data.patch adam@mizerski.pl -- Don't try to install Data, since it's in lugaru-1.0-data package Patch1: lugaru-1.0-dont-install-data.patch # PATCH-FIX-UPSTREAM lugaru-1.0-rev225-no-return.patch adam@mizerski.pl -- Add missing return statement Patch2: lugaru-1.0-rev225-no-return.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: cmake gcc-c++ libSDL-devel Mesa-devel xorg-x11-devel openal-soft-devel libogg-devel libvorbis-devel zlib-devel libjpeg-devel libpng-devel fdupes update-desktop-files Requires: %{name}-data = %{version} %description Lugaru (pronounced Loo-GAH-roo) is the predecessor to Overgrowth (http://www.wolfire.com/overgrowth). It is a DRM-free, third-person action game available for Mac, Windows, and Linux. The main character, Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills. In his quest to find those responsible for slaughtering his village, he uncovers a far-reaching conspiracy involving the corrupt leaders of the rabbit republic and the starving wolves from a nearby den. Turner takes it upon himself to fight against their plot and save his fellow rabbits from slavery. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" cmake -DLUGARU_INSTALL_PREFIX=%{_libdir}/%{name} -G "Unix Makefiles" %build %__make VERBOSE=1 %{?_smp_mflags} %install %makeinstall mkdir -p %{buildroot}%{_datadir}/%{name}-data %__ln_s %{_datadir}/%{name}-data %{buildroot}%{_libdir}/%{name}/Data %__install -D -d %{buildroot}%{_bindir} %__cat >%{buildroot}%{_bindir}/%{name} <