Updated to release 0.9.2 (bumping epoch because the old version number was 20150413), udpated S4 and BReqs

This commit is contained in:
Giovanni Mariani 2021-04-15 17:10:42 +02:00
parent 71611a3442
commit c5ca7fe157
3 changed files with 25 additions and 23 deletions

View file

@ -1,2 +1,3 @@
sources:
fheroes2-src-r3277.tar.bz2: e744d471597170b50b8105ee5292bec05c7475cf
fheroes2-0.9.2.tar.gz: e74bdfea2b7e093a86595b3884fa74950fecb6c0
fheroes2.png: 29369e838940593d9fe23321903f40d58f4f1d6c

View file

@ -1,7 +1,7 @@
[Desktop Entry]
Name=Free Heroes 2
Comment=Heroes Of Might And Magic 2 Engine
Exec=/usr/games/fheroes2
Exec=fheroes2
Icon=fheroes2
StartupNotify=true
Terminal=false

View file

@ -1,24 +1,23 @@
%define rev r3277
Summary: Free implementation of Heroes of the Might and Magic II engine
Name: fheroes2
Version: 20150413
Release: 2
Epoch: 1
Version: 0.9.2
Release: 1
License: GPLv2+
Group: Games/Strategy
Url: http://sourceforge.net/projects/fheroes2/
Source0: %{name}-src-%{rev}.tar.bz2
Url: https://ihhub.github.io/fheroes2/
Source0: https://github.com/ihhub/fheroes2/archive/refs/tags/%{name}-%{version}.tar.gz
Source2: fheroes2.sh
Source3: fheroes2.png
Source4: fheroes2.desktop
Source5: fheroes2.cfg
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(SDL_net)
BuildRequires: pkgconfig(SDL_ttf)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(SDL2_net)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(zlib)
%description
@ -27,35 +26,37 @@ You need to copy files from data and maps directories from original game
into your /usr/share/games/fheroes2/{maps,data} directories respectively.
%files
%doc AUTHORS changelog.txt COPYING LICENSE README
%doc changelog.txt LICENSE README.md
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_gamesdatadir}/%{name}
#----------------------------------------------------------------------------
%prep
%setup -qn %{name}-src-%{rev}/fheroes2
%setup -q
%build
cd src
%setup_compile_flags
%make \
WITH_AI=simple \
WITH_SDL2="ON" \
CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"
%install
# let's create directory structure...
# No automated install:
# 1) Create directory structure
mkdir -p %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
# and install what we need where we need it to be...
install -pm755 src/dist/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin
install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
# 2) install what we need where we need
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 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop