diff --git a/HTML-TreeBuilder-XPath-0.12.tar.gz b/HTML-TreeBuilder-XPath-0.12.tar.gz deleted file mode 100644 index 79a42e4..0000000 --- a/HTML-TreeBuilder-XPath-0.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24d3f7f9921d49aa2ec75922322f618a471948764a501ebc32192270ec1bab31 -size 10270 diff --git a/HTML-TreeBuilder-XPath-break.diff b/HTML-TreeBuilder-XPath-break.diff index 27aff8f..0887263 100644 --- a/HTML-TreeBuilder-XPath-break.diff +++ b/HTML-TreeBuilder-XPath-break.diff @@ -1,10 +1,10 @@ All this does is to avoid a match in perl.prov -Index: HTML-TreeBuilder-XPath-0.12/lib/HTML/TreeBuilder/XPath.pm +Index: HTML-TreeBuilder-XPath-0.14/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 +--- HTML-TreeBuilder-XPath-0.14.orig/lib/HTML/TreeBuilder/XPath.pm ++++ HTML-TreeBuilder-XPath-0.14/lib/HTML/TreeBuilder/XPath.pm +@@ -94,7 +94,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 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..798c94c --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,19 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + HTML-TreeBuilder-XPath-break.diff: -p1 +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-HTML-TreeBuilder-XPath.changes b/perl-HTML-TreeBuilder-XPath.changes index 73297b2..7d99401 100644 --- a/perl-HTML-TreeBuilder-XPath.changes +++ b/perl-HTML-TreeBuilder-XPath.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Thu Apr 16 21:36:24 UTC 2015 - coolo@suse.com + +- updated to 0.14 + see /usr/share/doc/packages/perl-HTML-TreeBuilder-XPath/Changes + + version 0.14 + date: 2011-09-20 + # bug fix + fix: comment() did not work, as the text was in {text} not {_text} + report and initial patch by perlover + + version 0.13 + date: 2011-06-19 + # minor improvement + added: make the link _parent a weakref + sent by Graham Barr https://rt.cpan.org/Public/Bug/Display.html?id=68896 + +------------------------------------------------------------------- +Thu Apr 16 21:36:23 UTC 2015 - coolo@suse.com + +- updated to 0.14 + see /usr/share/doc/packages/perl-HTML-TreeBuilder-XPath/Changes + + version 0.14 + date: 2011-09-20 + # bug fix + fix: comment() did not work, as the text was in {text} not {_text} + report and initial patch by perlover + + version 0.13 + date: 2011-06-19 + # minor improvement + added: make the link _parent a weakref + sent by Graham Barr https://rt.cpan.org/Public/Bug/Display.html?id=68896 + ------------------------------------------------------------------- Fri Jan 14 11:36:13 UTC 2011 - coolo@novell.com diff --git a/perl-HTML-TreeBuilder-XPath.spec b/perl-HTML-TreeBuilder-XPath.spec index 8fba404..eb8aec0 100644 --- a/perl-HTML-TreeBuilder-XPath.spec +++ b/perl-HTML-TreeBuilder-XPath.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-HTML-TreeBuilder-XPath (Version 0.12) +# spec file for package perl-HTML-TreeBuilder-XPath # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -14,30 +14,27 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# vim: set sw=4 ts=4 et nu: + Name: perl-HTML-TreeBuilder-XPath -Version: 0.12 -Release: 1 -License: GPL+ or Artistic +Version: 0.14 +Release: 0 %define cpan_name HTML-TreeBuilder-XPath -Summary: add XPath support to HTML::TreeBuilder -Url: http://search.cpan.org/dist/HTML-TreeBuilder-XPath/ +Summary: Add Xpath Support to Html::Treebuilder +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -#Source: http://www.cpan.org/authors/id/M/MI/MIROD/HTML-TreeBuilder-XPath-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz -BuildRequires: perl(HTML::TreeBuilder) -BuildRequires: perl(List::Util) -BuildRequires: perl(XML::XPathEngine) >= 0.12 +Url: http://search.cpan.org/dist/HTML-TreeBuilder-XPath/ +Source0: http://www.cpan.org/authors/id/M/MI/MIROD/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +Patch0: HTML-TreeBuilder-XPath-break.diff +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(HTML::TreeBuilder) +BuildRequires: perl(XML::XPathEngine) >= 0.12 Requires: perl(HTML::TreeBuilder) -Requires: perl(List::Util) Requires: perl(XML::XPathEngine) >= 0.12 -Patch0: HTML-TreeBuilder-XPath-break.diff - -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %{perl_requires} %description @@ -60,11 +57,8 @@ easy to query a document. %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc Changes README %changelog