20f2b40e9e
Update to ver 2.2.1, and drop an upstream fixed patch OBS-URL: https://build.opensuse.org/request/show/180672 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gbrainy?expand=0&rev=55
132 lines
3.6 KiB
RPMSpec
132 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package gbrainy
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gbrainy
|
|
Version: 2.2.1
|
|
Release: 0
|
|
Summary: A brain teaser game and trainer
|
|
License: GPL-2.0+
|
|
Group: Amusements/Games/Logic
|
|
Url: http://live.gnome.org/gbrainy
|
|
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
|
|
BuildRequires: gnome-doc-utils-devel
|
|
BuildRequires: gtk-sharp2
|
|
BuildRequires: intltool
|
|
BuildRequires: librsvg-devel
|
|
BuildRequires: mono-addins
|
|
BuildRequires: mono-devel
|
|
BuildRequires: translation-update-upstream
|
|
BuildRequires: pkgconfig(libcanberra-gtk) >= 0.26
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%if 0%{?suse_version}
|
|
BuildRequires: update-desktop-files
|
|
%else
|
|
%define suse_update_desktop_file true
|
|
%endif
|
|
%if 0%{?fedora_version}
|
|
BuildRequires: gtk-sharp2-devel
|
|
%endif
|
|
Recommends: %{name}-lang
|
|
# For the help system to work, we require a ghelp:// URI handler.
|
|
Recommends: mimehandler(x-scheme-handler/ghelp)
|
|
|
|
%description
|
|
gbrainy is a brain teaser game and trainer to have fun and to keep
|
|
your brain trained.
|
|
|
|
It provides the following types of games:
|
|
|
|
* Logic puzzles. Games designed to challenge your reasoning and
|
|
thinking skills.
|
|
|
|
* Mental calculation. Games based on arithmetical operations
|
|
designed to prove your mental calculation skills.
|
|
|
|
* Memory trainers. Games designed to challenge your short term
|
|
memory.
|
|
|
|
* Verbal analogies. Games that challenge your verbal aptitude.
|
|
|
|
%prep
|
|
%setup -q
|
|
translation-update-upstream
|
|
%patch0
|
|
|
|
%lang_package
|
|
|
|
%build
|
|
export MONO_SHARED_DIR=/var/tmp
|
|
%configure \
|
|
--disable-static
|
|
make
|
|
|
|
%install
|
|
%make_install
|
|
%suse_update_desktop_file %{name} Game
|
|
%find_lang %{name} %{?no_lang_C}
|
|
rm -rf %{buildroot}%{_datadir}/pixmaps
|
|
## It's not the right size: 32x32
|
|
#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 %{buildroot}
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%post
|
|
%desktop_database_post
|
|
%icon_theme_cache_post
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
%icon_theme_cache_postun
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS NEWS README COPYING
|
|
%dir %{_datadir}/gnome/
|
|
%dir %{_datadir}/gnome/help/
|
|
%dir %{_datadir}/gnome/help/gbrainy/
|
|
%doc %{_datadir}/gnome/help/gbrainy/C/
|
|
%{_bindir}/gbrainy
|
|
%{_libexecdir}/gbrainy/
|
|
%{_datadir}/games/gbrainy/
|
|
%{_datadir}/applications/gbrainy.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
%{_mandir}/man6/gbrainy.6.gz
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|