Name: vcmi Summary: Heroes of Might and Magic 3 game engine Version: 0.99 Release: 2%{?dist} License: GPLv2+ URL: https://vcmi.eu/ Source: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz # Absolutely disgusting and untested patch for compatibility with Boost 1.66 # Courtesy of Robert-André Mauchin during the review # Sent upstream via https://github.com/vcmi/vcmi/pull/285#issuecomment-370504722 Patch1: %{name}-boost-1.66.patch # Enable extra resolutions # https://forum.vcmi.eu/t/where-is-the-mod-for-resolutions-other-than-800x600/897/5 # https://www.dropbox.com/sh/fwor43x5xrgzx6q/AABpTFqGK7Q9almbyr3hp9jma/mods/vcmi.zip (not directly downloadable) Source2: %{name}.zip Patch2: %{name}-mods.patch BuildRequires: %{_bindir}/desktop-file-validate BuildRequires: %{_bindir}/dos2unix BuildRequires: cmake BuildRequires: gcc-c++ >= 4.7.2 BuildRequires: SDL2-devel BuildRequires: SDL2_image-devel BuildRequires: SDL2_ttf-devel BuildRequires: SDL2_mixer-devel BuildRequires: boost >= 1.51 BuildRequires: boost-devel >= 1.51 BuildRequires: boost-filesystem >= 1.51 BuildRequires: boost-iostreams >= 1.51 BuildRequires: boost-system >= 1.51 BuildRequires: boost-thread >= 1.51 BuildRequires: boost-program-options >= 1.51 BuildRequires: boost-locale >= 1.51 BuildRequires: zlib-devel BuildRequires: ffmpeg-devel BuildRequires: ffmpeg-libs BuildRequires: qt5-qtbase-devel Requires: hicolor-icon-theme Requires: %{name}-data = %{version}-%{release} %description The purpose of VCMI project is to rewrite entire Heroes 3.5: WoG engine from scratch, giving it new and extended possibilities. It will help to support mods and new towns already made by fans but abandoned because of game code limitations. In its current state it already supports maps of any sizes, higher resolutions and extended engine limits. %package data Summary: Data files for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description data Data files for the VCMI project, a %{summary}. %prep %setup -q -a2 %patch1 -p1 # mods from Source2: mv vcmi/Mods/* Mods && rm -rf vcmi %patch2 -p1 dos2unix README.md README.linux license.txt AUTHORS ChangeLog %build %cmake -DENABLE_TEST=0 -UCMAKE_INSTALL_LIBDIR %ifarch %{ix86} x86_64 %make_build %else # not enough memory in Koji for parallel build make %endif %install %make_install %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %ldconfig_scriptlets %files %doc README.md README.linux AUTHORS ChangeLog %license license.txt %{_bindir}/vcmiclient %{_bindir}/vcmiserver %{_bindir}/vcmibuilder %{_bindir}/vcmilauncher %{_libdir}/%{name}/* # keep this in the main package, because GNOME Software etc. %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/apps/vcmiclient.png # don't need devel and static packages until requested %exclude %{_includedir}/fl %exclude %{_libdir}/*.a %files data %{_datadir}/%{name}/ %changelog * Sun Mar 04 2018 Miro Hrončok - 0.99-2 - Add mods for extra resolutions - Add %%check with desktop file checking - Require hicolor-icon-theme and don't own the hicolor dirs - Fix dos line ends - Change description and summary - Use cmake and make macros - Exclude files instead of not terminating build on unpackaged files - Add Patch1 for Boost 1.66 compatibility - Split noarch data into a subpackage - Own /usr/share/vcmi/ * Tue Nov 01 2016 VCMI - 0.99-1 - New upstream release