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-TimeZone?expand=0&rev=18
This commit is contained in:
parent
6e72db2bc0
commit
06ee67e6fc
@ -31,11 +31,10 @@ Url: http://search.cpan.org/dist/DateTime-TimeZone/
|
|||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
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 test}
|
%if %{with test}
|
||||||
BuildRequires: perl(DateTime) >= 0.16
|
BuildRequires: perl(DateTime) >= 0.16
|
||||||
%endif
|
%endif
|
||||||
@ -44,7 +43,6 @@ BuildRequires: perl(Class::Singleton) >= 1.03
|
|||||||
BuildRequires: perl(Cwd) >= 3
|
BuildRequires: perl(Cwd) >= 3
|
||||||
BuildRequires: perl(Params::Validate) >= 0.72
|
BuildRequires: perl(Params::Validate) >= 0.72
|
||||||
#
|
#
|
||||||
%{perl_requires}
|
|
||||||
Requires: perl(Class::Singleton) >= 1.03
|
Requires: perl(Class::Singleton) >= 1.03
|
||||||
Requires: perl(Cwd) >= 3
|
Requires: perl(Cwd) >= 3
|
||||||
Requires: perl(Params::Validate) >= 0.72
|
Requires: perl(Params::Validate) >= 0.72
|
||||||
|
Loading…
Reference in New Issue
Block a user