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-IO-Socket-SSL?expand=0&rev=19
This commit is contained in:
Stephan Kulow 2010-12-03 14:38:49 +00:00 committed by Git OBS Bridge
parent 3ef0b0c10a
commit 6d56742057

View File

@ -30,14 +30,12 @@ Url: http://search.cpan.org/dist/IO-Socket-SSL/
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
BuildRequires: perl(Net::LibIDN)
BuildRequires: perl(Net::SSLeay) >= 1.21
BuildRequires: perl(Scalar::Util)
%{perl_requires}
Requires: perl(Net::SSLeay) >= 1.21
Requires: perl(Scalar::Util)
Recommends: perl(IO::Socket::INET6)