[packages/gnuchess] - updated to 6.2.2 (GPL v3+ now) - removed obsolete gcc4,compile patches - added info patch (unify d

qboosh qboosh at pld-linux.org
Fri Sep 2 20:58:28 CEST 2016


commit 4078be38496ef745c4b32d9f049e1155c9a26486
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 2 20:59:49 2016 +0200

    - updated to 6.2.2 (GPL v3+ now)
    - removed obsolete gcc4,compile patches
    - added info patch (unify direntry)
    - added xboard integration package

 compile.patch       | 39 ---------------------------------
 gnuchess-gcc4.patch | 10 ---------
 gnuchess-info.patch | 14 ++++++++++++
 gnuchess.spec       | 63 ++++++++++++++++++++++++++++++++++++++---------------
 4 files changed, 59 insertions(+), 67 deletions(-)
---
diff --git a/gnuchess.spec b/gnuchess.spec
index 609f255..e6986b9 100644
--- a/gnuchess.spec
+++ b/gnuchess.spec
@@ -8,20 +8,23 @@ Summary(ru.UTF-8):	Шахматная программа GNU
 Summary(tr.UTF-8):	Bilgisayar satranç oyunu
 Summary(uk.UTF-8):	Шахова програма GNU
 Name:		gnuchess
-Version:	5.07
-Release:	7
-License:	GPL v2
+Version:	6.2.2
+Release:	1
+License:	GPL v3+
 Group:		Applications/Games
 Source0:	http://ftp.gnu.org/gnu/chess/%{name}-%{version}.tar.gz
-# Source0-md5:	259da00aa559e5624c65279484fccaf7
+# Source0-md5:	c181b5e218695a154a550292fddedc6d
 Source1:	xchess.png
 Source2:	%{name}.desktop
-Patch0:		%{name}-gcc4.patch
-Patch1:		compile.patch
+Patch0:		%{name}-info.patch
 URL:		http://www.gnu.org/software/chess/chess.html
-BuildRequires:	automake
 BuildRequires:	flex
+BuildRequires:	gettext-tools >= 0.18.3
+BuildRequires:	help2man
+BuildRequires:	libstdc++-devel
 BuildRequires:	ncurses-devel >= 5.0
+BuildRequires:	readline-devel
+BuildRequires:	texinfo
 Provides:	chess_backend
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -69,32 +72,56 @@ використовує текстовий інтерфейс на основі
 може використовуватись у парі з програмою xboard, яка забезпечує
 графічний інтерфейс під X Window System.
 
+%package -n xboard-gnuchess
+Summary:	GNU Chess engine integration for Xboard
+Summary(pl.UTF-8):	Integracja silnika szachowego GNU Chess z Xboard
+Group:		Applications/Games
+Requires:	%{name} = %{version}-%{release}
+Requires:	xboard >= 4.6.0
+
+%description -n xboard-gnuchess
+GNU Chess engine integration for Xboard.
+
+%description -n xboard-gnuchess -l pl.UTF-8
+Integracja silnika szachowego GNU Chess z Xboard.
+
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
-cp -f /usr/share/automake/config.* .
 %configure
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/gnuchess,%{_mandir}/man6} \
-       $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
-install src/gnuchess $RPM_BUILD_ROOT%{_bindir}
-install src/gnuchessx $RPM_BUILD_ROOT%{_bindir}
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/gnuchess
+%attr(755,root,root) %{_bindir}/gnuchessu
+%{_datadir}/gnuchess
+%{_desktopdir}/gnuchess.desktop
+%{_pixmapsdir}/xchess.png
+%{_mandir}/man1/gnuchess.1*
+%{_infodir}/gnuchess.info*
+
+%files -n xboard-gnuchess
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS TODO doc/*
-%attr(755,root,root) %{_bindir}/gnuchess*
-%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*
+%attr(755,root,root) %{_bindir}/gnuchessx
+%{_datadir}/games/plugins/logos/gnuchess.png
+%{_datadir}/games/plugins/xboard/gnuchess.eng
diff --git a/compile.patch b/compile.patch
deleted file mode 100644
index ab6d8fc..0000000
--- a/compile.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- gnuchess-5.07/src/common.h.orig	2009-12-15 00:04:30.233924867 +0100
-+++ gnuchess-5.07/src/common.h	2009-12-15 00:05:24.416211779 +0100
-@@ -744,7 +744,7 @@ void wait_for_input(void);
-  * Input routine, initialized to one of the specific
-  * input routines. The given argument is the prompt.
-  */
--void (*getline) (char *);
-+void (*gc_getline) (char *);
- 
- #define MAXSTR 128
- extern char inputstr[MAXSTR];
---- gnuchess-5.07/src/input.c.orig	2009-12-15 00:05:36.836210664 +0100
-+++ gnuchess-5.07/src/input.c	2009-12-15 00:07:10.419534417 +0100
-@@ -127,7 +127,7 @@ void *input_func(void *arg __attribute__
- 	      (RealGameCnt+1)/2 + 1 );
-     }
-     pthread_mutex_lock(&input_mutex);
--    getline(prompt);
-+    gc_getline(prompt);
-     input_status = INPUT_AVAILABLE;
-     pthread_cond_signal(&input_cond);
-     pthread_mutex_unlock(&input_mutex);
-@@ -173,13 +173,13 @@ void InitInput(void)
- {
- #ifdef HAVE_LIBREADLINE
-   if (isatty(STDIN_FILENO)) {
--    getline = getline_readline;
-+    gc_getline = getline_readline;
-     using_history();
-   } else {
--    getline = getline_standard;
-+    gc_getline = getline_standard;
-   }
- #else
--  getline = getline_standard;
-+  gc_getline = getline_standard;
- #endif
-   /* Start input thread */
-   pthread_create(&input_thread, NULL, input_func, NULL);
diff --git a/gnuchess-gcc4.patch b/gnuchess-gcc4.patch
deleted file mode 100644
index 9804316..0000000
--- a/gnuchess-gcc4.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- gnuchess-5.07/src/common.h.orig	2005-07-26 21:20:24.503844904 +0200
-+++ gnuchess-5.07/src/common.h	2005-07-26 21:21:01.081284288 +0200
-@@ -716,7 +716,6 @@
- 
- /* Input thread and thread function */
- #include <pthread.h>
--extern pthread_t input_thread;
- void *input_func(void *);
- 
- /*
diff --git a/gnuchess-info.patch b/gnuchess-info.patch
new file mode 100644
index 0000000..5b37c51
--- /dev/null
+++ b/gnuchess-info.patch
@@ -0,0 +1,14 @@
+--- gnuchess-6.2.2/doc/gnuchess.texi.orig	2015-01-04 10:59:45.000000000 +0100
++++ gnuchess-6.2.2/doc/gnuchess.texi	2016-09-02 20:43:44.242442350 +0200
+@@ -30,9 +30,9 @@
+ @c the standard FSF Front-Cover and Back-Cover Texts, as given in
+ @c maintain.texi.
+ 
+- at dircategory Basics
++ at dircategory Games:
+ @direntry
+-* GNU Chess: (gnuchess).               Playing chess and related games.
++* GNU Chess: (gnuchess).		Playing chess and related games
+ @end direntry
+ 
+ @titlepage
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnuchess.git/commitdiff/4078be38496ef745c4b32d9f049e1155c9a26486



More information about the pld-cvs-commit mailing list