Hello community,

here is the log from the commit of package python-smbc for openSUSE:Factory 
checked in at 2011-12-21 10:03:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-smbc (Old)
 and      /work/SRC/openSUSE:Factory/.python-smbc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-smbc", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-smbc/python-smbc.changes  2011-09-23 
12:43:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-smbc.new/python-smbc.changes     
2011-12-21 10:03:19.000000000 +0100
@@ -1,0 +2,7 @@
+Tue Dec 20 13:54:30 UTC 2011 - [email protected]
+
+- Update to version 1.0.12:
+  + Add Context.optionUseKerberos
+  + Add Context.optionFallbackAfterKerberos
+
+-------------------------------------------------------------------

Old:
----
  pysmbc-1.0.11.tar.bz2

New:
----
  pysmbc-1.0.12.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-smbc.spec ++++++
--- /var/tmp/diff_new_pack.KcjOsp/_old  2011-12-21 10:03:20.000000000 +0100
+++ /var/tmp/diff_new_pack.KcjOsp/_new  2011-12-21 10:03:20.000000000 +0100
@@ -15,23 +15,20 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
-
 Name:           python-smbc
 %define _name   pysmbc
 BuildRequires:  libsmbclient-devel
 BuildRequires:  python-devel
 BuildRequires:  python3-devel
-Version:        1.0.11
-Release:        1
+Version:        1.0.12
+Release:        0
 # FIXME: once we have proper macros for python3 packaging, build a 
python3-smbc subpackage
-Group:          Development/Libraries/Python
-License:        GPL-2.0+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Url:            http://cyberelk.net/tim/software/pysmbc/
-Source:         %{_name}-%{version}.tar.bz2
+Source:         http://cyberelk.net/tim/data/pysmbc/%{_name}-%{version}.tar.bz2
 Summary:        Python bindings for samba clients (libsmbclient)
+License:        GPL-2.0+
+Group:          Development/Libraries/Python
 %py_requires
 
 %description

++++++ pysmbc-1.0.11.tar.bz2 -> pysmbc-1.0.12.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pysmbc-1.0.11/NEWS new/pysmbc-1.0.12/NEWS
--- old/pysmbc-1.0.11/NEWS      2011-05-20 17:33:11.000000000 +0200
+++ new/pysmbc-1.0.12/NEWS      2011-06-09 11:41:51.000000000 +0200
@@ -1,6 +1,11 @@
 NEWS
 ----
 
+New in 1.0.12:
+
+* Context.optionUseKerberos
+* Context.optionFallbackAfterKerberos
+
 New in 1.0.11:
 
 * read/iternext now use Bytes type
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pysmbc-1.0.11/PKG-INFO new/pysmbc-1.0.12/PKG-INFO
--- old/pysmbc-1.0.11/PKG-INFO  2011-05-20 17:35:02.000000000 +0200
+++ new/pysmbc-1.0.12/PKG-INFO  2011-12-09 16:23:42.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pysmbc
-Version: 1.0.11
+Version: 1.0.12
 Summary: Python bindings for libsmbclient
 Home-page: http://cyberelk.net/tim/software/pysmbc/
 Author: ['Tim Waugh <[email protected]>', 'Tsukasa Hamano 
<[email protected]>']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pysmbc-1.0.11/context.c new/pysmbc-1.0.12/context.c
--- old/pysmbc-1.0.11/context.c 2011-02-08 16:12:09.000000000 +0100
+++ new/pysmbc-1.0.12/context.c 2011-06-09 11:40:51.000000000 +0200
@@ -1,6 +1,6 @@
 /* -*- Mode: C; c-file-style: "gnu" -*-
  * pysmbc - Python bindings for libsmbclient
- * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010  Red Hat, Inc
+ * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2011  Red Hat, Inc
  * Copyright (C) 2010  Open Source Solution Technology Corporation
  * Copyright (C) 2010  Patrick Geltinger <[email protected]>
  * Authors:
@@ -667,6 +667,50 @@
   return 0;
 }
 
+static PyObject *
+Context_getOptionUseKerberos (Context *self, void *closure)
+{
+  smbc_bool b;
+  b = smbc_getOptionUseKerberos (self->context);
+  return PyBool_FromLong ((long) b);
+}
+
+static int
+Context_setOptionUseKerberos (Context *self, PyObject *value,
+                             void *closure)
+{
+  if (!PyBool_Check (value))
+    {
+      PyErr_SetString (PyExc_TypeError, "must be Boolean");
+      return -1;
+    }
+
+  smbc_setOptionUseKerberos (self->context, value == Py_True);
+  return 0;
+}
+
+static PyObject *
+Context_getOptionFallbackAfterKerberos (Context *self, void *closure)
+{
+  smbc_bool b;
+  b = smbc_getOptionFallbackAfterKerberos (self->context);
+  return PyBool_FromLong ((long) b);
+}
+
+static int
+Context_setOptionFallbackAfterKerberos (Context *self, PyObject *value,
+                                       void *closure)
+{
+  if (!PyBool_Check (value))
+    {
+      PyErr_SetString (PyExc_TypeError, "must be Boolean");
+      return -1;
+    }
+
+  smbc_setOptionFallbackAfterKerberos (self->context, value == Py_True);
+  return 0;
+}
+
 PyGetSetDef Context_getseters[] =
   {
     { "debug",
@@ -711,6 +755,18 @@
       "Whether to automatically select anonymous login.",
       NULL },
 
+    { "optionUseKerberos",
+      (getter) Context_getOptionUseKerberos,
+      (setter) Context_setOptionUseKerberos,
+      "Whether to enable use of Kerberos.",
+      NULL },
+
+    { "optionFallbackAfterKerberos",
+      (getter) Context_getOptionFallbackAfterKerberos,
+      (setter) Context_setOptionFallbackAfterKerberos,
+      "Whether to fallback after Kerberos.",
+      NULL },
+
     { NULL }
   };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pysmbc-1.0.11/dir.c new/pysmbc-1.0.12/dir.c
--- old/pysmbc-1.0.11/dir.c     2011-01-26 11:36:40.000000000 +0100
+++ new/pysmbc-1.0.12/dir.c     2011-12-09 16:16:32.000000000 +0100
@@ -1,6 +1,6 @@
 /* -*- Mode: C; c-file-style: "gnu" -*-
  * pysmbc - Python bindings for libsmbclient
- * Copyright (C) 2002, 2005, 2006, 2007, 2008  Tim Waugh <[email protected]>
+ * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2011  Tim Waugh 
<[email protected]>
  * Copyright (C) 2010  Patrick Geltinger <[email protected]>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -144,13 +144,10 @@
          PyObject *lkwlist;
          int len = dirp->dirlen;
 
-#if PY_MAJOR_VERSION >= 3
-         PyObject *name = PyUnicode_FromString (dirp->name);
-         PyObject *comment = PyUnicode_FromString (dirp->comment);
-#else
-         PyObject *name = PyString_FromString (dirp->name);
-         PyObject *comment = PyString_FromString (dirp->comment);
-#endif
+         PyObject *name = PyBytes_FromStringAndSize (dirp->name,
+                                                     strlen (dirp->name));
+         PyObject *comment = PyBytes_FromStringAndSize (dirp->comment,
+                                                        strlen(dirp->comment));
          PyObject *type = PyLong_FromLong (dirp->smbc_type);
          lkwlist = PyDict_New ();
          PyDict_SetItemString (lkwlist, "name", name);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pysmbc-1.0.11/setup.py new/pysmbc-1.0.12/setup.py
--- old/pysmbc-1.0.11/setup.py  2011-05-20 17:32:40.000000000 +0200
+++ new/pysmbc-1.0.12/setup.py  2011-12-09 16:22:21.000000000 +0100
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-## Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010  Red Hat, Inc
+## Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2011  Red Hat, Inc
 ## Copyright (C) 2010  Open Source Solution Technology Corporation
 ## Authors:
 ##  Tim Waugh <[email protected]>
@@ -52,7 +52,7 @@
 
 from distutils.core import setup, Extension
 setup (name="pysmbc",
-       version="1.0.11",
+       version="1.0.12",
        description="Python bindings for libsmbclient",
        long_description=__doc__,
        author=["Tim Waugh <[email protected]>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pysmbc-1.0.11/smbcdirent.c 
new/pysmbc-1.0.12/smbcdirent.c
--- old/pysmbc-1.0.11/smbcdirent.c      2011-05-18 13:16:22.000000000 +0200
+++ new/pysmbc-1.0.12/smbcdirent.c      2011-12-09 16:16:49.000000000 +0100
@@ -1,6 +1,6 @@
 /* -*- Mode: C; c-file-style: "gnu" -*-
  * pysmbc - Python bindings for libsmbclient
- * Copyright (C) 2002, 2005, 2006, 2007, 2008  Tim Waugh <[email protected]>
+ * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2011  Tim Waugh 
<[email protected]>
  * Copyright (C) 2010  Patrick Geltinger <[email protected]>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -112,19 +112,19 @@
            dent->smbc_type < (sizeof (types) / sizeof *(types)) ?
            types[dent->smbc_type] : "?",
            dent);
-  return PyUnicode_FromString (s);
+  return PyBytes_FromStringAndSize (s, strlen (s));
 }
 
 static PyObject *
 Dirent_getName (Dirent *self, void *closure)
 {
-  return PyUnicode_FromString (self->name);
+  return PyBytes_FromStringAndSize (self->name, strlen (self->name));
 }
 
 static PyObject *
 Dirent_getComment (Dirent *self, void *closure)
 {
-  return PyUnicode_FromString (self->comment);
+  return PyBytes_FromStringAndSize (self->comment, strlen (self->comment));
 }
 
 static PyObject *

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to