%define oname Xonotic Summary: A free multi-player first person shooter Name: xonotic Version: 0.6.0 Release: %mkrel 3 Source0: http://dl.xonotic.org/%{name}-%{version}.zip License: GPLv2+ Group: Games/Shooter Url: http://www.xonotic.org/ Requires: %{name}-data = %{version} BuildRequires: SDL-devel BuildRequires: GL-devel BuildRequires: libxxf86dga-devel BuildRequires: libxext-devel BuildRequires: libxpm-devel BuildRequires: libxxf86vm-devel BuildRequires: alsa-lib-devel BuildRequires: jpeg-devel %description Xonotic is a free (GPL), fast-paced first-person shooter that works on Microsoft Windows, Mac OSX and Linux. Xonotic is a direct successor of the Nexuiz Project. It features much better quality graphics and visual effects. Xonotic places focus on community involvement as its principal driving force and structures itself to respect that. The aim of Xonotic is to become the best possible open-source FPS (first-person-shooter) of its kind. %package -n %{name}-data Summary: Xonotic data files (graphics, music, maps etc) Requires: %{name} = %{version} Group: Games/Shooter BuildArch: noarch %description -n %{name}-data Data files used to play Xonotic. %prep %setup -q -n %{oname} %build cd source/darkplaces make clean make release CPUOPTIMIZATIONS="%{optflags}" DP_FS_BASEDIR=%{_gamesdatadir}/%{name} %install %__install -d %{buildroot}%{_gamesdatadir}/%{name} %__cp -R data %{buildroot}%{_gamesdatadir}/%{name}/ %__install -D -m 755 source/darkplaces/darkplaces-sdl %{buildroot}%{_gamesbindir}/%{name}-sdl %__install -D -m 755 source/darkplaces/darkplaces-glx %{buildroot}%{_gamesbindir}/%{name}-glx %__install -D -m 644 misc/logos/icons_png/%{name}_16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png %__install -D -m 644 misc/logos/icons_png/%{name}_32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png %__install -D -m 644 misc/logos/icons_png/%{name}_64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png %__install -D -m 644 misc/logos/icons_png/%{name}_128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png %__install -D -m 644 misc/logos/%{name}_icon.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg %__install -d %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}-sdl.desktop << EOF [Desktop Entry] Name=Xonotic-SDL Comment=Multi-player first person shooter (SDL) Exec=%{_gamesbindir}/%{name}-sdl Icon=%{name} Terminal=false Type=Application StartupNotify=false Categories=Game;ArcadeGame; EOF cat > %{buildroot}%{_datadir}/applications/%{name}-glx.desktop << EOF [Desktop Entry] Name=Xonotic-GLX Comment=Multi-player first person shooter (GLX) Exec=%{_gamesbindir}/%{name}-glx Icon=%{name} Terminal=false Type=Application StartupNotify=false Categories=Game;ArcadeGame; EOF %files %{_gamesbindir}/%{name}-sdl %{_gamesbindir}/%{name}-glx %{_datadir}/applications/%{name}-sdl.desktop %{_datadir}/applications/%{name}-glx.desktop %{_iconsdir}/hicolor/16x16/apps/%{name}.png %{_iconsdir}/hicolor/32x32/apps/%{name}.png %{_iconsdir}/hicolor/64x64/apps/%{name}.png %{_iconsdir}/hicolor/128x128/apps/%{name}.png %{_iconsdir}/hicolor/scalable/apps/%{name}.svg %files -n %{name}-data %dir %{_gamesdatadir}/%{name}/data %{_gamesdatadir}/%{name}/data/* %changelog * Mon Jan 14 2013 umeabot <umeabot> 0.6.0-3.mga3 + Revision: 387245 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 09 2013 malo <malo> 0.6.0-2.mga3 + Revision: 343870 - updated RPM group + dams <dams> - clean specfile * Sat Mar 10 2012 tv <tv> 0.6.0-1.mga2 + Revision: 222351 - new release * Thu Jan 19 2012 nelg <nelg> 0.5.0-1.mga2 + Revision: 198253 - imported package xonotic