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
#
2016-01-12 18:21:54 +01:00
# Copyright (c) 2016 SUSE LINUX 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/
#
Name : gbrainy
2016-09-08 15:34:08 +02:00
Version : 2.3.0
2012-02-13 13:31:30 +01:00
Release : 0
2013-01-13 14:14:07 +01:00
Summary : A brain teaser game and trainer
License : GPL-2.0+
Group : Amusements/Games/Logic
2008-02-18 04:32:40 +01:00
Url : http://live.gnome.org/gbrainy
2016-01-12 18:21:54 +01:00
Source : http://gent.softcatala.org/jmas/gbrainy/%{name} -%{version} .tar.gz
2013-01-13 14:14:07 +01:00
# PATCH-FIX-OPENSUSE -- gbrainy-use-libexecdir.patch
Patch0 : gbrainy-use-libexecdir.patch
2016-09-09 00:40:42 +02:00
# PATCH-FIX-UPSTREAM appdata-workaround.patch bgo#770604 mailaender@opensuse.org -- appdata: Directly link to https:// instead of relying on a redirect
2016-09-08 15:34:08 +02:00
Patch1 : appdata-workaround.patch
2013-01-13 14:14:07 +01:00
BuildRequires : fdupes
2010-01-21 13:03:35 +01:00
BuildRequires : gnome-doc-utils-devel
2009-07-31 19:12:35 +02:00
BuildRequires : intltool
2011-02-16 15:14:30 +01:00
BuildRequires : translation-update-upstream
2016-09-08 15:34:08 +02:00
BuildRequires : pkgconfig(gtk-sharp-3.0)
BuildRequires : pkgconfig(libcanberra-gtk3) >= 0.26
BuildRequires : pkgconfig(librsvg-2.0)
BuildRequires : pkgconfig(mono)
BuildRequires : pkgconfig(mono-addins)
2013-01-13 14:14:07 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
BuildArch : noarch
2008-02-18 04:32:40 +01:00
BuildRequires : update-desktop-files
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
2013-01-13 14:14:07 +01:00
%patch0
2016-09-08 15:34:08 +02: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
2011-07-08 13:34:48 +02:00
%configure \
2011-08-11 21:35:03 +02:00
--disable-static
2008-02-18 04:32:40 +01:00
make
%install
2013-01-13 14:14:07 +01:00
%make_install
%suse_update_desktop_file %{name} Game
2011-02-13 21:51:51 +01:00
%find_lang %{name} %{?no_lang_C}
2013-01-13 14:14:07 +01:00
rm -rf %{buildroot} %{_datadir} /pixmaps
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
2013-01-13 14:14:07 +01:00
# 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}
2011-02-13 21:51:51 +01:00
%post
%desktop_database_post
%icon_theme_cache_post
2011-02-14 01:44:02 +01:00
2011-02-13 21:51:51 +01:00
%postun
%desktop_database_postun
%icon_theme_cache_postun
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/
2014-08-09 11:50:41 +02:00
%dir %{_datadir} /appdata
%{_datadir} /appdata/gbrainy.appdata.xml
2008-02-18 04:32:40 +01:00
%{_datadir} /applications/gbrainy.desktop
%{_datadir} /icons/hicolor/*/apps/*
2013-01-13 14:14:07 +01:00
%{_mandir} /man6/gbrainy.6.gz
2008-02-18 04:32:40 +01:00
2011-01-31 22:01:20 +01:00
%files lang -f %{name}.lang
2008-02-18 04:32:40 +01:00
%changelog