diff --git a/perl-HTML-Format.spec b/perl-HTML-Format.spec
index 9626c1f..0deb098 100644
--- a/perl-HTML-Format.spec
+++ b/perl-HTML-Format.spec
@@ -1,6 +1,6 @@
Name: perl-HTML-Format
Version: 2.11
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: HTML formatter modules
Group: Development/Libraries
@@ -49,7 +49,11 @@ BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Synopsis)
+# Disable using of Test::Vars, because it failed with Perl 5.22.0
+# There is not a properly fix for it yet
+%if ! 0%(perl -e 'print $] >= 5.022')
BuildRequires: perl(Test::Vars)
+%endif
# These must match
# %FontFamilies in lib/HTML/FormatPS.pm
@@ -98,6 +102,9 @@ cd ..
%{_mandir}/man3/HTML*
%changelog
+* Wed May 27 2015 Jitka Plesnikova - 2.11-4
+- Disable using of Test::Vars with Perl 5.22
+
* Mon Sep 01 2014 Jitka Plesnikova - 2.11-3
- Perl 5.20 rebuild