From 30748c06302544d31f014b70b3ed60a46dbda75f70c1dd0a03de1e540c0815e1 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 31 Jan 2011 21:01:20 +0000 Subject: [PATCH] Accepting request 59554 from home:dimstar:branches:GNOME:Apps Forwarding to openSUSE:Factory OBS-URL: https://build.opensuse.org/request/show/59554 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gbrainy?expand=0&rev=24 --- gbrainy.changes | 8 ++++++++ gbrainy.spec | 12 ++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gbrainy.changes b/gbrainy.changes index 35473f7..620564b 100644 --- a/gbrainy.changes +++ b/gbrainy.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jan 26 19:38:18 UTC 2011 - dimstar@opensuse.org + +- Split out -lang package which is Recommended by the main package. + Keep the C lang help in the main package +- Recommend mimehandler(x-scheme-handler/ghelp) for the help + system to work. + ------------------------------------------------------------------- Fri Jan 14 08:39:12 CET 2011 - vuntz@opensuse.org diff --git a/gbrainy.spec b/gbrainy.spec index c673457..f6bbd29 100644 --- a/gbrainy.spec +++ b/gbrainy.spec @@ -47,6 +47,9 @@ BuildRequires: update-desktop-files %if 0%{?fedora_version} BuildRequires: gnome-sharp-devel 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 @@ -70,6 +73,7 @@ It provides the following types of games: %patch %patch1 -p1 +%lang_package %build export MONO_SHARED_DIR=/var/tmp %configure --disable-static @@ -78,7 +82,7 @@ make %install %makeinstall %suse_update_desktop_file %name Game -%find_lang %{name} +%find_lang %{name} %no_lang_C rm -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps # It's not the right size: 32x32 rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gbrainy.png @@ -88,9 +92,11 @@ rm %{buildroot}%{_libdir}/pkgconfig/gbrainy.pc %clean rm -rf "$RPM_BUILD_ROOT" -%files -f %{name}.lang +%files %defattr(-,root,root) %doc AUTHORS NEWS README COPYING +%dir %{_datadir}/gnome/help/gbrainy/ +%doc %{_datadir}/gnome/help/gbrainy/C/ %{_bindir}/gbrainy %{_libexecdir}/gbrainy/ %{_datadir}/games/gbrainy/ @@ -98,4 +104,6 @@ rm -rf "$RPM_BUILD_ROOT" %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/man/man6/gbrainy.6.gz +%files lang -f %{name}.lang + %changelog