diff --git a/build.spec b/build.spec index 76c044a..3a4b182 100644 --- a/build.spec +++ b/build.spec @@ -48,19 +48,16 @@ BuildRequires: perl BuildRequires: psmisc BuildRequires: tar # For testcases -BuildRequires: perl(Date::Parse) BuildRequires: perl(Test::Harness) BuildRequires: perl(Test::More) -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?centos_version} Requires: perl-MD5 -Requires: perl-TimeDate -BuildRequires: perl-TimeDate +%else +BuildRequires: perl(Date::Parse) %endif Conflicts: bsdtar < 2.5.5 -BuildRequires: perl(Date::Parse) BuildRequires: perl(Test::Harness) BuildRequires: perl(Test::More) -BuildRequires: perl(YAML) BuildRequires: perl(YAML::LibYAML) %if 0%{?suse_version} > 1000 || 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 || 0%{?fedora_version} >= 21 # None of them are actually required for core features. @@ -73,7 +70,6 @@ Recommends: perl(Time::Zone) Recommends: perl(URI) Recommends: perl(XML::Parser) Recommends: perl(Net::SSL) -Recommends: perl(YAML) Recommends: perl(YAML::LibYAML) Recommends: bsdtar Recommends: qemu-linux-user