From 7200cf9139af7d4eb95b8ab6d03cd49e0a1180eb71fcdc2082a8cb7c9f04409e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 22 Apr 2021 22:35:11 +0000 Subject: [PATCH] - Add no-need-parameterized.patch ... we don't need run-time requirement of parameterized package (bsc#1185150). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=101 --- no-need-parameterized.patch | 14 ++++++++++++++ python-M2Crypto.changes | 6 ++++++ python-M2Crypto.spec | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 no-need-parameterized.patch diff --git a/no-need-parameterized.patch b/no-need-parameterized.patch new file mode 100644 index 0000000..6daaa45 --- /dev/null +++ b/no-need-parameterized.patch @@ -0,0 +1,14 @@ +--- a/setup.py ++++ b/setup.py +@@ -33,9 +33,9 @@ logging.basicConfig(format='%(levelname) + stream=sys.stdout, level=logging.INFO) + log = logging.getLogger('setup') + +-requires_list = ['parameterized'] ++requires_list = [] + if (2, 6) < sys.version_info[:2] < (3, 5): +- requires_list = ['typing'] ++ requires_list.append('typing') + if sys.version_info[0] > 2: + from typing import Dict, List + diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index 443b58c..8d54e31 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 22 22:33:46 UTC 2021 - Matej Cepl + +- Add no-need-parameterized.patch ... we don't need run-time requirement + of parameterized package (bsc#1185150). + ------------------------------------------------------------------- Fri Feb 19 12:56:50 UTC 2021 - Matej Cepl diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index cfd7ab7..6166663 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -34,6 +34,9 @@ Patch0: python-M2Crypto-Allow-on-UNABLE_TO_VERIFY_LEAF_SIGNATURE.patch # PATCH-FIX-UPSTREAM 293_sslv23_padding.patch gl#m2crypto/m2crypto#293 mcepl@suse.com # RSA_SSLV23_PADDING is evil and should be avoided. Patch1: 293_sslv23_padding.patch +# PATCH-FIX-OPENSUSE no-need-parameterized.patch bsc#1185150 mcepl@suse.com +# no need to require parameterized for normal use +Patch2: no-need-parameterized.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module parameterized} BuildRequires: %{python_module pytest}