diff --git a/macros.perl b/macros.perl index 3ea4f7c..4ec7a2c 100644 --- a/macros.perl +++ b/macros.perl @@ -26,15 +26,9 @@ # we keep the complicated form even here to easy sync the other macros with # perl-macros package # -%if 0%{?suse_version} -# dummy version for the version mls added automatic version requires -%if %suse_version < 1701 -%perl_requires Requires: perl = %{perl_version} -%else -%perl_requires nil -%endif -%else -%perl_requires nil +%perl_requires() \ +%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1700 \ +Requires: perl = %{perl_version} \ %endif # suse specific macros