From 5184db9d83d4383a35fc5d6458d00172acb79aa9a15c1f4f1c954bb5f1089b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 25 Nov 2012 19:39:19 +0000 Subject: [PATCH] Accepting request 142710 from home:worldcitizen:branches:games Quick n lazy lua fix Added a gcc47 patch OBS-URL: https://build.opensuse.org/request/show/142710 OBS-URL: https://build.opensuse.org/package/show/games/widelands?expand=0&rev=32 --- widelands-build17-gcc47.diff | 12 ++++++++ widelands.changes | 6 ++++ widelands.spec | 59 +++++++++++++++++++++--------------- 3 files changed, 52 insertions(+), 25 deletions(-) create mode 100644 widelands-build17-gcc47.diff diff --git a/widelands-build17-gcc47.diff b/widelands-build17-gcc47.diff new file mode 100644 index 0000000..98adac8 --- /dev/null +++ b/widelands-build17-gcc47.diff @@ -0,0 +1,12 @@ +diff -Naur widelands-build17-src.orig/src/main.cc widelands-build17-src/src/main.cc +--- widelands-build17-src.orig/src/main.cc 2012-04-23 11:46:49.000000000 +0200 ++++ widelands-build17-src/src/main.cc 2012-11-24 19:07:53.000000000 +0100 +@@ -31,6 +31,8 @@ + + #include + ++#include ++ + #ifndef WIN32 + #include + #include diff --git a/widelands.changes b/widelands.changes index 3e26bc6..18b33f4 100644 --- a/widelands.changes +++ b/widelands.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Nov 24 17:59:02 UTC 2012 - joop.boonen@opensuse.org + +- Quick n lazy lua fix +- Added a gcc47 patch + ------------------------------------------------------------------- Sat May 5 19:26:16 UTC 2012 - opensuse@dstoecker.de diff --git a/widelands.spec b/widelands.spec index c0c0956..5455a83 100644 --- a/widelands.spec +++ b/widelands.spec @@ -20,41 +20,48 @@ Name: widelands Version: build17 -Release: 1 +Release: 0 Summary: Open source realtime-strategy game +License: GPL-2.0+ Group: Amusements/Games/Strategy/Other -License: GPLv2+ -URL: http://www.widelands.org -Source0: %name-%{version}-src.tar.bz2 +Url: http://www.widelands.org +Source0: %{name}-%{version}-src.tar.bz2 Source1: %{name}.desktop -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: gcc-c++ -BuildRequires: boost-devel -BuildRequires: SDL_mixer-devel +BuildRequires: SDL_gfx-devel BuildRequires: SDL_image-devel +BuildRequires: SDL_mixer-devel BuildRequires: SDL_net-devel BuildRequires: SDL_ttf-devel -BuildRequires: SDL_gfx-devel -BuildRequires: libpng-devel -BuildRequires: libjpeg-devel -BuildRequires: libtiff-devel -BuildRequires: zlib-devel -BuildRequires: lua-devel -BuildRequires: python-devel +BuildRequires: boost-devel BuildRequires: cmake -BuildRequires: gettext -BuildRequires: optipng -BuildRequires: fdupes BuildRequires: doxygen +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: gettext BuildRequires: glew-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: optipng +BuildRequires: python-devel BuildRequires: update-desktop-files +BuildRequires: zlib-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} >= 1220 +BuildRequires: lua51-devel +%else +BuildRequires: lua-devel +%endif Requires: %{name}-data = %{version} %if %build_launchpad +Source2: launchpad-export.tar.gz # for launchpad translation update Requires: perl -Source2: launchpad-export.tar.gz %endif +# PATCH-FIX-UPSTREAM widelands-build17_boostfix.diff Patch1: widelands-build17_boostfix.diff +# PATCH-FIX-UPSTREAM widelands-build17-gcc47.diff +Patch2: widelands-build17-gcc47.diff %description Widelands is an open source (GPLed), realtime-strategy game, using SDL and @@ -64,6 +71,7 @@ perhaps will have a thought, what Widelands is all about. %package data Summary: Data files for Widelands +Group: Amusements/Games/Strategy/Other Requires: %{name} = %{version} %if 0%{?suse_version} >= 1120 BuildArch: noarch @@ -73,12 +81,13 @@ BuildArch: noarch Data files for Widelands. Including localization, maps graphics and music. %prep -%setup -q -n %{name}-%version-src +%setup -q -n %{name}-%{version}-src %patch1 -p1 +%patch2 -p1 %if %build_launchpad # for launchpad translation update cd .. -tar -xzf %SOURCE2 +tar -xzf %{SOURCE2} find po -name "*.po" |perl -ne 'chomp;$a=$_;$a=~s{/[^/]*-}{/}; rename $_,"widelands/$a";' %endif @@ -100,14 +109,14 @@ make %{?_smp_mflags} %install cd build -make DESTDIR=$RPM_BUILD_ROOT install +make DESTDIR=%{buildroot} install cd .. for i in 16 32 48 64 128; do - install -D -m 0644 pics/wl-ico-${i}.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png + install -D -m 0644 pics/wl-ico-${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png done -install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop +install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop %suse_update_desktop_file %{name} -%fdupes $RPM_BUILD_ROOT%{_datadir} +%fdupes %{buildroot}%{_datadir} %find_lang %{name} --all-name %files