Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37039744
en ru br
Репозитории ALT
S:1.1-alt2.20230624
5.1: b13-alt1
4.1: b12-alt1
www.altlinux.org/Changes

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

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

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name: widelands
Version: 1.1
Release: alt2.20230624
Epoch: 1

Summary: Open source realtime-strategy game
License: GPLv2+
Group: Games/Strategy

Url: http://www.widelands.org
Source: %name-%version.tar

BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libSDL2-devel
BuildRequires: libSDL2_image-devel
BuildRequires: libSDL2_mixer-devel
BuildRequires: libSDL2_ttf-devel
BuildRequires: boost-program_options-devel >= 1.48.0
BuildRequires: boost-signals-devel
BuildRequires: boost-asio-devel
BuildRequires: ctags
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: libglew-devel
BuildRequires: libpng-devel
BuildRequires: libcurl-devel
BuildRequires: libicu-devel
BuildRequires: asio-devel
BuildRequires: ctest
BuildRequires: python3
BuildRequires: doxygen

%description
Widelands is an open source (GPLed), realtime-strategy game, using SDL and
other free libraries, which is still under development. Widelands is inspired
by Settlers II (Bluebyte) and is partly similar to it, so if you know it,
you perhaps will have a thought what Widelands is all about.

%prep
%setup
%autopatch -p1
%ifarch %e2k
# unsupported as of lcc 1.26.18 (mcst#7644)
sed -i '/-fno-elide-constructors/d' CMakeLists.txt
%endif

%build
%cmake \
   -DCMAKE_BUILD_TYPE=Release \
   -DCMAKE_INSTALL_PREFIX=%prefix \
   -DWL_INSTALL_BINDIR=%_bindir \
   -DWL_INSTALL_BASEDIR=%_datadir/%name \
   -DWL_INSTALL_DATADIR=%_datadir/%name \
   -DOPTION_BUILD_WEBSITE_TOOLS=OFF

%cmake_build

%install
%cmake_install

# Validate desktop file (provided by upstream)

desktop-file-validate %buildroot%_desktopdir/*.desktop

# Validate appdata (provided by upstream)

appstream-util validate-relax --nonet %buildroot%_datadir/metainfo/*.appdata.xml

%files
%doc ChangeLog CREDITS
%_man6dir/widelands.6.*
%_bindir/%name
%_iconsdir/hicolor/*/apps/*.png
%_datadir/metainfo/*.appdata.xml
%_desktopdir/*.desktop
%_datadir/%name

%changelog

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

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