Accepting request 507934 from home:okurz:branches:games
Update to build 19; Use more macros; Use ninja for faster build OBS-URL: https://build.opensuse.org/request/show/507934 OBS-URL: https://build.opensuse.org/package/show/games/widelands?expand=0&rev=36
This commit is contained in:
parent
e81417492f
commit
80bbb76ec7
@ -1,20 +0,0 @@
|
|||||||
--- src/logic/expedition_bootstrap.cc.orig 2014-02-25 18:23:49.184906307 +0100
|
|
||||||
+++ src/logic/expedition_bootstrap.cc 2014-02-25 18:24:11.959906892 +0100
|
|
||||||
@@ -180,6 +180,7 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
assert(false); // Never here, otherwise we do not have a queue for this ware.
|
|
||||||
+ return *(wares_[0]).get(); // just something to avoid compiler warning
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<WaresQueue*> ExpeditionBootstrap::wares() const {
|
|
||||||
--- src/scripting/lua_map.cc.orig 2014-02-25 18:24:39.048907588 +0100
|
|
||||||
+++ src/scripting/lua_map.cc 2014-02-25 18:24:51.019907895 +0100
|
|
||||||
@@ -82,6 +82,7 @@
|
|
||||||
return CAST_TO_LUA(Ship);
|
|
||||||
}
|
|
||||||
assert(false); // Never here, hopefully.
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
int upcasted_immovable_to_lua(lua_State * L, BaseImmovable * mo) {
|
|
||||||
if (!mo)
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3
|
|
||||||
size 183443325
|
|
3
widelands-build19-src.tar.bz2
Normal file
3
widelands-build19-src.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e511f9d26828a2b71b64cdfc6674e6e847543b2da73961ab882acca36c7c01a6
|
||||||
|
size 181609391
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 22 07:43:39 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Update to build 19
|
||||||
|
See https://wl.widelands.org/changelog/ for details
|
||||||
|
- Use ninja for faster build
|
||||||
|
- Split out debug package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 22 07:06:49 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Update package description with current description on webpage, more user centric
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 25 17:02:06 UTC 2014 - adrian@suse.de
|
Tue Feb 25 17:02:06 UTC 2014 - adrian@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package widelands
|
# spec file for package widelands
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,23 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define build_launchpad 0
|
|
||||||
|
|
||||||
Name: widelands
|
Name: widelands
|
||||||
Version: build18
|
Version: build19
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Open source realtime-strategy game
|
Summary: Open source realtime-strategy game
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Amusements/Games/Strategy/Other
|
Group: Amusements/Games/Strategy/Other
|
||||||
Url: http://www.widelands.org
|
Url: http://www.widelands.org
|
||||||
Source0: %{name}-%{version}-src.tar.bz2
|
Source: https://launchpad.net/%{name}/%{version}/%{version}/+download/%{name}-%{version}-src.tar.bz2
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
Patch1: fix-return-values.diff
|
BuildRequires: SDL2_gfx-devel
|
||||||
BuildRequires: SDL_gfx-devel
|
BuildRequires: SDL2_image-devel
|
||||||
BuildRequires: SDL_image-devel
|
BuildRequires: SDL2_mixer-devel
|
||||||
BuildRequires: SDL_mixer-devel
|
BuildRequires: SDL2_net-devel
|
||||||
BuildRequires: SDL_net-devel
|
BuildRequires: SDL2_ttf-devel
|
||||||
BuildRequires: SDL_ttf-devel
|
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
@ -40,9 +37,11 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: glew-devel
|
BuildRequires: glew-devel
|
||||||
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
|
BuildRequires: ninja
|
||||||
BuildRequires: optipng
|
BuildRequires: optipng
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
@ -54,17 +53,12 @@ BuildRequires: lua51-devel
|
|||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
%endif
|
%endif
|
||||||
Requires: %{name}-data = %{version}
|
Requires: %{name}-data = %{version}
|
||||||
%if %build_launchpad
|
|
||||||
Source2: launchpad-export.tar.gz
|
|
||||||
# for launchpad translation update
|
|
||||||
Requires: perl
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Widelands is an open source (GPLed), realtime-strategy game, using SDL and
|
Widelands is a free, open source real-time strategy game with singleplayer
|
||||||
other free libraries, which is still under development. Widelands is inspired
|
campaigns and a multiplayer mode. The game was inspired by Settlers II
|
||||||
by Settlers II (Bluebyte) and is partly similar to it, so if you know it, you
|
(Bluebyte) but has significantly more variety and depth to it. Still, it is
|
||||||
perhaps will have a thought, what Widelands is all about.
|
easy to get started through playable tutorials.
|
||||||
|
|
||||||
%package data
|
%package data
|
||||||
Summary: Data files for Widelands
|
Summary: Data files for Widelands
|
||||||
@ -77,22 +71,24 @@ BuildArch: noarch
|
|||||||
%description data
|
%description data
|
||||||
Data files for Widelands. Including localization, maps graphics and music.
|
Data files for Widelands. Including localization, maps graphics and music.
|
||||||
|
|
||||||
|
%package debug
|
||||||
|
Summary: Debugging tools for Widelands
|
||||||
|
Group: Amusements/Games/Strategy/Other
|
||||||
|
|
||||||
|
%description debug
|
||||||
|
Additional debugging data for Widelands. This package is not needed for normal
|
||||||
|
operation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-src
|
%setup -q -n %{name}-%{version}-src
|
||||||
%patch1
|
#
|
||||||
%if %build_launchpad
|
sed -i '/wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=uninitialized")/d' CMakeLists.txt
|
||||||
# for launchpad translation update
|
sed -i 's/\(install(TARGETS ${NAME} DESTINATION \)"."\( COMPONENT ExecutableFiles)\)/\1bin\2/' cmake/WlFunctions.cmake
|
||||||
cd ..
|
|
||||||
tar -xzf %{SOURCE2}
|
|
||||||
find po -name "*.po" |perl -ne 'chomp;$a=$_;$a=~s{/[^/]*-}{/}; rename $_,"widelands/$a";'
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# recreate compile.sh contents here
|
%{__mkdir_p} build/locale
|
||||||
mkdir -p build/locale
|
%define __builder ninja
|
||||||
cd build
|
%cmake \
|
||||||
|
|
||||||
cmake \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DWL_INSTALL_PREFIX=%{_prefix} \
|
-DWL_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DWL_INSTALL_BINDIR=bin \
|
-DWL_INSTALL_BINDIR=bin \
|
||||||
@ -101,19 +97,21 @@ cmake \
|
|||||||
-DCMAKE_BUILD_TYPE="Release" \
|
-DCMAKE_BUILD_TYPE="Release" \
|
||||||
-DBoost_USE_STATIC_LIBS=OFF \
|
-DBoost_USE_STATIC_LIBS=OFF \
|
||||||
..
|
..
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
%cmake_install
|
||||||
make DESTDIR=%{buildroot} install
|
|
||||||
cd ..
|
|
||||||
for i in 16 32 48 64 128; do
|
for i in 16 32 48 64 128; do
|
||||||
install -D -m 0644 pics/wl-ico-${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
|
install -D -m 0644 data/images/logos/wl-ico-${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
|
||||||
done
|
done
|
||||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
%suse_update_desktop_file %{name}
|
%suse_update_desktop_file %{name}
|
||||||
%fdupes %{buildroot}%{_datadir}
|
%fdupes %{buildroot}%{_datadir}
|
||||||
%find_lang %{name} --all-name
|
%find_lang %{name} --all-name
|
||||||
|
rm -f %{buildroot}%{_prefix}/{COPYING,CREDITS,ChangeLog,VERSION}
|
||||||
|
|
||||||
|
# No need to execute tests as they are already executed implicitly on install
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -141,4 +139,8 @@ install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.deskt
|
|||||||
%dir %{_datadir}/%{name}/locale/*/LC_MESSAGES
|
%dir %{_datadir}/%{name}/locale/*/LC_MESSAGES
|
||||||
%{_datadir}/%{name}/[^l]*
|
%{_datadir}/%{name}/[^l]*
|
||||||
|
|
||||||
|
%files debug
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/wl_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user