diff --git a/perl-Switch.spec b/perl-Switch.spec index 2e97a29..43b4b65 100644 --- a/perl-Switch.spec +++ b/perl-Switch.spec @@ -8,6 +8,7 @@ URL: http://search.cpan.org/dist/Switch/ Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Switch-%{version}.tar.gz Patch0: Switch-2.17-Filter-1.50.patch BuildRequires: perl +BuildRequires: perl-generators %if 0%(perl -e 'print $] > 5.011') BuildRequires: perl(deprecate) %endif