From 83d45177be93893d551fac1e4d2b3bdefc3a369e0d91943c57b9230e2744f9e2 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:15:08 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnugo?expand=0&rev=1 --- .gitattributes | 23 +++++ bugzilla-225902.patch | 12 +++ gnugo-3.7.10.tar.bz2 | 3 + gnugo.changes | 107 +++++++++++++++++++++++ gnugo.spec | 151 +++++++++++++++++++++++++++++++++ mouse-2-dont-insert-junk.patch | 11 +++ ready | 0 suse-start-gnugo.el | 8 ++ xemacs-auto-autoloads.el | 6 ++ xemacs.patch | 49 +++++++++++ 10 files changed, 370 insertions(+) create mode 100644 .gitattributes create mode 100644 bugzilla-225902.patch create mode 100644 gnugo-3.7.10.tar.bz2 create mode 100644 gnugo.changes create mode 100644 gnugo.spec create mode 100644 mouse-2-dont-insert-junk.patch create mode 100644 ready create mode 100644 suse-start-gnugo.el create mode 100644 xemacs-auto-autoloads.el create mode 100644 xemacs.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/bugzilla-225902.patch b/bugzilla-225902.patch new file mode 100644 index 0000000..7673d7d --- /dev/null +++ b/bugzilla-225902.patch @@ -0,0 +1,12 @@ +diff -ru gnugo-3.7.10/engine/persistent.c gnugo-3.7.10.new/engine/persistent.c +--- gnugo-3.7.10/engine/persistent.c 2006-05-21 19:04:27.000000000 +0200 ++++ gnugo-3.7.10.new/engine/persistent.c 2006-12-05 19:19:48.000000000 +0100 +@@ -440,7 +440,7 @@ + print_persistent_cache_entry(entry); + } + /* FIXME: This is an ugly hack. */ +- if (cache->name == "reading cache" ++ if (0 == strcmp(cache->name, "reading cache") + && (debug & DEBUG_READING_PERFORMANCE) + && entry->cost >= MIN_READING_NODES_TO_REPORT) { + if (entry->result != 0) diff --git a/gnugo-3.7.10.tar.bz2 b/gnugo-3.7.10.tar.bz2 new file mode 100644 index 0000000..31d75e8 --- /dev/null +++ b/gnugo-3.7.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bd4996ba7c57157cb58f62b59746f590c5c011318f45e775fb349bc1f6df81e +size 2336438 diff --git a/gnugo.changes b/gnugo.changes new file mode 100644 index 0000000..7abd898 --- /dev/null +++ b/gnugo.changes @@ -0,0 +1,107 @@ +------------------------------------------------------------------- +Tue Dec 05 19:21:04 CET 2006 - mfabian@suse.de + +- update to 3.7.10 +- fix Bugzilla #225902 ("comparison with string literal"). + +------------------------------------------------------------------- +Wed Jan 25 21:36:16 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Fri Feb 04 18:24:19 CET 2005 - mfabian@suse.de + +- update to 3.7.2. +- adapt XEmacs patch. + +------------------------------------------------------------------- +Fri Jan 21 12:51:39 CET 2005 - mfabian@suse.de + +- add missing directories to file list to make it build on + SuSE 9.2. + +------------------------------------------------------------------- +Thu Jan 20 16:50:35 CET 2005 - mfabian@suse.de + +- install Emacs-lisp files. +- small fix for XEmacs to make at least the ASCII mode work with + XEmacs (graphical mode still doesn't work). + +------------------------------------------------------------------- +Wed Dec 1 14:28:41 CET 2004 - adrian@suse.de + +- update to version 3.6 + +------------------------------------------------------------------- +Sat Jan 10 20:07:32 CET 2004 - adrian@suse.de + +- build as user + +------------------------------------------------------------------- +Mon Oct 6 09:24:10 CEST 2003 - adrian@suse.de + +- update to version 3.4 + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Thu Feb 13 00:02:16 CET 2003 - mmj@suse.de + +- Add %install_info macros [#23416] + +------------------------------------------------------------------- +Wed Jan 29 00:47:28 CET 2003 - ro@suse.de + +- fix build with gcc-3.3 (-Wp,-lang-c89 unsupported) + +------------------------------------------------------------------- +Tue Aug 6 16:32:43 CEST 2002 - adrian@suse.de + +- fix file conflicts + +------------------------------------------------------------------- +Tue Aug 6 11:15:06 CEST 2002 - adrian@suse.de + +- update to version 3.2 +- use BuildRoot + +------------------------------------------------------------------- +Wed May 9 23:35:22 CEST 2001 - mfabian@suse.de + +- bzip2 sources + +------------------------------------------------------------------- +Mon Nov 6 02:01:37 CET 2000 - ro@suse.de + +- fixed neededforbuild + +------------------------------------------------------------------- +Fri Mar 31 11:33:19 CEST 2000 - nadvornik@suse.cz + +- removed directories owned by aaa_dir +- filelist cleanup + +------------------------------------------------------------------- +Wed Feb 16 15:22:01 CET 2000 - uli@suse.de + +- fixed %files section + +------------------------------------------------------------------- +Wed Feb 16 14:01:00 CET 2000 - kettner@suse.de + +- New version 2.6 +- moved man and info to /usr/share + +------------------------------------------------------------------- +Thu Nov 25 15:53:33 CET 1999 - kettner@suse.de + +- New version 2.5.42 + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. diff --git a/gnugo.spec b/gnugo.spec new file mode 100644 index 0000000..f3d48eb --- /dev/null +++ b/gnugo.spec @@ -0,0 +1,151 @@ +# +# spec file for package gnugo (Version 3.7.10) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: gnugo +BuildRequires: emacs-x11 giflib-devel glib-devel krb5 libpng-devel libtiff-devel openldap2 openldap2-devel xemacs xorg-x11-devel +URL: http://www.gnu.org/software/gnugo/gnugo.html +License: GNU General Public License (GPL) +Group: Amusements/Games/Board/Other +Summary: Chinese Game "Go" +Version: 3.7.10 +Release: 1 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source0: gnugo-%{version}.tar.bz2 +Source1: suse-start-gnugo.el +Source2: xemacs-auto-autoloads.el +Patch0: xemacs.patch +Patch1: mouse-2-dont-insert-junk.patch +Patch2: bugzilla-225902.patch +PreReq: %install_info_prereq + +%description +Asian board game. /usr/share/doc/packages/gnugo + + + +Authors: +-------- + Man L. Li + +%prep +%setup -q +%patch0 -p 1 +%patch1 -p 1 +%patch2 -p 1 + +%build +autoconf +CFLAGS="$RPM_OPT_FLAGS" ./configure \ + --prefix=/usr \ + --mandir=/%_mandir \ + --infodir=/%_infodir \ + +make +pushd interface/xpms + emacs -batch --no-site-file \ + -l ../make-xpms-file.el -f make-xpms-file gnugo-xpms.el *.xpm +popd + +%install +make DESTDIR=$RPM_BUILD_ROOT install +rm -f $RPM_BUILD_ROOT/usr/share/info/dir* +# GNU Emacs: +mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnugo +for i in $(find . -name "*.el") +do + emacs -no-site-file -q -batch -f batch-byte-compile $i + install -m 644 ${i} ${i}c \ + $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnugo +done +install -m 644 $RPM_SOURCE_DIR/suse-start-gnugo.el \ + $RPM_BUILD_ROOT/usr/share/emacs/site-lisp +# XEmacs: +find . -name "*.elc" | xargs rm +mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/gnugo +for i in $(find . -name "*.el") +do + xemacs -no-site-file -q -batch -f batch-byte-compile $i + install -m 644 ${i} ${i}c \ + $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/gnugo + install -m 644 $RPM_SOURCE_DIR/xemacs-auto-autoloads.el \ + $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/gnugo/auto-autoloads.el +done + +%post +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz + +%postun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz + +%files +%defattr(-,root,root) +%doc COPYING AUTHORS THANKS ChangeLog TODO README NEWS +/usr/bin/* +/%_infodir/* +/%_mandir/man?/* +%dir /usr/share/emacs/site-lisp/gnugo/ +/usr/share/emacs/site-lisp/gnugo/* +/usr/share/emacs/site-lisp/suse-start-gnugo.el +%dir /usr/share/xemacs/site-packages/ +%dir /usr/share/xemacs/site-packages/lisp/ +%dir /usr/share/xemacs/site-packages/lisp/gnugo/ +/usr/share/xemacs/site-packages/lisp/gnugo/* + +%changelog -n gnugo +* Tue Dec 05 2006 - mfabian@suse.de +- update to 3.7.10 +- fix Bugzilla #225902 ("comparison with string literal"). +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Fri Feb 04 2005 - mfabian@suse.de +- update to 3.7.2. +- adapt XEmacs patch. +* Fri Jan 21 2005 - mfabian@suse.de +- add missing directories to file list to make it build on + SuSE 9.2. +* Thu Jan 20 2005 - mfabian@suse.de +- install Emacs-lisp files. +- small fix for XEmacs to make at least the ASCII mode work with + XEmacs (graphical mode still doesn't work). +* Wed Dec 01 2004 - adrian@suse.de +- update to version 3.6 +* Sat Jan 10 2004 - adrian@suse.de +- build as user +* Mon Oct 06 2003 - adrian@suse.de +- update to version 3.4 +* Thu Apr 24 2003 - ro@suse.de +- fix install_info --delete call and move from preun to postun +* Thu Feb 13 2003 - mmj@suse.de +- Add %%install_info macros [#23416] +* Wed Jan 29 2003 - ro@suse.de +- fix build with gcc-3.3 (-Wp,-lang-c89 unsupported) +* Tue Aug 06 2002 - adrian@suse.de +- fix file conflicts +* Tue Aug 06 2002 - adrian@suse.de +- update to version 3.2 +- use BuildRoot +* Wed May 09 2001 - mfabian@suse.de +- bzip2 sources +* Mon Nov 06 2000 - ro@suse.de +- fixed neededforbuild +* Fri Mar 31 2000 - nadvornik@suse.cz +- removed directories owned by aaa_dir +- filelist cleanup +* Wed Feb 16 2000 - uli@suse.de +- fixed %%files section +* Wed Feb 16 2000 - kettner@suse.de +- New version 2.6 +- moved man and info to /usr/share +* Thu Nov 25 1999 - kettner@suse.de +- New version 2.5.42 +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. diff --git a/mouse-2-dont-insert-junk.patch b/mouse-2-dont-insert-junk.patch new file mode 100644 index 0000000..201db10 --- /dev/null +++ b/mouse-2-dont-insert-junk.patch @@ -0,0 +1,11 @@ +diff -ru gnugo-3.7.2.orig/interface/gnugo.el gnugo-3.7.2/interface/gnugo.el +--- gnugo-3.7.2.orig/interface/gnugo.el 2005-01-20 00:25:34.000000000 +0100 ++++ gnugo-3.7.2/interface/gnugo.el 2005-01-31 20:41:14.713505572 +0100 +@@ -2115,6 +2115,7 @@ + ("F" . gnugo-display-final-score) + ;; mouse + ([(down-mouse-1)] . gnugo-mouse-move) ++ ([(down-mouse-2)] . gnugo-mouse-move) + ([(down-mouse-3)] . gnugo-mouse-pass)))) + + (unless (get 'help :gnugo-gtp-command-spec) diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/suse-start-gnugo.el b/suse-start-gnugo.el new file mode 100644 index 0000000..e351ede --- /dev/null +++ b/suse-start-gnugo.el @@ -0,0 +1,8 @@ +;; /usr/share/emacs/site-lisp/suse-start-gnugo.el + +(autoload 'gnugo "gnugo" "GNU Go" t) +(autoload 'gnugo-xpms "gnugo-xpms" "GNU Go" t) + +(add-to-list 'load-path "/usr/share/emacs/site-lisp/gnugo") + +;; /usr/share/emacs/site-lisp/suse-start-gnugo.el ends here diff --git a/xemacs-auto-autoloads.el b/xemacs-auto-autoloads.el new file mode 100644 index 0000000..47f9645 --- /dev/null +++ b/xemacs-auto-autoloads.el @@ -0,0 +1,6 @@ +(if (featurep 'gnugo-autoloads) (error "Feature gnugo-autoloads already loaded")) +(autoload 'gnugo "gnugo" "GNU Go" t) + +;;(autoload 'gnugo-xpms "gnugo-xpms" "Alist of XPM images suitable for use by gnugo.el " t) + +(provide 'gnugo-autoloads) \ No newline at end of file diff --git a/xemacs.patch b/xemacs.patch new file mode 100644 index 0000000..4e435c6 --- /dev/null +++ b/xemacs.patch @@ -0,0 +1,49 @@ +diff -ru gnugo-3.7.2.orig/interface/gnugo.el gnugo-3.7.2/interface/gnugo.el +--- gnugo-3.7.2.orig/interface/gnugo.el 2005-01-20 00:25:34.000000000 +0100 ++++ gnugo-3.7.2/interface/gnugo.el 2005-02-04 17:03:34.099607950 +0100 +@@ -975,9 +975,7 @@ + (round (* size (gnugo-get :hmul))) + 1) + -5)) +- (edges (window-edges window)) +- (right-w-edge (nth 2 edges)) +- (avail-width (- right-w-edge (nth 0 edges))) ++ (avail-width (window-width)) + (w (/ (- avail-width + (+ (* size (gnugo-get :wmul)) + (if (symbol-plist (gnugo-f 'ispc)) +@@ -1348,8 +1346,8 @@ + "Start a new sgf tree" + (gnugo-put :sgf-tree (list (list))) + (let ((g-blackp (string= "black" (gnugo-get :gnugo-color))) +- (black-stones (split-string (gnugo-query "list_stones black") " ")) +- (white-stones (split-string (gnugo-query "list_stones white") " "))) ++ (black-stones (split-string (gnugo-query "list_stones black"))) ++ (white-stones (split-string (gnugo-query "list_stones white")))) + (mapc (lambda (x) (apply 'gnugo-note x)) + `((:GM 1) + (:FF 4) ; hmm maybe better: 3 +@@ -1390,7 +1388,7 @@ + (gnugo-command (format "loadsgf %s" (expand-file-name filename))) + (let* ((colorhistory + (mapcar +- (lambda (x) (split-string x " ")) ++ (lambda (x) (split-string x)) + (split-string + (cdr (gnugo-synchronous-send/return "move_history")) "[=\n]"))) + (k (length colorhistory))) +@@ -1418,11 +1416,11 @@ + (not + (string= "PASS" + (nth 1 +- (split-string (gnugo-query "last_move") " "))))) ++ (split-string (gnugo-query "last_move")))))) + (if (equal + (car + (split-string +- (cdr (gnugo-synchronous-send/return "undo")) " ")) "?") ++ (cdr (gnugo-synchronous-send/return "undo")))) "?") + (error "cannot undo") + (gnugo-put :future-history + (cons (car (gnugo-get :sgf-tree)) (gnugo-get :future-history))))) +