From ebbe65d4a2456b8f3a701da331acc9613a1d76a9 Mon Sep 17 00:00:00 2001 From: "Kai A. Hiller" Date: Fri, 21 Jan 2022 22:37:04 +0100 Subject: [PATCH] Add available python extras subpackages --- matrix-synapse.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 9d1ae6a..69182ed 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -15,9 +15,15 @@ Source2: synapse.service Source3: matrix-synapse.sysusers BuildArch: noarch +Recommends: %{name}+postgres +Recommends: %{name}+systemd + BuildRequires: python3-devel BuildRequires: /usr/bin/openssl BuildRequires: systemd-rpm-macros +# Workaround missing python-saml2 dependencies in f35 and f36. +BuildRequires: xmlsec1 +BuildRequires: xmlsec1-openssl %description Matrix is an ambitious new ecosystem for open federated Instant Messaging and @@ -27,6 +33,8 @@ to showcase the concept of Matrix and let folks see the spec in the context of a coded base and let you run your own homeserver and generally help bootstrap the ecosystem. +%pyproject_extras_subpkg -n %{name} matrix-synapse-ldap3 postgres saml2 oidc systemd url_preview jwt cache_memory + %prep %autosetup -p1 -n %{srcname}-%{version}%{rcx} @@ -36,7 +44,9 @@ rm -rf synapse/static %generate_buildrequires -%pyproject_buildrequires -x test,systemd +# Missing: sentry,opentracing,redis +%pyproject_buildrequires -x test,matrix-synapse-ldap3,postgres,saml2,oidc,systemd,url_preview,jwt,cache_memory + %build