[packages/python-M2Crypto] - up to 0.38.0

baggins baggins at pld-linux.org
Wed Oct 13 22:37:59 CEST 2021


commit 183127c68c1b9b2b6a15c58e4f1a1a94ec00e178
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Oct 13 22:37:41 2021 +0200

    - up to 0.38.0

 python-M2Crypto-store2ssl.patch | 13 ----------
 python-M2Crypto-swig.patch      | 53 -----------------------------------------
 python-M2Crypto.spec            | 10 +++-----
 3 files changed, 3 insertions(+), 73 deletions(-)
---
diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec
index df3fde6..9512e2e 100644
--- a/python-M2Crypto.spec
+++ b/python-M2Crypto.spec
@@ -10,15 +10,13 @@
 Summary:	Python interface to OpenSSL
 Summary(pl.UTF-8):	Interfejs Pythona do OpenSSL
 Name:		python-M2Crypto
-Version:	0.30.1
-Release:	5
+Version:	0.38.0
+Release:	1
 License:	BSD-like
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/m2crypto/
 Source0:	https://pypi.debian.net/M2Crypto/M2Crypto-%{version}.tar.gz
-# Source0-md5:	7fce3cbf85eb84a669682892b935746b
-Patch0:		%{name}-store2ssl.patch
-Patch1:		%{name}-swig.patch
+# Source0-md5:	8f39bfac730b6567e0c2179d15318c60
 URL:		https://gitlab.com/m2crypto/m2crypto
 BuildRequires:	openssl-devel >= 1.0.1e
 %if %{with python2}
@@ -85,8 +83,6 @@ pliku LICENCE.
 
 %prep
 %setup -q -n M2Crypto-%{version}
-%patch0 -p1
-%patch1 -p1
 
 %build
 %if %{with python2}
diff --git a/python-M2Crypto-store2ssl.patch b/python-M2Crypto-store2ssl.patch
deleted file mode 100644
index d1ce88d..0000000
--- a/python-M2Crypto-store2ssl.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- m2crypto-0.17beta1/SWIG/_ssl.i.orig	2006-04-01 00:11:55.000000000 +0200
-+++ m2crypto-0.17beta1/SWIG/_ssl.i	2006-12-06 23:41:00.895934552 +0100
-@@ -699,5 +699,10 @@
- {
-   return SSL_is_init_finished(ssl);
- }
-+
-+SSL *x509_store_ctx_get_ssl(X509_STORE_CTX *ctx) {
-+  return (SSL *)X509_STORE_CTX_get_app_data(ctx);
-+}
-+
- %}
- 
diff --git a/python-M2Crypto-swig.patch b/python-M2Crypto-swig.patch
deleted file mode 100644
index ad40a14..0000000
--- a/python-M2Crypto-swig.patch
+++ /dev/null
@@ -1,53 +0,0 @@
---- m2crypto-0.18.1/SWIG/_x509.i.orig	2007-06-14 00:57:34.000000000 +0200
-+++ m2crypto-0.18.1/SWIG/_x509.i	2007-11-25 21:43:40.598378211 +0100
-@@ -279,19 +279,19 @@
- %constant int XN_FLAG_SPC_EQ = (1 << 23);
- %constant int XN_FLAG_DUMP_UNKNOWN_FIELDS = (1 << 24);
- %constant int XN_FLAG_FN_ALIGN = (1 << 25);
--%constant int XN_FLAG_ONELINE =(ASN1_STRFLGS_RFC2253 | \
--            ASN1_STRFLGS_ESC_QUOTE | \
--            XN_FLAG_SEP_CPLUS_SPC | \
-+%constant int XN_FLAG_ONELINE =(ASN1_STRFLGS_RFC2253 |
-+            ASN1_STRFLGS_ESC_QUOTE |
-+            XN_FLAG_SEP_CPLUS_SPC |
-             XN_FLAG_SPC_EQ);
--%constant int XN_FLAG_MULTILINE = (ASN1_STRFLGS_ESC_CTRL | \
--            ASN1_STRFLGS_ESC_MSB | \
--            XN_FLAG_SEP_MULTILINE | \
--            XN_FLAG_SPC_EQ | \
--            XN_FLAG_FN_LN | \
-+%constant int XN_FLAG_MULTILINE = (ASN1_STRFLGS_ESC_CTRL |
-+            ASN1_STRFLGS_ESC_MSB |
-+            XN_FLAG_SEP_MULTILINE |
-+            XN_FLAG_SPC_EQ |
-+            XN_FLAG_FN_LN |
-             XN_FLAG_FN_ALIGN);
--%constant int XN_FLAG_RFC2253 = (ASN1_STRFLGS_RFC2253 | \
--            XN_FLAG_SEP_COMMA_PLUS | \
--            XN_FLAG_DN_REV | \
-+%constant int XN_FLAG_RFC2253 = (ASN1_STRFLGS_RFC2253 |
-+            XN_FLAG_SEP_COMMA_PLUS |
-+            XN_FLAG_DN_REV |
-             XN_FLAG_DUMP_UNKNOWN_FIELDS);
- 
- /* Cribbed from rsa.h. */
---- M2Crypto-0.27.0/SWIG/_asn1.i~	2017-10-05 22:43:17.000000000 +0200
-+++ M2Crypto-0.27.0/SWIG/_asn1.i	2017-10-29 10:43:11.639300285 +0100
-@@ -107,11 +107,11 @@ extern int ASN1_INTEGER_cmp(ASN1_INTEGER
- %constant int ASN1_STRFLGS_DUMP_UNKNOWN = 0x100;
- %constant int ASN1_STRFLGS_DUMP_DER = 0x200;
- 
--%constant int ASN1_STRFLGS_RFC2253 = (ASN1_STRFLGS_ESC_2253 | \
--                ASN1_STRFLGS_ESC_CTRL | \
--                ASN1_STRFLGS_ESC_MSB | \
--                ASN1_STRFLGS_UTF8_CONVERT | \
--                ASN1_STRFLGS_DUMP_UNKNOWN | \
-+%constant int ASN1_STRFLGS_RFC2253 = (ASN1_STRFLGS_ESC_2253 |
-+                ASN1_STRFLGS_ESC_CTRL |
-+                ASN1_STRFLGS_ESC_MSB |
-+                ASN1_STRFLGS_UTF8_CONVERT |
-+                ASN1_STRFLGS_DUMP_UNKNOWN |
-                 ASN1_STRFLGS_DUMP_DER);
- 
- %inline %{
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-M2Crypto.git/commitdiff/183127c68c1b9b2b6a15c58e4f1a1a94ec00e178



More information about the pld-cvs-commit mailing list