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
|
|
|
#
|
2023-01-12 04:34:03 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2018-10-08 15:44:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-02-18 04:32:40 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gbrainy
|
2023-01-12 04:34:03 +01:00
|
|
|
Version: 2.4.6
|
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
|
2018-03-12 11:49:54 +01:00
|
|
|
License: GPL-2.0-or-later
|
2013-01-13 14:14:07 +01:00
|
|
|
Group: Amusements/Games/Logic
|
2018-03-12 11:49:54 +01:00
|
|
|
URL: https://wiki.gnome.org/Apps/gbrainy
|
2017-11-06 12:07:34 +01:00
|
|
|
Source: https://gent.softcatala.org/jmas/gbrainy/%{name}-%{version}.tar.gz
|
2022-12-05 09:52:11 +01:00
|
|
|
# PATCH-FIX-OPENSUSE -- gbrainy-use-libexecdir.patch
|
|
|
|
Patch0: gbrainy-use-libexecdir.patch
|
2013-01-13 14:14:07 +01:00
|
|
|
BuildRequires: fdupes
|
2009-07-31 19:12:35 +02:00
|
|
|
BuildRequires: intltool
|
2016-11-03 20:08:56 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: yelp-tools
|
2017-11-06 12:07:34 +01:00
|
|
|
BuildRequires: pkgconfig(gtk-sharp-3.0) >= 2.99.1
|
2016-09-08 15:34:08 +02:00
|
|
|
BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.26
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
2016-11-03 20:08:56 +01:00
|
|
|
BuildRequires: pkgconfig(mono) >= 4.0.0
|
2011-01-31 22:01:20 +01:00
|
|
|
# For the help system to work, we require a ghelp:// URI handler.
|
|
|
|
Recommends: mimehandler(x-scheme-handler/ghelp)
|
2016-11-03 20:08:56 +01:00
|
|
|
BuildArch: noarch
|
2018-03-12 11:49:54 +01:00
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
BuildRequires: translation-update-upstream
|
|
|
|
%endif
|
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
|
2019-03-22 17:50:31 +01:00
|
|
|
%autosetup -p1
|
2017-11-06 12:07:34 +01:00
|
|
|
%if !0%{?is_opensuse}
|
2011-02-16 15:14:30 +01:00
|
|
|
translation-update-upstream
|
2022-05-19 08:58:32 +02:00
|
|
|
%endif
|
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
|
2016-11-03 20:08:56 +01:00
|
|
|
export MONO_SHARED_DIR=%{_localstatedir}/tmp
|
2011-07-08 13:34:48 +02:00
|
|
|
%configure \
|
2019-03-23 14:17:54 +01:00
|
|
|
--disable-static \
|
2019-03-22 17:50:31 +01:00
|
|
|
%{nil}
|
2023-01-12 04:34:03 +01:00
|
|
|
%make_build
|
2008-02-18 04:32:40 +01:00
|
|
|
|
|
|
|
%install
|
2013-01-13 14:14:07 +01:00
|
|
|
%make_install
|
2011-02-13 21:51:51 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2017-11-06 12:07:34 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2013-01-13 14:14:07 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/pixmaps
|
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
|
|
|
|
|
2011-01-31 22:01:20 +01:00
|
|
|
%files
|
2018-03-12 11:49:54 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README
|
|
|
|
%doc %{_datadir}/help/C/%{name}/
|
2016-11-03 20:08:56 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/
|
|
|
|
%{_datadir}/games/%{name}/
|
2018-03-12 11:49:54 +01:00
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
%{_datadir}/metainfo/%{name}.appdata.xml
|
2016-11-03 20:08:56 +01:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2008-02-18 04:32:40 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
2016-11-03 20:08:56 +01:00
|
|
|
%{_mandir}/man6/%{name}.6%{?ext_man}
|
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
|