%define rev 275 %define changeset 97b303e79826 Name: lugaru Version: 20100516 Release: 1%{?dist} Summary: Third-person action game Group: Amusements/Games License: GPLv2+ and Redistributable, no modification permitted URL: http://www.wolfire.com/lugaru # This is an hg snapshot, to get it : # hg clone http://hg.icculus.org/icculus/lugaru # mv lugaru %%{name}-%%{version} # cd %%{name}-%%{version} # rm -rf .hg Dependencies Xcode && rm -f .hgignore # hg update %%{rev}:%%{changeset} # cd .. # tar czfv %%{name}-%%{version}.tar.xz %%{name}-%%{version} Source0: %{name}-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake BuildRequires: SDL-devel BuildRequires: libpng-devel BuildRequires: mesa-libGL-devel BuildRequires: mesa-libGLU-devel BuildRequires: libogg-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libvorbis-devel BuildRequires: zlib-devel BuildRequires: openal-soft-devel BuildRequires: ImageMagick BuildRequires: desktop-file-utils %description Lugaru (pronounced Loo-GAH-roo) is the predecessor to Overgrowth. It is a DRM-free, third-person action game. 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 %build %cmake . -DLUGARU_INSTALL_PREFIX="%{_libdir}/%{name}" %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Install icon mkdir -p $RPM_BUILD_ROOT%{_datadir}/{pixmaps,applications} convert Source/win-res/Lugaru.png -resize 48x48 $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png # Install desktop file cat <$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop [Desktop Entry] Name=Lugaru HD GenericName=Lugaru HD Comment=Third-person action game Exec=%{name} Icon=%{name} Terminal=false StartupNotify=false Type=Application Categories=Game; EOF desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop # Install launcher mkdir -p $RPM_BUILD_ROOT%{_bindir} cat <$RPM_BUILD_ROOT%{_bindir}/%{name} #!/bin/bash cd %{_libdir}/%{name} ./%{name} EOF chmod +x $RPM_BUILD_ROOT%{_bindir}/%{name} # Install man page mkdir -p %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1 cat < $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 .TH LUGARU 1 "NOVEMBER 2010" lugaru "Linux User's Manual" .SH NAME lugaru \- Third-person action game .SH SYNOPSIS .B lugaru .SH DESCRIPTION Lugaru (pronounced Loo-GAH-roo) is the predecessor to Overgrowth. It is a DRM-free, third-person action game. 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. EOF %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING.txt CONTENT-LICENSE.txt %{_libdir}/%{name} %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Sun Nov 28 2010 Hicham HAOUARI - 20100516-1 - Initial package for Fedora