Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37531205
en ru br
ALT Linux repositórios
S:1.1-alt2.20230624
5.0: b12-alt1
4.1: b12-alt1

Group :: Jogos/Estratégia
RPM: widelands

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009