From 4d9e7cc5ade7feee2be0ac3b031889d4c4bfd636 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 29 Nov 2010 20:22:44 +0100 Subject: fusioninventory-agent 2.1.7 beta1, without test because of Test::Compile not available --- fusioninventory-agent.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec index fcc9680..7d34eae 100644 --- a/fusioninventory-agent.spec +++ b/fusioninventory-agent.spec @@ -29,9 +29,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(Module::Install) # For tests BuildRequires: perl(Time::HiRes) perl(XML::Simple) perl(UNIVERSAL::require) perl(Test::More) -%if %{?fedora}%{?rhel} > 4 +# for fedora repo : %if 0%{?fedora}>= 12 || 0%{?rhel} >= 5 BuildRequires: perl(XML::TreePP) -%endif +# %endif %if 0%{?fedora} >= 11 BuildRequires: perl(Test::Compile) %endif @@ -186,8 +186,11 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' %{__install} -m 755 -Dp %{SOURCE2} %{buildroot}%{_initrddir}/%{name} +# Test fails for now when Test::Compile not available +%if 0%{?fedora} >= 11 %check make test +%endif %clean -- cgit