Name: megaglest Version: 3.6.0.3 Release: 5%{?dist} Summary: Open Source 3d real time strategy game License: GPLv3+ and GPL+ Group: Amusements/Games Url: http://megaglest.org/ Source0: http://downloads.sourceforge.net/%{name}/files/%{name}-source-%{version}.tar.xz BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: mesa-libGL-devel BuildRequires: ftgl-devel BuildRequires: glew-devel BuildRequires: gnutls-devel BuildRequires: help2man BuildRequires: openjpeg-devel BuildRequires: libcurl-devel BuildRequires: libicu-devel BuildRequires: libircclient-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libvorbis-devel BuildRequires: lua-devel BuildRequires: miniupnpc-devel BuildRequires: openal-soft-devel BuildRequires: openssl-devel BuildRequires: libpng-devel BuildRequires: SDL-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_net-devel BuildRequires: subversion BuildRequires: xerces-c27-devel BuildRequires: wxGTK-devel BuildRequires: xorg-x11-server-Xvfb BuildRequires: zlib-devel Requires: glx-utils Requires: megaglest-data Requires: p7zip # Correct use of XERCESC_INCLUDE and XERCESC_INCLUDE_DIR that # should have the same value if xerces is found. Patch0: %{name}-3.6.0.3-xerces.patch # Correct usage of xvfb-run when generating manpages Patch1: %{name}-3.6.0.2-help2man.patch # Do not fail with cryptic message if there are missing translations # just use english text Patch2: %{name}-3.6.0.3-translation-missing.patch # Required to build with gcc 4.7 Patch3: %{name}-3.6.0.3-gcc47.patch %description MegaGlest is an open source 3D-real-time strategy game, where you control the armies of one of seven different factions: Tech, Magic, Egyptians, Indians, Norsemen, Persian or Romans. The game is setup in one of 16 naturally looking settings, which -like the unit models- are crafted with great appreciation for detail. Additional game data can be downloaded from within the game at no cost. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build mkdir -p build pushd build export XERCESC_INCLUDE_DIR=%{_includedir}/xercesc-2.7.0 export XERCESC_LIBRARY_DIR=%{_libdir}/xerces-c-2.7.0 %cmake \ -DMEGAGLEST_BIN_INSTALL_PATH=%{_bindir} \ -DMEGAGLEST_ICON_INSTALL_PATH=%{_datadir}/icons \ .. make %{?_smp_mflags} popd %install make install DESTDIR=${RPM_BUILD_ROOT} -C build install -d $RPM_BUILD_ROOT%{_datadir}/megaglest for image in `ls $RPM_BUILD_ROOT%{_datadir}/icons`; do [ -e $RPM_BUILD_ROOT%{_datadir}/$image ] || ln -sf %{_datadir}/icons/$image $RPM_BUILD_ROOT%{_datadir}/megaglest done # installed by megaglest-data rm $RPM_BUILD_ROOT%{_datadir}/megaglest/megaglest.bmp desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/megaglest.desktop %files %doc AUTHORS.source_code.txt %doc CHANGELOG.txt %doc COPYRIGHT.source_code.txt %doc gnu_gpl_3.0.txt %doc README.txt %{_bindir}/* %{_datadir}/applications/megaglest.desktop %{_datadir}/icons/* %{_mandir}/man6/*.6* %{_datadir}/megaglest/* %changelog * Thu Jul 19 2012 pcpa - 3.6.0.3-5 - Do not use %%{_iconsdir} macro (#817315). - Correct libjpeg-turbo-devel build requires (#817315). - Add missing desktop-file-utils build requires (#817315). - Update license tag to match source files (#817315). * Fri Jul 13 2012 pcpa - 3.6.0.3-4 - Add turbojpeg-devel to build requires. - Install documentation (#817315). - Correct sourceforge source url (#817315). * Fri Jun 1 2012 pcpa - 3.6.0.3-3 - Removed %%defattr. - Update to build with gcc 4.7. - Do not own %%{_datadir}/megaglest as megaglest-data is required. - Remove comments about pending review requests of build requires. * Wed May 2 2012 pcpa - 3.6.0.3-2 - Remove no longer required patch to link to openssl and static libircclient. - Update build requires for miniupnpc rename. * Sat Apr 28 2012 pcpa - 3.6.0.3-1 - Initial megaglest spec.