%define rev svn3141 Name: vcmi Version: 0.91 Release: alt1.%rev Summary: Free implementation of Heroes of the Might and Magic 3 engine License: GPLv2 Group: Games/Strategy Url: http://sourceforge.net/projects/vcmi/ Packager: Andrew Clark Source: http://sourceforge.net/projects/vcmi/files/%name/%version/%name-%version.tar.bz2 # Automatically added by buildreq on Sat Feb 02 2013 # optimized out: boost-devel boost-intrusive-devel cmake-modules libSDL-devel libavcodec-devel libavutil-devel libopencore-amrnb0 libopencore-amrwb0 libstdc++-devel pkg-config BuildRequires: boost-asio-devel boost-devel-headers boost-filesystem-devel boost-interprocess-devel boost-program_options-devel cmake gcc-c++ libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libavformat-devel libswscale-devel zlib-devel %description Rewritten Heroes of the Might and Magic 3: Wake of Gods engine new possibilities. You should have data files from original game. If you have this files, then you need to run vcmibuilder script for example: ./vcmibuilder --data /media/Program\ Files/Heroes3 --download after that you need to copy data files from directory with downloaded files to /usr/share/games/vcmi/ %prep %setup %build cmake --debug-output -D CMAKE_CXX_FLAGS="%optflags" -D CMAKE_C_FLAGS="%optflags" -D DISABLE_ERM="true" -D CMAKE_BUILD_WITH_INSTALL_RPATH="true" -D CMAKE_INSTALL_PREFIX="/usr" -D CMAKE_INSTALL_RPATH="" -D BIN_DIR="bin/" -D LIB_DIR="lib/%name/" -D DATA_DIR="share/games/%name/" CMakeLists.txt %make_build VERBOSE=1 %install mkdir -p %buildroot{%_bindir,%_libdir/%name,%_niconsdir,%_desktopdir,%_docdir/%name,%_gamesdatadir/%name/{config,Data,Maps,Mods,Mp3}} %makeinstall_std install -pm 644 {AUTHORS,COPYING,NEWS,ChangeLog,license.txt,README*} %buildroot%_docdir/%name/ %files %_bindir/* %_docdir/%name %_niconsdir/vcmiclient.png %_liconsdir/vcmiclient.png %_iconsdir/hicolor/64x64/apps/vcmiclient.png %_desktopdir/vcmiclient.desktop %_gamesdatadir/%name %_libdir/%name %_libdir/%name/AI %changelog * Sat Feb 2 2013 Andrew Clark 0.91-alt1.svn3141 - initial build for ALT