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
This commit is contained in:
parent
7c6a4fd7b9
commit
5ebfa5c9c0
@ -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: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
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
|
|
||||||
%if %{with opt}
|
%if %{with opt}
|
||||||
BuildRequires: perl(HTTP::Headers)
|
BuildRequires: perl(HTTP::Headers)
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
@ -42,7 +41,6 @@ BuildRequires: perl(Test::More)
|
|||||||
BuildRequires: perl(HTML::Tagset) >= 3
|
BuildRequires: perl(HTML::Tagset) >= 3
|
||||||
BuildRequires: perl(XSLoader)
|
BuildRequires: perl(XSLoader)
|
||||||
#
|
#
|
||||||
%{perl_requires}
|
|
||||||
Requires: perl(HTML::Tagset) >= 3
|
Requires: perl(HTML::Tagset) >= 3
|
||||||
Requires: perl(XSLoader)
|
Requires: perl(XSLoader)
|
||||||
Recommends: perl(HTTP::Headers)
|
Recommends: perl(HTTP::Headers)
|
||||||
|
Loading…
Reference in New Issue
Block a user