1
0
forked from pool/perl-DateTime

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?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2010-12-03 14:01:22 +00:00 committed by Git OBS Bridge
parent 7c30b6472e
commit ec2d15836a

View File

@ -30,11 +30,10 @@ Url: http://search.cpan.org/dist/DateTime/
#Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz #Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2 Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros BuildRequires: perl-macros
%endif
%if %{with pod} %if %{with pod}
BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod) >= 1.14
@ -48,7 +47,6 @@ BuildRequires: perl(Params::Validate) >= 0.76
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Time::Local) >= 1.04 BuildRequires: perl(Time::Local) >= 1.04
# #
%{perl_requires}
Requires: perl(DateTime::Locale) >= 0.41 Requires: perl(DateTime::Locale) >= 0.41
Requires: perl(DateTime::TimeZone) >= 1.09 Requires: perl(DateTime::TimeZone) >= 1.09
Requires: perl(Params::Validate) >= 0.76 Requires: perl(Params::Validate) >= 0.76