From 193df71fd446c8b73c5fee8567dda786f9f68cb4a4616ba47ce4a8be6477dbd7 Mon Sep 17 00:00:00 2001 From: Dmitriy Perlow Date: Tue, 1 May 2018 05:50:43 +0000 Subject: [PATCH] Accepting request 602389 from home:1Antoine1:branches:games - Only suggest xboard, don't recommend it. - Use %license instead of %doc for license file (boo#1082318). - Use %install_info_delete macro instead of rewriting it. OBS-URL: https://build.opensuse.org/request/show/602389 OBS-URL: https://build.opensuse.org/package/show/games/gnuchess?expand=0&rev=27 --- gnuchess.changes | 7 +++++++ gnuchess.spec | 13 +++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gnuchess.changes b/gnuchess.changes index 2c630ea..7284e12 100644 --- a/gnuchess.changes +++ b/gnuchess.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Apr 28 10:18:31 UTC 2018 - antoine.belvire@opensuse.org + +- Only suggest xboard, don't recommend it. +- Use %license instead of %doc for license file (boo#1082318). +- Use %install_info_delete macro instead of rewriting it. + ------------------------------------------------------------------- Tue Jul 25 15:05:15 UTC 2017 - astieger@suse.com diff --git a/gnuchess.spec b/gnuchess.spec index c9418aa..a387137 100644 --- a/gnuchess.spec +++ b/gnuchess.spec @@ -1,7 +1,7 @@ # # spec file for package gnuchess # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,7 +38,7 @@ BuildRequires: gettext-devel BuildRequires: readline-devel Requires(post): info Requires(preun): info -Recommends: xboard +Suggests: xboard Provides: chess_backend Provides: gchess @@ -65,14 +65,11 @@ install -m 755 %{SOURCE5} %{buildroot}/%{_bindir} %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %preun -if [ $1 = 0 ] ; then - if [ -f %{_infodir}/%{name}.info.gz ] ; then - %install_info --info-dir=%{_infodir} --delete %{_infodir}/%{name}.info.gz - fi -fi +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files -f %{name}.lang -%doc AUTHORS COPYING ChangeLog NEWS README TODO +%doc AUTHORS ChangeLog NEWS README TODO +%license COPYING %{_bindir}/* %{_mandir}/man*/* %{_infodir}/gnuchess.info%{ext_info}