diff --git a/fheroes2.spec b/fheroes2.spec index a5aad8d..063c989 100644 --- a/fheroes2.spec +++ b/fheroes2.spec @@ -20,6 +20,8 @@ BuildRequires: pkgconfig(SDL2_mixer) BuildRequires: pkgconfig(SDL2_net) BuildRequires: pkgconfig(SDL2_ttf) BuildRequires: pkgconfig(zlib) +BuildRequires: clang +BuildRequires: cmake %description Free implementation of Heroes of the Might and Magic II engine. @@ -38,9 +40,11 @@ into your /usr/share/games/fheroes2/{maps,data} directories respectively. %prep %setup -q - %build %setup_compile_flags +#cmake +export CXX=clang++ +export CC=clang %make \ WITH_AI=simple \ WITH_SDL2="ON" \ @@ -58,7 +62,7 @@ mkdir -p %{buildroot}%{_datadir}/pixmaps # 2) install what we need where we need it install -pm 755 src/dist/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin install -pm 755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name} -install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/ +#install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/ install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/