2010-05-13 11:51:50 +00:00
|
|
|
# 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
|
2010-05-21 13:04:11 +00:00
|
|
|
# revision 275
|
2010-05-13 12:31:12 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-05-13 11:51:50 +00:00
|
|
|
Source1: %{name}.desktop
|
2010-05-14 15:42:54 +00:00
|
|
|
# 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
|
2010-05-13 11:51:50 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
2010-05-14 15:42:54 +00:00
|
|
|
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
|
2010-05-13 11:51:50 +00:00
|
|
|
Requires: %{name}-data = %{version}
|
|
|
|
|
|
|
|
%description
|
2010-05-13 12:31:12 +00:00
|
|
|
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.
|
2010-05-13 11:51:50 +00:00
|
|
|
|
|
|
|
%prep
|
2010-05-13 12:31:12 +00:00
|
|
|
%setup -q
|
2010-05-13 11:51:50 +00:00
|
|
|
%patch0 -p1
|
2010-05-14 15:42:54 +00:00
|
|
|
%patch1 -p1
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
cmake -DLUGARU_INSTALL_PREFIX=%{_libdir}/%{name} -G "Unix Makefiles"
|
2010-05-13 11:51:50 +00:00
|
|
|
|
|
|
|
%build
|
2010-05-14 15:42:54 +00:00
|
|
|
%__make VERBOSE=1 %{?_smp_mflags}
|
2010-05-13 11:51:50 +00:00
|
|
|
|
|
|
|
%install
|
2010-05-14 15:42:54 +00:00
|
|
|
%makeinstall
|
2010-05-13 12:44:17 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}-data
|
2010-05-13 12:31:12 +00:00
|
|
|
%__ln_s %{_datadir}/%{name}-data %{buildroot}%{_libdir}/%{name}/Data
|
|
|
|
%__install -D -d %{buildroot}%{_bindir}
|
|
|
|
%__cat >%{buildroot}%{_bindir}/%{name} <<EOF
|
2010-05-13 11:51:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cd %{_libdir}/%{name}/
|
|
|
|
./%{name}
|
|
|
|
EOF
|
2010-05-13 12:31:12 +00:00
|
|
|
%__chmod +x %{buildroot}%{_bindir}/%{name}
|
2010-05-21 13:04:11 +00:00
|
|
|
%__install -D -m 644 Source/win-res/Lugaru.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2010-05-13 12:31:12 +00:00
|
|
|
%__install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
%endif
|
2010-05-13 11:51:50 +00:00
|
|
|
|
|
|
|
%clean
|
2010-05-13 12:31:12 +00:00
|
|
|
%__rm -rf %{buildroot}
|
2010-05-13 11:51:50 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-05-13 12:31:12 +00:00
|
|
|
%doc COPYING.txt
|
2010-05-13 11:51:50 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/*
|
2010-05-13 12:44:17 +00:00
|
|
|
%dir %{_datadir}/%{name}-data
|
2010-05-13 11:51:50 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
%changelog
|