diff --git a/HTML-TagParser-0.16.tar.gz b/HTML-TagParser-0.16.tar.gz deleted file mode 100644 index 3d3ecae..0000000 --- a/HTML-TagParser-0.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fcc46691b2ad628dec2f862ebaf1f495a5ac07d156d3300dcce83c32ad90f05 -size 39626 diff --git a/HTML-TagParser-0.20.tar.gz b/HTML-TagParser-0.20.tar.gz new file mode 100644 index 0000000..6fd7289 --- /dev/null +++ b/HTML-TagParser-0.20.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f107815f1b615f4c05d68deb95d3f5c5a3912c79a88c39eb3699bf7cfd15f37 +size 40895 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b320f5 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#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-TagParser.changes b/perl-HTML-TagParser.changes index 46320e3..8a38b99 100644 --- a/perl-HTML-TagParser.changes +++ b/perl-HTML-TagParser.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Thu Apr 16 20:15:49 UTC 2015 - coolo@suse.com + +- updated to 0.20 + see /usr/share/doc/packages/perl-HTML-TagParser/Changes + + 2012/05/03 (0.20) + * "AUTHORS AND CONTRIBUTORS" section added + * requires Perl 5.8.1 at least + + 2012/05/03 (0.16.4) [not released] + * Don't die on encodings that don't exist [twilde] + * Regression test for bogus character set detection [twilde] + * Make Encode mandatory, remove Jcode [twilde] + + 2012/05/01 (0.16.3) [not released] + * moved to github + * https://github.com/kawanet/HTML-TagParser + + 2008/10/28 [not released] + * drry: fixed regexes. removed subversion properties. et cetera. + * http://coderepos.org/share/changeset/22252 + + 2008/10/27 (0.16.1) [not released] + * HTML-TagParser-0.16-subtree.diff patch from Juergen Weigert + * http://coderepos.org/share/changeset/22229 + + 2008/10/27 (0.16) [not released] + * imported to CodeRepos + * http://svn.coderepos.org/share/lang/perl/HTML-TagParser/trunk/ + * http://coderepos.org/share/changeset/22228 + ------------------------------------------------------------------- Wed Dec 1 13:32:53 UTC 2010 - coolo@novell.com diff --git a/perl-HTML-TagParser.spec b/perl-HTML-TagParser.spec index da78427..a909362 100644 --- a/perl-HTML-TagParser.spec +++ b/perl-HTML-TagParser.spec @@ -1,7 +1,7 @@ # # spec file for package perl-HTML-TagParser # -# Copyright (c) 2011 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 @@ -15,68 +15,50 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - -%define oversion 0.16 Name: perl-HTML-TagParser -Url: http://search.cpan.org/~kawasaki/HTML-TagParser-%{oversion}/ -License: GPL, Artistic License -Group: Development/Languages/Perl -AutoReqProv: on +Version: 0.20 +Release: 0 +%define cpan_name HTML-TagParser Summary: Yet another HTML document parser with DOM-like methods - -Version: 0.16.1 -Release: 1 -Source: HTML-TagParser-%{oversion}.tar.gz -Patch: HTML-TagParser-%{oversion}-subtree.diff +License: Artistic-1.0 or GPL-1.0+ +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/HTML-TagParser/ +Source0: http://www.cpan.org/authors/id/K/KA/KAWASAKI/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Encode) >= 2.13 +Requires: perl(Encode) >= 2.13 +%{perl_requires} %description -HTML::TagParser - Yet another HTML document parser with DOM-like methods. -Patched version with improved container detection, added subtree extraction and -DOM-like navigation methods. - -Authors: --------- -Yusuke Kawasaki - -Contributors ------------- -Juergen Weigert - +HTML::TagParser is a pure Perl module which parses HTML/XHTML files. This +module provides some methods like DOM interface. This module is not strict +about XHTML format because many of HTML pages are not strict. You know, +many pages use
elemtents instead of
and have

elements which +are not closed. %prep -%setup -n HTML-TagParser-%{oversion} -%patch -p1 +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -perl Makefile.PL -make -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -chmod a-x README -make DESTDIR=$RPM_BUILD_ROOT install_vendor -%if 0%{?suse_version} +%perl_make_install %perl_process_packlist -%else -rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod -%endif +%perl_gen_filelist -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc MANIFEST Changes README -%{perl_vendorlib}/HTML -%dir %{perl_vendorarch}/auto/HTML-TagParser -%{_mandir}/man3/HTML::TagParser*.3pm* -%if 0%{?suse_version} -%endif +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes make-dist.sh README %changelog