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-Business-ISBN?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2010-12-03 13:55:55 +00:00 committed by Git OBS Bridge
parent ea18f835b0
commit d09cb3852a

View File

@ -32,10 +32,9 @@ Url: http://search.cpan.org/dist/Business-ISBN/
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
%if %{with pod}
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage)
@ -48,7 +47,6 @@ BuildRequires: perl(Test::More)
## URI required by Makefile.PL
## but not used
#BuildRequires: perl(URI)
%{perl_requires}
Requires: perl(Business::ISBN::Data) >= 20081208
Recommends: perl(GD::Barcode::EAN13)
Recommends: perl(LWP::Simple)