SHA256
1
0
forked from pool/lugaru
lugaru/lugaru.spec
Pavol Rusnak 2fed3b4235 Accepting request 40046 from home:etamPL:branches:games
Copy from home:etamPL:branches:games/lugaru via accept of submit request 40046 revision 3.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/40046
OBS-URL: https://build.opensuse.org/package/show/games/lugaru?expand=0&rev=5
2010-05-14 15:42:54 +00:00

74 lines
2.7 KiB
RPMSpec

# 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} <<EOF
#!/bin/bash
cd %{_libdir}/%{name}/
./%{name}
EOF
%__chmod +x %{buildroot}%{_bindir}/%{name}
%__install -D -m 644 Source/res/Lugaru.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%__install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING.txt
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%dir %{_datadir}/%{name}-data
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog