Hello community,

here is the log from the commit of package python-M2Crypto for openSUSE:Factory 
checked in at 2017-10-27 13:47:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-M2Crypto (Old)
 and      /work/SRC/openSUSE:Factory/.python-M2Crypto.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-M2Crypto"

Fri Oct 27 13:47:28 2017 rev:24 rq:536615 version:0.27.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-M2Crypto/python-M2Crypto.changes  
2017-09-29 11:49:32.600239354 +0200
+++ /work/SRC/openSUSE:Factory/.python-M2Crypto.new/python-M2Crypto.changes     
2017-10-27 13:47:31.554987459 +0200
@@ -1,0 +2,26 @@
+Wed Oct 25 20:07:14 UTC 2017 - [email protected]
+
+- License set to MIT
+
+-------------------------------------------------------------------
+Fri Oct 20 13:51:00 UTC 2017 - [email protected]
+
+- Remove unnecessary fdupes call 
+
+-------------------------------------------------------------------
+Wed Oct 18 07:13:58 UTC 2017 - [email protected]
+
+- Update to 0.27.0
+  * Fix licence: it is MIT, not BSD
+  * At least minimal support of SNI in httpslib.
+  * Small bugfixes and cleanups.
+  * More effort to make build system more robust.
+  * Restore m2.rsa_set_e() and m2.rsa_set_n().
+  * Make sure that every exceptional return throws and exception and viceversa.
+- Add patch fix-build-python3.diff to let it build with python3
+- Add patch fix-openssl-include-path.diff to fix openssl include path
+  (the code already includes the openssl/ part)
+- Create a new package python-M2Crypto-doc for documentation since rpmlint
+  was complaining around 75% of the package was documentation.
+
+-------------------------------------------------------------------

Old:
----
  M2Crypto-0.26.4.tar.gz

New:
----
  M2Crypto-0.27.0.tar.gz
  fix-build-python3.diff
  fix-openssl-include-path.diff

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

Other differences:
------------------
++++++ python-M2Crypto.spec ++++++
--- /var/tmp/diff_new_pack.Uve8i7/_old  2017-10-27 13:47:32.474944462 +0200
+++ /var/tmp/diff_new_pack.Uve8i7/_new  2017-10-27 13:47:32.478944275 +0200
@@ -22,13 +22,17 @@
 %define oldpython python
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-M2Crypto
-Version:        0.26.4
+Version:        0.27.0
 Release:        0
 Url:            https://gitlab.com/m2crypto/m2crypto
 Summary:        Crypto and SSL toolkit for Python
-License:        MIT and ZPL-2.0 and BSD-3-Clause
+License:        MIT
 Group:          Development/Languages/Python
 Source:         
https://pypi.io/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix-build-python3.diff -- Fixes a str/bytes issue when 
building with python3
+Patch0:         fix-build-python3.diff
+# PATCH-FIX-OPENSUSE fix-openssl-include-path.diff -- Fixes include path for 
openssl
+Patch1:         fix-openssl-include-path.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
@@ -67,8 +71,28 @@
 server. S/MIME. ZServerSSL: A HTTPS server for Zope. ZSmime: An S/MIME
 messenger for Zope.
 
+%package -n %{name}-doc
+Summary:        Documentation for the Crypto and SSL toolkit for Python
+Group:          Development/Libraries/Python
+BuildArch:      noarch
+Requires:       %{name} = %{version}
+
+%description -n %{name}-doc
+M2Crypto is a crypto and SSL toolkit for Python featuring the following:
+
+RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including
+AES). SSL functionality to implement clients and servers. HTTPS
+extensions to Python's httplib, urllib, and xmlrpclib. Unforgeable
+HMAC'ing AuthCookies for web session management. FTP/TLS client and
+server. S/MIME. ZServerSSL: A HTTPS server for Zope. ZSmime: An S/MIME
+messenger for Zope.
+
+Documentation for the Crypto and SSL toolkit for Python
+
 %prep
 %setup -q -n M2Crypto-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 export CFLAGS="%{optflags}"
@@ -86,7 +110,10 @@
 %files %{python_files}
 %defattr(-,root,root)
 %doc CHANGES LICENCE README.rst
-%doc doc/
 %{python_sitearch}/*
 
+%files -n %{name}-doc
+%defattr(-,root,root)
+%doc doc/*
+
 %changelog

++++++ M2Crypto-0.26.4.tar.gz -> M2Crypto-0.27.0.tar.gz ++++++
++++ 3676 lines of diff (skipped)

++++++ fix-build-python3.diff ++++++
Index: M2Crypto-0.27.0/setup.py
===================================================================
--- M2Crypto-0.27.0.orig/setup.py
+++ M2Crypto-0.27.0/setup.py
@@ -48,7 +48,10 @@ def _get_additional_includes():
                            stdout=subprocess.PIPE,
                            stderr=subprocess.PIPE)
     _, err = pid.communicate()
-    err = [line.lstrip() for line in err.split('\n') if line and line[0] == ' 
']
+    if sys.version_info[0] == 2:
+        err = [line.lstrip() for line in err.split('\n') if line and line[0] 
== ' ']
+    else:
+        err = [line.lstrip() for line in err.split(b'\n') if line and line[0] 
== b' ']
     return err
 
 
++++++ fix-openssl-include-path.diff ++++++
Index: M2Crypto-0.27.0/setup.py
===================================================================
--- M2Crypto-0.27.0.orig/setup.py
+++ M2Crypto-0.27.0/setup.py
@@ -159,7 +164,7 @@ class _M2CryptoBuildExt(build_ext.build_
 
         if platform.system() == "Linux":
             self.include_dirs += _get_additional_includes()
-            inc_openssl_dir = '/usr/include/openssl'
+            inc_openssl_dir = '/usr/include/'
             if inc_openssl_dir not in self.include_dirs:
                 self.include_dirs.append(inc_openssl_dir)
             log.debug('self.include_dirs = %s', self.include_dirs)

Reply via email to