From 0ac83272726109135e2643fc16d40d25e1c2ff6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 13 Mar 2013 08:59:10 +0100 Subject: [PATCH] Keep the spec working for older releases. --- facter.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/facter.spec b/facter.spec index 30ee3ab..faf9c06 100644 --- a/facter.spec +++ b/facter.spec @@ -43,7 +43,11 @@ Requires: pciutils Requires: net-tools # Work around the lack of ruby in the default mock buildroot %if "%{ruby_version}" +%if 0%{?fedora} >= 19 Requires: ruby(release) +%else +Requires: ruby(abi) = %{ruby_version} +%endif %endif Requires: which