rpms/supybot/F-10 supybot-0.83.4.1-json.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 sources, 1.3, 1.4 supybot.spec, 1.5, 1.6

Ricky Zhou (周家杰) ricky at fedoraproject.org
Wed Jun 3 08:50:28 UTC 2009


Author: ricky

Update of /cvs/pkgs/rpms/supybot/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29038/F-10

Modified Files:
	.cvsignore sources supybot.spec 
Added Files:
	supybot-0.83.4.1-json.patch 
Log Message:
* Wed Jun 03 2009 Ricky Zhou <ricky at fedoraproject.org> - 0.83.4.1-1
- Upstream released new version.


supybot-0.83.4.1-json.patch:

--- NEW FILE supybot-0.83.4.1-json.patch ---
diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py
index e1b6bee..98fd7dd 100644
--- a/plugins/Google/plugin.py
+++ b/plugins/Google/plugin.py
@@ -42,15 +42,21 @@ import supybot.ircmsgs as ircmsgs
 import supybot.ircutils as ircutils
 import supybot.callbacks as callbacks
 
+simplejson = None
+
+try:
+    simplejson = utils.python.universalImport('json')
+except ImportError:
+    pass
+
 try:
-    simplejson = utils.python.universalImport('json', 'simplejson',
-                                              'local.simplejson')
     # The 3rd party simplejson module was included in Python 2.6 and renamed to
     # json.  Unfortunately, this conflicts with the 3rd party json module.
     # Luckily, the 3rd party json module has a different interface so we test
     # to make sure we aren't using it.
-    if hasattr(simplejson, 'read'):
-        raise ImportError
+    if simplejson is None or hasattr(simplejson, 'read'):
+        simplejson = utils.python.universalImport('simplejson',
+                                                  'local.simplejson')
 except ImportError:
     raise callbacks.Error, \
             'You need Python2.6 or the simplejson module installed to use ' \


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/supybot/F-10/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- .cvsignore	19 May 2009 02:02:52 -0000	1.3
+++ .cvsignore	3 Jun 2009 08:49:57 -0000	1.4
@@ -1 +1 @@
-Supybot-0.83.4.tar.bz2
+Supybot-0.83.4.1.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/supybot/F-10/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sources	19 May 2009 02:02:52 -0000	1.3
+++ sources	3 Jun 2009 08:49:57 -0000	1.4
@@ -1 +1 @@
-e003a8f940a749bd6a6546418b8f0942  Supybot-0.83.4.tar.bz2
+96ce90559c7d6fde5e3c93174c509408  Supybot-0.83.4.1.tar.bz2


Index: supybot.spec
===================================================================
RCS file: /cvs/pkgs/rpms/supybot/F-10/supybot.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- supybot.spec	19 May 2009 02:02:52 -0000	1.5
+++ supybot.spec	3 Jun 2009 08:49:57 -0000	1.6
@@ -2,7 +2,7 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           supybot
-Version:        0.83.4
+Version:        0.83.4.1
 Release:        1%{?dist}
 Summary:        Cross-platform IRC bot written in Python
 
@@ -12,6 +12,9 @@ Group:          Applications/Internet
 License:        BSD and GPLv2
 URL:            http://supybot.com
 Source0:        http://downloads.sourceforge.net/supybot/%{origname}-%{version}.tar.bz2
+# Fix a conflict between python-json and the built in json module
+# in Python 2.6.  Already submitted and commited upstream.
+Patch0:         %{name}-%{version}-json.patch
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:      noarch
@@ -33,6 +36,7 @@ to commands, as well as more than 50 bui
 
 %prep
 %setup -q -n %{origname}-%{version}
+%patch0 -p1
 
 
 %build
@@ -91,6 +95,9 @@ CFLAGS="%{optflags}" %{__python} -c 'imp
 
 
 %changelog
+* Wed Jun 03 2009 Ricky Zhou <ricky at fedoraproject.org> - 0.83.4.1-1
+- Upstream released new version.
+
 * Mon May 18 2009 Ricky Zhou <ricky at fedoraproject.org> - 0.83.4-1
 - Upstream released new version.
 




More information about the fedora-extras-commits mailing list