2008-02-18 04:32:40 +01:00
|
|
|
#
|
2011-01-15 01:28:35 +01:00
|
|
|
# spec file for package gbrainy
|
2008-02-18 04:32:40 +01:00
|
|
|
#
|
2011-01-15 01:28:35 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-02-18 04:32:40 +01:00
|
|
|
#
|
2008-08-14 01:56:47 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-02-18 04:32:40 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: gbrainy
|
2011-01-14 09:55:25 +01:00
|
|
|
Version: 1.61
|
2011-02-14 01:44:02 +01:00
|
|
|
Release: 3
|
2009-12-08 10:21:30 +01:00
|
|
|
License: GPLv2+
|
2008-02-18 04:32:40 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-01-21 13:03:35 +01:00
|
|
|
Patch: gbrainy-use-libexecdir.patch
|
2011-01-14 09:55:25 +01:00
|
|
|
# PATCH-FIX-UPSTREAM gbrainy-fix-build.patch vuntz@opensuse.org -- Taken from git, to fix build with mono 2.8
|
|
|
|
Patch1: gbrainy-fix-build.patch
|
2008-02-18 04:32:40 +01:00
|
|
|
PreReq: filesystem
|
|
|
|
Url: http://live.gnome.org/gbrainy
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-21 13:03:35 +01:00
|
|
|
BuildRequires: gnome-doc-utils-devel
|
2009-07-31 19:12:35 +02:00
|
|
|
BuildRequires: gtk-sharp2
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: librsvg-devel
|
|
|
|
BuildRequires: mono-devel
|
|
|
|
BuildRequires: mono-addins
|
2011-02-16 15:14:30 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2008-02-18 04:32:40 +01:00
|
|
|
Group: Amusements/Games/Logic
|
2010-01-21 13:03:35 +01:00
|
|
|
Summary: A brain teaser game and trainer
|
2008-02-18 04:32:40 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: glade-sharp2 gnome-sharp2
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%else
|
|
|
|
%define suse_update_desktop_file true
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: gnome-sharp-devel gtk-sharp2-devel
|
|
|
|
%endif
|
2011-01-31 22:01:20 +01:00
|
|
|
Recommends: %{name}-lang
|
|
|
|
# For the help system to work, we require a ghelp:// URI handler.
|
|
|
|
Recommends: mimehandler(x-scheme-handler/ghelp)
|
2008-02-18 04:32:40 +01:00
|
|
|
|
|
|
|
%description
|
2010-01-21 13:03:35 +01:00
|
|
|
gbrainy is a brain teaser game and trainer to have fun and to keep
|
|
|
|
your brain trained.
|
2008-02-18 04:32:40 +01:00
|
|
|
|
2010-01-21 13:03:35 +01:00
|
|
|
It provides the following types of games:
|
|
|
|
|
|
|
|
* Logic puzzles. Games designed to challenge your reasoning and
|
|
|
|
thinking skills.
|
2008-02-18 04:32:40 +01:00
|
|
|
|
|
|
|
* Mental calculation. Games based on arithmetical operations
|
2010-01-21 13:03:35 +01:00
|
|
|
designed to prove your mental calculation skills.
|
|
|
|
|
|
|
|
* Memory trainers. Games designed to challenge your short term
|
|
|
|
memory.
|
2008-02-18 04:32:40 +01:00
|
|
|
|
2010-01-21 13:03:35 +01:00
|
|
|
* Verbal analogies. Games that challenge your verbal aptitude.
|
2008-02-18 04:32:40 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-02-16 15:14:30 +01:00
|
|
|
translation-update-upstream
|
2008-02-18 04:32:40 +01:00
|
|
|
%patch
|
2011-01-14 09:55:25 +01:00
|
|
|
%patch1 -p1
|
2008-02-18 04:32:40 +01:00
|
|
|
|
2011-01-31 22:01:20 +01:00
|
|
|
%lang_package
|
2011-02-02 02:12:36 +01:00
|
|
|
|
2008-02-18 04:32:40 +01:00
|
|
|
%build
|
|
|
|
export MONO_SHARED_DIR=/var/tmp
|
2009-12-08 10:21:30 +01:00
|
|
|
%configure --disable-static
|
2008-02-18 04:32:40 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
2009-07-31 19:12:35 +02:00
|
|
|
%makeinstall
|
2008-02-18 04:32:40 +01:00
|
|
|
%suse_update_desktop_file %name Game
|
2011-02-13 21:51:51 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2008-02-18 04:32:40 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
2009-07-31 19:12:35 +02:00
|
|
|
# It's not the right size: 32x32
|
2008-02-18 04:32:40 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gbrainy.png
|
2010-04-02 23:23:53 +02:00
|
|
|
# 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
|
2008-02-18 04:32:40 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
2011-02-13 21:51:51 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
2011-02-14 01:44:02 +01:00
|
|
|
|
2011-02-13 21:51:51 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1130
|
2011-02-14 01:44:02 +01:00
|
|
|
|
2011-02-13 21:51:51 +01:00
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
|
|
|
|
2011-01-31 22:01:20 +01:00
|
|
|
%files
|
2008-02-18 04:32:40 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS NEWS README COPYING
|
2011-02-13 21:51:51 +01:00
|
|
|
%dir %{_datadir}/gnome/
|
|
|
|
%dir %{_datadir}/gnome/help/
|
2011-01-31 22:01:20 +01:00
|
|
|
%dir %{_datadir}/gnome/help/gbrainy/
|
|
|
|
%doc %{_datadir}/gnome/help/gbrainy/C/
|
2008-02-18 04:32:40 +01:00
|
|
|
%{_bindir}/gbrainy
|
2010-01-21 13:03:35 +01:00
|
|
|
%{_libexecdir}/gbrainy/
|
|
|
|
%{_datadir}/games/gbrainy/
|
2008-02-18 04:32:40 +01:00
|
|
|
%{_datadir}/applications/gbrainy.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_datadir}/man/man6/gbrainy.6.gz
|
|
|
|
|
2011-01-31 22:01:20 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2008-02-18 04:32:40 +01:00
|
|
|
%changelog
|