From 5ebfa5c9c002bd3efd937253cbe9a0c97fa9527ac8ae80dde33cf6f62e6f327a Mon Sep 17 00:00:00 2001
From: Stephan Kulow <coolo@suse.com>
Date: Fri, 3 Dec 2010 14:37:30 +0000
Subject: [PATCH] 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-HTML-Parser?expand=0&rev=28
---
 perl-HTML-Parser.spec | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/perl-HTML-Parser.spec b/perl-HTML-Parser.spec
index 6c626ad..68d813b 100644
--- a/perl-HTML-Parser.spec
+++ b/perl-HTML-Parser.spec
@@ -30,10 +30,9 @@ Url:            http://search.cpan.org/dist/HTML-Parser/
 #Source:         http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{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
 %if %{with opt}
 BuildRequires:  perl(HTTP::Headers)
 BuildRequires:  perl(Test::Pod) >= 1.00
@@ -42,7 +41,6 @@ BuildRequires:  perl(Test::More)
 BuildRequires:  perl(HTML::Tagset) >= 3
 BuildRequires:  perl(XSLoader)
 #
-%{perl_requires}
 Requires:       perl(HTML::Tagset) >= 3
 Requires:       perl(XSLoader)
 Recommends:     perl(HTTP::Headers)