From 10c87e16d3730ea4fd9408d269b32d41950df9c0 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Jan 07 2021 11:26:53 +0000 Subject: wrap ruby 3.0 newly dependency with macro --- diff --git a/alexandria.spec b/alexandria.spec index 00f4d53..e1eb702 100644 --- a/alexandria.spec +++ b/alexandria.spec @@ -91,7 +91,9 @@ BuildRequires: intltool BuildRequires: rubygem(rspec) # Needed since Ruby 3.0. # https://github.com/mvz/alexandria-book-collection-manager/issues/124 +%if 0%{?fedora} >= 34 BuildRequires: rubygem(rexml) +%endif # Amazon AWS v3 -> v4 switch # AWS v4 is supported by alexandria itself @@ -131,7 +133,9 @@ Requires: rubygem(gtk3) Requires: rubygem(syck) # Needed since Ruby 3.0. # https://github.com/mvz/alexandria-book-collection-manager/issues/124 +%if 0%{?fedora} >= 34 Requires: rubygem(rexml) +%endif Requires(pre): GConf2 Requires(post): GConf2