+++ /dev/null
---- 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 %{
-
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}
%prep
%setup -q -n M2Crypto-%{version}
-%patch0 -p1
-%patch1 -p1
%build
%if %{with python2}