forked from pool/lugaru
68 lines
2.4 KiB
RPMSpec
68 lines
2.4 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
|
|
# adam@mizerski.pl -- This source is a bit modified version of original. All changes were commited to upstream, but not accepted yet.
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
# PATCH-FEATURE-OPENSUSE lugaru-1.0-registered.patch adam@mizerski.pl -- The game is now registered. It's Free Sorftware, isn't it?
|
|
Patch0: %{name}-1.0-registered.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRequires: gcc-c++ libSDL-devel Mesa-devel openal-soft-devel libogg-devel libvorbis-devel zlib-devel libjpeg-devel fdupes update-desktop-files
|
|
%if 0%{?suse_version} > 1120
|
|
BuildRequires: libpng12-devel
|
|
%else
|
|
BuildRequires: libpng-devel
|
|
%endif
|
|
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
|
|
|
|
%build
|
|
%__make %{?_smp_mflags} OPT="%{optflags}" EXENAME=%{name}
|
|
|
|
%install
|
|
%__install -D -m 755 %{name} %{buildroot}%{_libdir}/%{name}/%{name}
|
|
%__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}/*
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%changelog
|