forked from pool/perl-HTML-TreeBuilder-XPath
This commit is contained in:
committed by
Git OBS Bridge
parent
149e1612e3
commit
7df1922403
16
HTML-TreeBuilder-XPath-break.diff
Normal file
16
HTML-TreeBuilder-XPath-break.diff
Normal 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);
|
||||
|
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/lib/rpm/find-provides "$@" | sed -e '/HTML::Element/d'
|
@@ -34,9 +34,8 @@ BuildRequires: perl-macros
|
||||
Requires: perl(HTML::TreeBuilder)
|
||||
Requires: perl(List::Util)
|
||||
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
|
||||
BuildArch: noarch
|
||||
%{perl_requires}
|
||||
@@ -47,7 +46,7 @@ easy to query a document.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
chmod +x %{__find_provides}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
|
Reference in New Issue
Block a user