always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-Strptime?expand=0&rev=7
This commit is contained in:
Stephan Kulow 2010-12-03 14:01:43 +00:00 committed by Git OBS Bridge
parent 29f5fda64e
commit 94fef67f87

View File

@ -30,15 +30,13 @@ Source: %{cpan_name}-%{version}.tar.bz2
Patch: %{cpan_name}-1.5000-deps.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(DateTime) >= 0.44
BuildRequires: perl(DateTime::Locale) >= 0.45
BuildRequires: perl(DateTime::TimeZone) >= 0.79
BuildRequires: perl(Params::Validate) >= 0.64
%{perl_requires}
Requires: perl(DateTime) >= 0.44
Requires: perl(DateTime::Locale) >= 0.45
Requires: perl(DateTime::TimeZone) >= 0.79