Name: nexuiz Version: 1.0 Release: 2 Summary: First person shooter Group: Amusements/Games License: GPL URL: http://www.nexuiz.com/ Source0: http://dl.sf.net/sourceforge/nexuiz/nexuiz.zip Patch0: nexuiz-1.0-makefile.patch Patch1: nexuiz-1.0-basedir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils xorg-x11-devel BuildRequires: alsa-lib-devel Requires: %{name}-data # this is necessary as these libraries are loaded during runtime # and therefore it isn't picked up by RPM during build Requires: libz.so.1 libvorbis.so.0 libvorbisfile.so.3 libjpeg.so.62 %description Nexuiz is a fast-paced, chaotic, and intense multiplayer first person shooter, focused on providing basic, old style deathmatches. %package server Group: Amusements/Games Summary: Dedicated server for the Nexuiz first person shooter Requires: %{name}-data # this is necessary as these libraries are loaded during runtime # and therefore it isn't picked up by RPM during build Requires: libz.so.1 %description server This is the nexuiz dedicated server required to host network games. %package data Group: Amusements/Games Summary: Game data (levels) for the Nexuiz first person shooter %description data Data (textures, maps, sounds and models) required to play nexuiz. This includes 17 maps, 28 playable characters and 10 music tracks. %prep %setup -q -n Nexuiz unzip -qq sources/nexuizenginesource20050530.zip %patch0 -p0 -b .makefile %patch1 -p0 -b .basedir %{__sed} -i 's/\r//' Readme.htm %build cd darkplaces make %{?_smp_mflags} cl-release OPTIM_RELEASE="$RPM_OPT_FLAGS" make %{?_smp_mflags} sv-release OPTIM_RELEASE="$RPM_OPT_FLAGS" cd - %install rm -rf $RPM_BUILD_ROOT %{__mkdir_p} $RPM_BUILD_ROOT%{_bindir} %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/{applications,nexuiz/data,pixmaps} cat > %{name}.desktop << EOF [Desktop Entry] Name=Nexuiz Comment=First Person Shooter Encoding=UTF-8 Icon=darkplaces Exec=nexuiz-glx Terminal=false Type=Application EOF desktop-file-install \ --vendor=fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Fedora \ --add-category Application \ --add-category Game \ %{name}.desktop install -m755 darkplaces/nexuiz-{glx,dedicated} \ $RPM_BUILD_ROOT%{_bindir}/ install -m644 -p data/data20050531.pk3 \ $RPM_BUILD_ROOT%{_datadir}/nexuiz/data install -m644 -p darkplaces/darkplaces72x72.png \ $RPM_BUILD_ROOT%{_datadir}/pixmaps/darkplaces.png %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc gpl.txt Readme.htm %{_bindir}/nexuiz-glx %{_datadir}/pixmaps/darkplaces.png %{_datadir}/applications/*%{name}.desktop %files server %defattr(-,root,root,-) %doc gpl.txt Readme.htm %{_bindir}/nexuiz-dedicated %files data %defattr(-,root,root,-) %doc gpl.txt Readme.htm %{_datadir}/nexuiz/ %changelog * Thu Jun 09 2005 Adrian Reber - 1.0-2 - comments concerning the requires added - better(???) descriptions * Thu Jun 09 2005 Adrian Reber - 1.0-1 - initial version