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-DBI?expand=0&rev=24
This commit is contained in:
Stephan Kulow 2010-12-03 14:02:13 +00:00 committed by Git OBS Bridge
parent 6ef9d5582d
commit 52689a4967

View File

@ -30,10 +30,9 @@ Url: http://search.cpan.org/dist/DBI/
#Source: http://www.cpan.org/modules/by-module/DBI/DBI-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Test::Simple) >= 0.90
#
%if %{with opt}
@ -45,7 +44,6 @@ BuildRequires: perl(RPC::PlServer) >= 0.2001
BuildRequires: perl(SQL::Statement) >= 1.28
%endif
#
%{perl_requires}
%if 0%{?suse_version} > 0
Recommends: perl(Clone) >= 0.31
Recommends: perl(DB_File)