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
|
|
|
#
|
2013-01-13 14:14:07 +01:00
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gbrainy
|
2013-06-24 18:10:51 +02:00
|
|
|
Version: 2.2.1
|
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
|
2013-01-13 14:14:07 +01:00
|
|
|
Source: http://gent.softcatala.org/jmas/gbrainy/%{name}-%{version}.tar.gz
|
|
|
|
# PATCH-FIX-OPENSUSE -- gbrainy-use-libexecdir.patch
|
|
|
|
Patch0: gbrainy-use-libexecdir.patch
|
|
|
|
BuildRequires: fdupes
|
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-addins
|
2012-02-13 13:31:30 +01:00
|
|
|
BuildRequires: mono-devel
|
2011-02-16 15:14:30 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2013-04-19 10:42:47 +02:00
|
|
|
BuildRequires: pkgconfig(libcanberra-gtk) >= 0.26
|
2013-01-13 14:14:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2008-02-18 04:32:40 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%else
|
|
|
|
%define suse_update_desktop_file true
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
2011-07-08 13:34:48 +02:00
|
|
|
BuildRequires: gtk-sharp2-devel
|
2008-02-18 04:32:40 +01:00
|
|
|
%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
|
2013-01-13 14:14:07 +01:00
|
|
|
%patch0
|
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
|
2011-07-02 13:05:33 +02:00
|
|
|
## It's not the right size: 32x32
|
2013-01-13 14:14:07 +01:00
|
|
|
#rm -rf %{buildroot}%{_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
|
|
|
|
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}
|
|
|
|
|
2008-02-18 04:32:40 +01:00
|
|
|
%clean
|
2013-01-13 14:14:07 +01:00
|
|
|
rm -rf %{buildroot}
|
2008-02-18 04:32:40 +01:00
|
|
|
|
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/*
|
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
|