8
0
Stephan Kulow
2011-01-14 13:00:09 +00:00
committed by Git OBS Bridge
parent 149e1612e3
commit 7df1922403
3 changed files with 18 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
All this does is to avoid a match in perl.prov
Index: HTML-TreeBuilder-XPath-0.12/lib/HTML/TreeBuilder/XPath.pm
===================================================================
--- HTML-TreeBuilder-XPath-0.12.orig/lib/HTML/TreeBuilder/XPath.pm 2011-01-14 13:07:18.000000000 +0100
+++ HTML-TreeBuilder-XPath-0.12/lib/HTML/TreeBuilder/XPath.pm 2011-01-14 13:08:22.366315163 +0100
@@ -93,7 +93,8 @@ sub cmp
# need to modify directly the HTML::Element package, because HTML::TreeBuilder won't let me
# change the class of the nodes it generates
-package HTML::Element;
+package
+ HTML::Element;
use Scalar::Util qw(weaken);
use vars qw(@ISA);

View File

@@ -1,3 +0,0 @@
#!/bin/sh
/usr/lib/rpm/find-provides "$@" | sed -e '/HTML::Element/d'

View File

@@ -34,9 +34,8 @@ BuildRequires: perl-macros
Requires: perl(HTML::TreeBuilder) Requires: perl(HTML::TreeBuilder)
Requires: perl(List::Util) Requires: perl(List::Util)
Requires: perl(XML::XPathEngine) >= 0.12 Requires: perl(XML::XPathEngine) >= 0.12
Patch0: HTML-TreeBuilder-XPath-break.diff
Source99: HTML-TreeBuilder-XPath-filter-provides.sh
%define __find_provides %{SOURCE99}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%{perl_requires} %{perl_requires}
@@ -47,7 +46,7 @@ easy to query a document.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
chmod +x %{__find_provides} %patch0 -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor