Репозиторий Sisyphus
Последнее обновление: 25 января 2021 | Пакетов: 17782 | Посещений: 20135112
en ru br
Репозитории ALT
S:0.8.4-alt1.20201223
www.altlinux.org/Changes

Группа :: Игры/Стратегия
Пакет: fheroes2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_with sdl2
%define rev 20201223
Name: fheroes2
Epoch: 2
Version: 0.8.4
Release: alt1.%rev
Summary: Free implementation of Heroes of the Might and Magic II engine
License: GPLv2+
Group: Games/Strategy
#Url: http://sourceforge.net/projects/fheroes2/
Url: https://github.com/ihhub/fheroes2

Source: %name-%version.tar
Source2: %name.sh
Source3: %name.png
Source4: %name.desktop

# Automatically added by buildreq on Wed Oct 03 2012

# optimized out: libSDL-devel libstdc++-devel zlib-devel
BuildRequires: gcc-c++ libogg-devel libfreetype-devel libpng-devel
%if_with sdl2
BuildRequires: libSDL2_image-devel libSDL2_mixer-devel libSDL2_net-devel libSDL2_ttf-devel
%else
BuildRequires: libSDL_image-devel libSDL_mixer-devel libSDL_net-devel libSDL_ttf-devel
%endif

%description
Free implementation of Heroes of the Might and Magic II engine.
You need to copy files from data and maps directories from original game
into your /usr/share/games/fheroes2/{maps,data} directories respectively

%prep
%setup -q

%build
%if_with sdl2
export WITH_SDL2="ON"
%endif
# Makefile hardwires AI resulting in non-fighting opponents
%make_build WITH_AI=simple CONFIGURE_FHEROES2_DATA="%_gamesdatadir/%name/"

%install
# let's create directory structure...
mkdir -p %buildroot{%_bindir,%_niconsdir,%_desktopdir,%_docdir/%name,%_gamesdatadir/%name/{data,maps}}

# and install what we need where we need it to be...

install -pm755 %name %buildroot%_bindir/%name.bin
install -pm755 %SOURCE2 %buildroot%_bindir/%name
mv files/ %buildroot%_gamesdatadir/%name/
install -pm 644 %name.key %buildroot%_gamesdatadir/%name/
install -pm 644 %SOURCE3 %buildroot%_niconsdir/%name.png
install -pm 644 %SOURCE4 %buildroot%_desktopdir/%name.desktop
install -pm 644 {CONTRIBUTING.md,changelog.txt,LICENSE,README.md} %buildroot%_docdir/%name/

%files
%_bindir/*
%_niconsdir/%name.png
%_desktopdir/%name.desktop
%_docdir/%name
%_gamesdatadir/%name


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin