SHA256
1
0
forked from pool/lugaru
lugaru/lugaru.spec

100 lines
3.6 KiB
RPMSpec

#
# spec file for package lugaru
#
# Copyright (c) 2012 SUSE LINUX Products 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: lugaru
Summary: Kung-Fu Rabbit Adventure Video Game
License: GPL-2.0
Group: Amusements/Games/Action/Other
Version: 1.0
Release: 0
Url: http://code.google.com/p/lugaru/
# revision 275
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.rev506-no-return.patch kkirill@opensuse.org -- Add missing return statement
Patch2: lugaru-1.0.rev506-no-return.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: Mesa-devel
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libSDL-devel
BuildRequires: libjpeg-devel
BuildRequires: libogg-devel
BuildRequires: libpng-devel
BuildRequires: libvorbis-devel
BuildRequires: openal-soft-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
BuildRequires: zlib-devel
Provides: %{name} = %{version}
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
%patch1
%patch2
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
cmake -DLUGARU_INSTALL_PREFIX=%{_libdir}/%{name} -G "Unix Makefiles"
%__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/win-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
%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