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-namespace-clean?expand=0&rev=4
This commit is contained in:
Stephan Kulow 2010-12-03 14:44:01 +00:00 committed by Git OBS Bridge
parent f9b1391b66
commit de2501968e

View File

@ -33,10 +33,9 @@ Patch0: %{name}_Build_n_Test.patch
%endif %endif
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros BuildRequires: perl-macros
%endif
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07 BuildRequires: perl(B::Hooks::EndOfScope) >= 0.07
BuildRequires: perl(constant) BuildRequires: perl(constant)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
@ -44,7 +43,6 @@ BuildRequires: perl(Package::Stash) >= 0.03
BuildRequires: perl(Sub::Identify) >= 0.04 BuildRequires: perl(Sub::Identify) >= 0.04
BuildRequires: perl(Sub::Name) >= 0.04 BuildRequires: perl(Sub::Name) >= 0.04
BuildRequires: perl(vars) BuildRequires: perl(vars)
%{perl_requires}
Requires: perl(B::Hooks::EndOfScope) >= 0.07 Requires: perl(B::Hooks::EndOfScope) >= 0.07
Requires: perl(Package::Stash) >= 0.03 Requires: perl(Package::Stash) >= 0.03
Requires: perl(Sub::Identify) >= 0.04 Requires: perl(Sub::Identify) >= 0.04