tweaks for f31/33
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 9 Nov 2020 19:57:36 +0000 (20:57 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 9 Nov 2020 19:57:38 +0000 (20:57 +0100)
sfa.spec

index 79773cb..b760767 100644 (file)
--- a/sfa.spec
+++ b/sfa.spec
@@ -31,10 +31,15 @@ BuildRequires: python2-lxml
 Requires: util-linux-ng
 # for the registry
 Requires: postgresql >= 8.2, postgresql-server >= 8.2
-Requires: postgresql-python
+# these are no longer supported in f33, use pip2 instead
+%if "%{distro}" == "Fedora" && "%{distrorelease}" <= "31"
+Requires: postgresql-python  # is actually an alias for python2-pygresql
+%endif
 Requires: python2-psycopg2
 Requires: python2-sqlalchemy
+%if "%{distro}" == "Fedora" && "%{distrorelease}" <= "29"
 Requires: python2-migrate
+%endif
 # and of course the bulk of it
 Requires: sfa-common
 
@@ -49,8 +54,10 @@ Requires: python2-lxml
 %if "%{distro}" == "Fedora" && "%{distrorelease}" <= "27"
 Requires: python-ZSI
 %else
+%if "%{distro}" == "Fedora" && "%{distrorelease}" <= "29"
 Requires: python2-zsi
 %endif
+%endif
 Requires: libxslt-python
 Requires: xmlsec1-openssl-devel