From 0602bb09f547ea1228714bbfe6144c99fa51b0f43a4adf75435cc6ae7b941b10 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 4 Jun 2013 17:22:00 +0000 Subject: [PATCH] Accepting request 177555 from home:coolo:update-perl - updated to 0.622 - Fix bug where output is an IO::Scalar. - Include selfcontained_output.t in the distribution. - Allow OUTPUT => 'self' (#81327). OBS-URL: https://build.opensuse.org/request/show/177555 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Writer?expand=0&rev=30 --- XML-Writer-0.615.tar.gz | 3 --- XML-Writer-0.622.tar.gz | 3 +++ perl-XML-Writer.changes | 8 ++++++ perl-XML-Writer.spec | 56 ++++++++++++++++++++++------------------- 4 files changed, 41 insertions(+), 29 deletions(-) delete mode 100644 XML-Writer-0.615.tar.gz create mode 100644 XML-Writer-0.622.tar.gz diff --git a/XML-Writer-0.615.tar.gz b/XML-Writer-0.615.tar.gz deleted file mode 100644 index 9425cc6..0000000 --- a/XML-Writer-0.615.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f05384f7b0686cce9e83fa5f16f3603e3805c969ff88e60c2d7f08183a10f496 -size 27418 diff --git a/XML-Writer-0.622.tar.gz b/XML-Writer-0.622.tar.gz new file mode 100644 index 0000000..7e8b6f3 --- /dev/null +++ b/XML-Writer-0.622.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:118b28996c87d8f63cd4c84e1079b8d2c339b7188c429a3414fc79e7505e4a35 +size 28605 diff --git a/perl-XML-Writer.changes b/perl-XML-Writer.changes index 72f4f83..805ff14 100644 --- a/perl-XML-Writer.changes +++ b/perl-XML-Writer.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Jun 4 17:13:35 UTC 2013 - coolo@suse.com + +- updated to 0.622 + - Fix bug where output is an IO::Scalar. + - Include selfcontained_output.t in the distribution. + - Allow OUTPUT => 'self' (#81327). + ------------------------------------------------------------------- Thu Jan 19 02:34:02 UTC 2012 - vcizek@suse.com diff --git a/perl-XML-Writer.spec b/perl-XML-Writer.spec index 75d37f9..4c234d7 100644 --- a/perl-XML-Writer.spec +++ b/perl-XML-Writer.spec @@ -1,7 +1,7 @@ # # spec file for package perl-XML-Writer # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products 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,28 +15,26 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%bcond_with pod Name: perl-XML-Writer -Version: 0.615 +Version: 0.622 Release: 0 %define cpan_name XML-Writer -Summary: Perl extension for writing XML documents +Summary: Perl extension for writing XML documents. License: MIT Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/XML-Writer/ -#Source: http://www.cpan.org/modules/by-module/XML/XML-Writer-%{version}.tar.gz -Source: http://search.cpan.org/CPAN/authors/id/J/JO/JOSEPHW/%{cpan_name}-%{version}.tar.gz - +Source: http://www.cpan.org/authors/id/J/JO/JOSEPHW/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +#BuildRequires: perl(Algorithm::Diff) +#BuildRequires: perl(DateTime) +#BuildRequires: perl(IO::Scalar) +#BuildRequires: perl(URI::URL) +#BuildRequires: perl(XML::Writer) %{perl_requires} -%if %{with pod} -BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: perl(Test::Pod::Coverage) -%endif %description XML::Writer is a helper module for Perl programs that write an XML @@ -44,30 +42,36 @@ document. The module handles all escaping for attribute values and character data and constructs different types of markup, such as tags, comments, and processing instructions. +By default, the module performs several well-formedness checks to catch +errors during output. This behaviour can be extremely useful during +development and debugging, but it can be turned off for production-grade +code. + +The module can operate either in regular mode in or Namespace processing +mode. In Namespace mode, the module will generate Namespace Declarations +itself, and will perform additional checks on the output. + +Additional support is available for a simplified data mode with no mixed +content: newlines are automatically inserted around elements and elements +can optionally be indented based as their nesting level. + %prep %setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -rm -rf %{buildroot}%perl_vendorarch -# remove perllocal.pod file -rm -rf %{buildroot}%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -rm -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,-) -%doc Changes LICENSE README TODO +%defattr(-,root,root,755) +%doc Changes examples LICENSE README TODO %changelog