SHA256
1
0
forked from pool/gbrainy

Accepting request 148276 from GNOME:Apps

Leaf package / Build fix for Factory.
The update addresses several other things and was much easier to fix for mono 3...

OBS-URL: https://build.opensuse.org/request/show/148276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gbrainy?expand=0&rev=42
This commit is contained in:
Stephan Kulow 2013-01-14 08:40:43 +00:00 committed by Git OBS Bridge
commit 3b7facb401
5 changed files with 92 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:19d0eafcc50935fd711cc86c43ce7e2396847fd4516fb9fd54cb9f8402127c1f
size 2355627

View File

@ -0,0 +1,16 @@
Index: src/Core/Libraries/CSharpCompiler.cs
===================================================================
--- src/Core/Libraries/CSharpCompiler.cs.orig
+++ src/Core/Libraries/CSharpCompiler.cs
@@ -44,10 +44,7 @@ namespace gbrainy.Core.Libraries
public CSharpCompiler ()
{
- CompilerSettings settings = new CompilerSettings ();
- Report report = new Report (new NullReportPrinter ());
-
- evaluator = new Evaluator (settings, report);
+ evaluator = new Evaluator (new CompilerContext (new CompilerSettings (), new NullReportPrinter ()));
}
public void EvaluateCode (string code)

3
gbrainy-2.1.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29b6b926410c4aee78a68115e293bb6c8436021212a81ac5cdb71c2669a114a6
size 2629526

View File

@ -1,3 +1,47 @@
-------------------------------------------------------------------
Tue Jan 8 11:52:24 UTC 2013 - gankov@opensuse.org
- Update to version 2.1.5:
+ Remove code to handle low resolutions, let the system to decide
+ Some new verbal analogies
+ Updated translations.
- Changes from 2.1.4:
+ Bugs fixed: bgo#676211·
+ Updated translations.
- Changes from 2.1.3:
+ In memory count dots puzzle, we were not painting all dots in
some cases plus we were always asking for the red dot color in
the question instead of random
+ Updated translations.
- Changes from 2.1.2:
+ Allow to set the time to memorize a question below 4 for very
advanced players
+ Text should be plural in the sentence
+ Bugs fixed: bgo#655725, bgo#669105, bgo#669102, bgo#669099,
bgo#669106, bgo#669104.
+ Updated translations.
- Changes from 2.1.1:
+ The correct answer for the Average game was always the smaller
option
+ Updated translations.
- Changes from 2.1.0:
+ Software improvements
- Refactoring to break down responsibilities in classes and
make code more modular
- Automated “Assembly / package versioning”
+ Existing games improvements
- Mouse support for Memorize figures and text
- Show graphically the answer in square sheets puzzle
- Add rationale to handshake puzzle
- People at the table has a better graphic
- Some controls in games handle better larger texts
+ Updated translations.
- Add patch gbrainy-2.1.5-CSharpCompiler.patch - fix build for
mono-3.0
- Use spec-cleaner
- Use fdupes
- Fix executable permission on gbrainy.exe.config
-------------------------------------------------------------------
Mon Feb 13 10:46:36 UTC 2012 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package gbrainy
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,13 +17,18 @@
Name: gbrainy
Version: 2.06
Version: 2.1.5
Release: 0
Source: http://gent.softcatala.org/jmas/gbrainy/%{name}-%{version}.tar.gz
Patch: gbrainy-use-libexecdir.patch
Summary: A brain teaser game and trainer
License: GPL-2.0+
Group: Amusements/Games/Logic
Url: http://live.gnome.org/gbrainy
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: http://gent.softcatala.org/jmas/gbrainy/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE -- gbrainy-use-libexecdir.patch
Patch0: gbrainy-use-libexecdir.patch
# PATCH-FIX-UPSTREAM gbrainy-2.1.5-CSharpCompiler.patch - gankov@opensuse.org -- simple fix build for mono-3.0 because Evaluator API is changed.
Patch1: gbrainy-2.1.5-CSharpCompiler.patch
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtk-sharp2
BuildRequires: intltool
@ -31,9 +36,8 @@ BuildRequires: librsvg-devel
BuildRequires: mono-addins
BuildRequires: mono-devel
BuildRequires: translation-update-upstream
Summary: A brain teaser game and trainer
License: GPL-2.0+
Group: Amusements/Games/Logic
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%else
@ -66,7 +70,10 @@ It provides the following types of games:
%prep
%setup -q
translation-update-upstream
%patch
%patch0
%if 0%{?suse_version} > 1220
%patch1
%endif
%lang_package
@ -77,17 +84,23 @@ export MONO_SHARED_DIR=/var/tmp
make
%install
%makeinstall
%suse_update_desktop_file %name Game
%make_install
%suse_update_desktop_file %{name} Game
%find_lang %{name} %{?no_lang_C}
rm -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps
rm -rf %{buildroot}%{_datadir}/pixmaps
## It's not the right size: 32x32
#rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gbrainy.png
#rm -rf %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gbrainy.png
# There are no extensions yet, Thus creating a -devel package sounds overkill (file can't reside in noarch package).
rm %{buildroot}%{_libdir}/pkgconfig/gbrainy.pc
# When below tests fail, we can now remove the chmod
test -x %{buildroot}%{_libexecdir}/%{name}/gbrainy.exe.config
chmod -x %{buildroot}%{_libexecdir}/%{name}/gbrainy.exe.config
%fdupes -s %{buildroot}
%clean
rm -rf "$RPM_BUILD_ROOT"
rm -rf %{buildroot}
%if 0%{?suse_version} > 1130
@ -115,7 +128,7 @@ rm -rf "$RPM_BUILD_ROOT"
%{_datadir}/games/gbrainy/
%{_datadir}/applications/gbrainy.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/man/man6/gbrainy.6.gz
%{_mandir}/man6/gbrainy.6.gz
%files lang -f %{name}.lang