rpms/pychess/F-7 pychess-0.8b1-gtksourceview.patch, NONE, 1.1 pychess-0.8b1-sitelib.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 pychess.spec, 1.2, 1.3 sources, 1.3, 1.4

Michel Alexandre Salim (salimma) fedora-extras-commits at redhat.com
Tue Nov 13 08:04:30 UTC 2007


Author: salimma

Update of /cvs/pkgs/rpms/pychess/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8342/F-7

Modified Files:
	.cvsignore pychess.spec sources 
Added Files:
	pychess-0.8b1-gtksourceview.patch pychess-0.8b1-sitelib.patch 
Log Message:
Update FC-6 and F-7 to 0.8b1 as well


pychess-0.8b1-gtksourceview.patch:

--- NEW FILE pychess-0.8b1-gtksourceview.patch ---
--- pychess-0.8beta1/lib/pychess/widgets/ionest.py.orig	2007-10-24 13:27:15.000000000 -0400
+++ pychess-0.8beta1/lib/pychess/widgets/ionest.py	2007-11-11 01:20:10.000000000 -0500
@@ -6,7 +6,7 @@
 
 import gtk, gobject, pango
 from cairo import ImageSurface
-from gtksourceview import *
+from gtksourceview2 import *
 
 from pychess.Utils.GameModel import GameModel
 from pychess.Utils.TimeModel import TimeModel

pychess-0.8b1-sitelib.patch:

--- NEW FILE pychess-0.8b1-sitelib.patch ---
--- pychess-0.8beta1/lib/pychess/Players/engineNest.py.orig	2007-10-23 14:22:07.000000000 -0400
+++ pychess-0.8beta1/lib/pychess/Players/engineNest.py	2007-11-11 01:24:33.000000000 -0500
@@ -1,6 +1,6 @@
 from xml.dom import minidom
 from xml.parsers.expat import ExpatError
-import os, md5, imp
+import os, md5, distutils.sysconfig #imp
 from threading import Thread
 
 from gobject import GObject, SIGNAL_RUN_FIRST, TYPE_NONE
@@ -114,9 +114,9 @@
                 path = os.path.abspath(os.environ["PYTHONPATH"])
                 path = os.path.join(path, "pychess/Players/PyChess.py")
             else:
-                path = os.path.dirname(imp.find_module("os")[1])
+                path = distutils.sysconfig.get_python_lib()
                 path = os.path.join(path,
-                        "site-packages/pychess/Players/PyChess.py")
+                        "pychess/Players/PyChess.py")
             return path, searchPath("python"), ["-u", path]
         else:
             for dir in os.environ["PATH"].split(":"):


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pychess/F-7/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	19 Apr 2007 13:51:29 -0000	1.3
+++ .cvsignore	13 Nov 2007 08:03:56 -0000	1.4
@@ -1 +1 @@
-pychess-0.6.0.final.tar.gz
+pychess-0.8beta1.tar.gz


Index: pychess.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pychess/F-7/pychess.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pychess.spec	19 Apr 2007 13:51:29 -0000	1.2
+++ pychess.spec	13 Nov 2007 08:03:56 -0000	1.3
@@ -1,21 +1,26 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
+%define prever beta1
+%define relnum 1
+
 Name:           pychess
-Version:        0.6.0
-Release:        1%{?dist}
+Version:        0.8
+Release:        %{?prever:0.}%{relnum}%{?prever:.%{prever}}%{?dist}
 Summary:        Chess game for GNOME
 
 Group:          Amusements/Games
-License:        GPL
+License:        GPLv2
 URL:            http://pychess.googlepages.com/home
-Source0:        http://pychess.googlecode.com/files/%{name}-%{version}.final.tar.gz
+Source0:        http://pychess.googlecode.com/files/%{name}-%{version}%{?prever}.tar.gz
+Patch0:         pychess-0.8b1-sitelib.patch
+Patch1:         pychess-0.8b1-gtksourceview.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    
 BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  desktop-file-utils, gettext
 
-Requires:       pygtk2-libglade, python-sqlite2
+Requires:       pygtk2-libglade, python-sqlite2, pygtksourceview
 
 %description
 PyChess is a GTK+ chess game for Linux. It is designed to at the same time
@@ -24,7 +29,9 @@
 
 
 %prep
-%setup -qn %{name}-%{version}.final
+%setup -qn %{name}-%{version}%{?prever}
+%patch0 -p1 -b .sitelib
+%patch1 -p1 -b .gtksourceview
 
 
 %build
@@ -37,12 +44,8 @@
 
 #change permissions
 %{__chmod} +x $RPM_BUILD_ROOT%{python_sitelib}/%{name}/Utils/Move.py
-%{__chmod} +x $RPM_BUILD_ROOT%{python_sitelib}/%{name}/Utils/History.py
 %{__chmod} +x $RPM_BUILD_ROOT%{python_sitelib}/%{name}/Players/PyChess.py
 
-#remove zero-length file
-%{__rm} $RPM_BUILD_ROOT%{python_sitelib}/%{name}/Players/UCI.py
-
 desktop-file-install --vendor fedora --delete-original  \
         --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
         --remove-category Application \
@@ -60,15 +63,25 @@
 %{python_sitelib}/*
 %{_bindir}/*
 %{_datadir}/games/*
+%{_datadir}/gtksourceview-1.0/language-specs/pgn.lang
 %{_datadir}/applications/*
+%{_datadir}/icons/hicolor/*/apps/*
 %{_datadir}/pixmaps/*
 %{_mandir}/man?/*
 
 %changelog
+* Sun Nov 11 2007 Michel Salim <michel.sylvan at gmail.com> - 0.8-0.1.beta1
+- Update to 0.8beta1
+
+* Thu Apr 19 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.6.0-1
+- Update to 0.6.0 final
+
 * Sun Jan 14 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.6.0-0.3.beta5
 - Update description
+
 * Sun Jan 14 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.6.0-0.2.beta5
 - Fix permissions
 - Fix quiet %%setup
+
 * Sun Jan 14 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.6.0-0.1.beta5
 - Initial build


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pychess/F-7/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources	19 Apr 2007 13:51:29 -0000	1.3
+++ sources	13 Nov 2007 08:03:56 -0000	1.4
@@ -1 +1 @@
-5fd0edea5df52ca1ccf420bd036494c3  pychess-0.6.0.final.tar.gz
+3748b317e9cc9f423d1e0e3e4d1a90d3  pychess-0.8beta1.tar.gz




More information about the fedora-extras-commits mailing list