This commit is contained in:
Sergey Zhemoytel 2024-07-13 14:02:58 +00:00
parent 4a9174da26
commit 9de62ebf40
2 changed files with 12 additions and 11 deletions

View file

@ -1,3 +1,3 @@
sources:
fheroes2-1.1.0.tar.gz: 07ea5253244b6660a52cea9c12ebbb648d449485
fheroes2-1.1.1.tar.gz: d615af11e18575dd6fd3e1081261cfb4f8410a4a
fheroes2.png: 29369e838940593d9fe23321903f40d58f4f1d6c

View file

@ -1,15 +1,16 @@
%global optflags %(echo %{optflags} | sed -e 's/-ffat-lto-objects//g' -e 's/-fvar-tracking-assignments//g' -e 's/-Wa,--compress-debug-sections//g' )
%define llvmver llvm17
%define _llvmdir /opt/%{llvmver}
Summary: Free implementation of Heroes of the Might and Magic II engine
Name: fheroes2
Epoch: 1
Version: 1.1.0
Version: 1.1.1
Release: 1
License: GPLv2+
Group: Games/Strategy
URL: https://ihhub.github.io/fheroes2/
Source0: https://github.com/ihhub/fheroes2/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
URL: https://ihhub.github.io/fheroes2
Source0: https://github.com/ihhub/fheroes2/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1000: %{name}.rpmlintrc
Source2: fheroes2.sh
Source3: fheroes2.png
@ -24,8 +25,7 @@ BuildRequires: pkgconfig(SDL2_net)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: clang
BuildRequires: llvm
BuildRequires: %{llvmver}
BuildRequires: cmake >= 3.20
BuildRequires: stdc++-gcc10-devel
@ -49,10 +49,11 @@ into your /usr/share/games/fheroes2/{maps,data} directories respectively.
%setup -q
%build
export CC=clang
export CXX=clang++
export AR=llvm-ar
export NM=llvm-nm
export CC=%{_llvmdir}/bin/clang
export CXX=%{_llvmdir}/bin/clang++
export AR=%{_llvmdir}/bin/llvm-ar
export NM=%{_llvmdir}/bin/llvm-nm
export LLD=%{_llmdir}/bin/lld
export READELF=readelf
export LDFLAGS="-lstdc++-gcc10"