File irrlamb.spec of Package irrlamb

Name:           irrlamb
Version:        0.2.1
Release:        0
Summary:        Physics-based 3D puzzle platformer
Group:          Amusements/Games/Arcade
License:        GPLv3+ and CC-BY-SA 3.0
URL:            https://code.google.com/p/irrlamb/
# extlibs and working folders removed from the archive
Source0:        %{name}-%{version}-src.tar.gz
Patch0:         irrlamb-0.2.0-mga-desktop.patch
Patch1:         irrlamb-0.2.0-mga-gamesbindir.patch

BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  irrlicht-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(bullet)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(lua) >= 5.2
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(x11)

%description
Irrlamb is a platform game, in which the player moves a ball through
a 3D terrain. The aim in each irrlamb level is to touch every glowing
globe, sometimes within a time limit. In some levels the player has
the grapple upgrade, which allows the player to shoot an elastic rope
at objects and terrain and can be used to climb walls.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1

%build
%cmake -DLUA_VERSION=5.2
make %{?_smp_mflags}

%install
cd build
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%dir %{_datadir}/doc/%{name}
%doc %{_datadir}/doc/%{name}/*
%{_prefix}/games/%{name}
%dir %{_datadir}/games/%{name}
%{_datadir}/games/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png


%changelog
* Tue Dec 23 2014 akien <akien> 0.2.0-0.20141110.1.mga5
+ Revision: 805124
- imported package irrlamb