commit 3c0846bdb56c372dd136023a38db8effb05537990c0887f5cdc3c98dbbc9c101 Author: OBS User unknown Date: Thu Nov 6 14:29:34 2008 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuchess?expand=0&rev=1 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/book.dat.bz2 b/book.dat.bz2 new file mode 100644 index 0000000..e4d302d --- /dev/null +++ b/book.dat.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f62afd86117da524883b505a29f4a0a0c9ea40797ef2952fb22e990644421cf +size 2536707 diff --git a/book_1.01.pgn.bz2 b/book_1.01.pgn.bz2 new file mode 100644 index 0000000..67d0453 --- /dev/null +++ b/book_1.01.pgn.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b34ad9074cd9f6e77d8e9d7e24f9eb143c0844d75f0f9fb2d16c757a8f6aeb32 +size 18117363 diff --git a/genbook.sh b/genbook.sh new file mode 100644 index 0000000..ccf674f --- /dev/null +++ b/genbook.sh @@ -0,0 +1,23 @@ +#! /bin/sh + +echo -e "\nPreparing data...\n" +bzcat $1 >book.pgn +#head -30000 book.pgn >smallbook.pgn +echo -e "\nDone." + +#echo -e "\nGenerating smallbook...\n" +#src/gnuchess < + Stuart Cracraft + Mike McGann + Philippe Schnoebelen + Tim Mann + +%prep +%setup +%patch0 + +%build +CFLAGS="$RPM_OPT_FLAGS" +./configure --prefix=%{_prefix} \ + --mandir=%{_mandir} \ + --datadir=%{_datadir} +sed '/\/usr\/lib\/games\/gnuchess\/book\.dat/d;s:/usr/share/games:%{_datadir}:' src/book.h~ +mv src/book.h~ src/book.h +make + +%install +if [ -f %{SOURCE2} ] ; then + bzcat %{SOURCE2} >book.dat +else + sh %{SOURCE3} %{SOURCE1} +fi +rm -rf doc/CVS +make DESTDIR=$RPM_BUILD_ROOT install +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6 +cp %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man6 +mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnuchess +cp book.dat $RPM_BUILD_ROOT%{_datadir}/gnuchess + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_prefix}/bin/* +%{_mandir}/man*/* +%{_datadir}/gnuchess +%doc AUTHORS COPYING ChangeLog NEWS README TODO doc + +%changelog +* Thu Nov 06 2008 ro@suse.de +- remove NoSource tag +* Fri Mar 30 2007 ro@suse.de +- added flex,bison to buildreq +* Wed Jan 25 2006 mls@suse.de +- converted neededforbuild to BuildRequires +* Tue Apr 05 2005 mmj@suse.de +- Make gcc4 happy +* Thu Aug 26 2004 sbrabec@suse.cz +- Updated to version 5.07. +- Updated book to version 1.01. +* Sun Jan 11 2004 adrian@suse.de +- add %%defattr +* Thu Aug 07 2003 sbrabec@suse.cz +- Updated to version 5.06. +* Tue Feb 11 2003 sbrabec@suse.cz +- Updated to version 5.05. +- Adapt to new gnuchess packaging scheme. +- Added new build script genbook.sh to shrink source RPM. +* Tue Feb 04 2003 sbrabec@suse.cz +- Provide chess_backend. +* Mon Aug 06 2001 dan@suse.cz +- update to 5.02 version +* Tue May 08 2001 mfabian@suse.de +- bzip2 sources +* Tue May 02 2000 vinil@suse.cz +- prefix problem fixed +* Tue Apr 11 2000 vinil@suse.cz +- buildroot added +* Thu Jan 20 2000 ro@suse.de +- man to /usr/share/man +* Wed Oct 13 1999 ro@suse.de +- update to pl80 +* Mon Sep 13 1999 bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4