From 41c3d76b55ef80e9a202db52c81c40bd7b7d88a7 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Thu, 1 Apr 2021 13:09:06 +0100 Subject: [PATCH] Workaround matrix requiring a cryptography fedora doesn't have. --- matrix-synapse.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 1728734..95544ba 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -79,6 +79,9 @@ the ecosystem. %prep %autosetup -p1 -n %{srcname}-%{ghversion}%{rcx} +# Worlaround fedora not having the right version of python crypto yet. +sed --debug -i "s/cryptography>=3.4.7;python_version>='3.6'/cryptography>=3.2.1/" synapse/python_dependencies.py + # We don't support the built-in client so remove all the bundled JS. rm -rf synapse/static