diff --git a/0000-Use-Python-2-to-build-the-database-graphs.patch b/0000-Use-Python-2-to-build-the-database-graphs.patch new file mode 100644 index 0000000..3dca5d8 --- /dev/null +++ b/0000-Use-Python-2-to-build-the-database-graphs.patch @@ -0,0 +1,23 @@ +From 3f3c1978e400bbab58baef7ccad873dae538f7aa Mon Sep 17 00:00:00 2001 +From: Randy Barlow +Date: Fri, 16 Nov 2018 11:49:43 -0500 +Subject: [PATCH] Use Python 2 to build the database graphs. + +Signed-off-by: Randy Barlow +--- + docs/generate_db_schema | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/generate_db_schema b/docs/generate_db_schema +index a1fd83ec..c4472b44 100755 +--- a/docs/generate_db_schema ++++ b/docs/generate_db_schema +@@ -1,4 +1,4 @@ +-#!/usr/bin/python3 ++#!/usr/bin/python2 + """ + Generate an image of the database schema + """ +-- +2.19.1 + diff --git a/bodhi.spec b/bodhi.spec index 6e80bb2..88fbe38 100644 --- a/bodhi.spec +++ b/bodhi.spec @@ -1,6 +1,6 @@ Name: bodhi Version: 3.11.0 -Release: 1%{?dist} +Release: 2%{?dist} BuildArch: noarch License: GPLv2+ @@ -9,6 +9,10 @@ Group: Applications/Internet URL: https://github.com/fedora-infra/bodhi Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +# sqlalchemy_schemadisplay is only available via Python 3 in Fedora >= 30, so let's patch Bodhi to +# build the database graphs with Python 2. +Patch0: 0000-Use-Python-2-to-build-the-database-graphs.patch + BuildRequires: %{py2_dist alembic} BuildRequires: %{py2_dist arrow} BuildRequires: %{py2_dist bleach} @@ -446,6 +450,9 @@ virtualenv --python=%{__python3} --system-site-packages --no-pip --never-downloa %changelog +* Fri Nov 16 2018 Randy Barlow - 3.11.0-2 +- Build database graphs with Python 2. + * Fri Nov 16 2018 Randy Barlow - 3.11.0-1 - Update to 3.11.0.