Hello community,

here is the log from the commit of package perl-XML-Bare for openSUSE:Factory 
checked in at 2013-08-06 09:22:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-XML-Bare (Old)
 and      /work/SRC/openSUSE:Factory/.perl-XML-Bare.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-XML-Bare"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-XML-Bare/perl-XML-Bare.changes      
2012-02-16 12:26:05.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-XML-Bare.new/perl-XML-Bare.changes 
2013-08-06 09:22:33.000000000 +0200
@@ -1,0 +2,49 @@
+Mon Aug  5 13:51:57 UTC 2013 - [email protected]
+
+- add fix-pointers.diff to fix build on factory
+
+-------------------------------------------------------------------
+Sat Jul 27 11:58:24 UTC 2013 - [email protected]
+
+- updated to 0.53
+   - Remove executable permissions from files that shouldn't have them.
+   - Added shebang to main Bare.pm file ( apparently some people want this )
+   - Correct line endings to unix style on parser.c
+   - Improved simplify function that works properly with trees instead of just 
a single level
+   - Added hash2xml to quickly convert recursing hashes into XML
+   - Added proper binmode setting when outputting XML to address deficiences 
on Win32 ( such as failing Strawberry perl due to line endings )
+   - Added evil OS check in file writing code to address differences in how 
files must be opened to write utf8 on win32 versus linux/cygwin.
+   - Added note regarding using utf8 flag instead of using encoding(utf8)
+   - Altered UTF8 test to also write XML containing UTF8 to a file.
+   - New 'unsafe' parsing mode, giving a 30% speed increase with some downfalls
+   - New 'read_more' function, allowing more data to be read in before parsing 
into a tree
+   - Fixed some memory leaks
+   - Added 'Controversy' section to documentation
+   - Updated speed comparisons for feed2.xml, adding a comparison against 
XML::Fast as well
+     as a comparison of running in 'unsafe' mode.
+   - Spelling correction
+   - "Modernized" file handling using my variables
+   - Remove debugging print statements that were left in
+   - Include the new test cases in the distribution
+   - Fixes to find_by_perl
+     Can now be accessed in an object or namespace flexibly.
+     Now ignores case of keys.
+     Keys with underscores can be used.
+     Will work properly when passed a single node instead of an array 
reference of nodes.
+   - Fixes to xget
+     Method of deferencing has been changed to be compatible with newer 
versions of perl ( 5.10.2+ )
+   - Fixed handling of nodes named 'value'; they will no longer crash the XS 
code
+   - Added a new function similar to new called 'simple', that works in the 
same way but automatically uses the 'simple' parser
+   - Altered handling of node values in simple mode, so that it stores values 
when mixed with nodes or atttributes under 'content' ( like XML::Simple )
+     This feature was requested by users so it has been added. Note that it 
only does this when the value is not composed of just spaces and carriage 
returns.
+   - Revert code back to 0.45 version
+     Changes lost in the process:
+       Content is not stored in the 'content' key any more; it is stored as 
the node itself when the node contains nothing else. As God intended.
+       Memory leak fixes
+       Quote handling
+   - Code copyright returned fully to David Helkowski; any changes by other 
parties have been discarded. Any code ported in from other open source projects 
removed.
+     This has been done intentionally so as to make it possible to relicense 
the software commerically.
+   - XS code modofied to work in a multi-threaded environment
+   - Reverting Makefile.PL back to original wierd hackish fixes. They are 
there for specific reasons.
+
+-------------------------------------------------------------------

Old:
----
  XML-Bare-0.47.tar.gz

New:
----
  XML-Bare-0.53.tar.gz
  fix-pointers.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-XML-Bare.spec ++++++
--- /var/tmp/diff_new_pack.7FTRrk/_old  2013-08-06 09:22:34.000000000 +0200
+++ /var/tmp/diff_new_pack.7FTRrk/_new  2013-08-06 09:22:34.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-XML-Bare
 #
-# 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
@@ -16,54 +16,57 @@
 #
 
 
-
 Name:           perl-XML-Bare
-Version:        0.47
-Release:        16
-License:        GPL-2.0+ or Artistic-1.0
-Summary:        Minimal XML parser (Perl module)
-Url:            http://cpan.org/modules/by-module/XML
+Version:        0.53
+Release:        0
+%define cpan_name XML-Bare
+Summary:        Minimal XML parser implemented via a C state engine
+License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
-Source:         XML-Bare-%{version}.tar.gz
+Url:            http://search.cpan.org/dist/XML-Bare/
+Source:         
http://www.cpan.org/authors/id/C/CO/CODECHILD/%{cpan_name}-%{version}.tar.gz
+Patch0:         fix-pointers.diff
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-Requires:       expat
-Requires:       perl-XML-Parser
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  perl(Test::More) >= 0.94
 %{perl_requires}
 
 %description
-XML::Bare - A minimal XML parser that uses C to generate a folded perl
-hash.
-
-This package implements XML as the author thinks it should be, not as
-the standard says. Means this parser is not XML conform. So be very
-careful if you use this package, the result does not need to be the one
-you would expect.
+This module is a 'Bare' XML parser. It is implemented in C. The parser
+itself is a simple state engine that is less than 500 lines of C. The
+parser builds a C struct tree from input text. That C struct tree is
+converted to a Perl hash by a Perl function that makes basic calls back to
+the C to go through the nodes sequentially.
+
+The parser itself will only cease parsing if it encounters tags that are
+not closed properly. All other inputs will parse, even invalid inputs. To
+allowing checking for validity, a schema checker is included in the module
+as well.
+
+The schema format is custom and is meant to be as simple as possible. It is
+based loosely around the way multiplicity is handled in Perl regular
+expressions.
 
 %prep
-%setup -q -n XML-Bare-%{version}
+%setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
+find . -type f -print0 | xargs -0 chmod 644
 
 %build
-perl Makefile.PL
-make %{?_smp_mflags}
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+%{__make} %{?_smp_mflags}
 
 %check
-make test
+%{__make} test
 
 %install
-chmod a-x Changes lib/XML/Bare.pm
 %perl_make_install
 %perl_process_packlist
+%perl_gen_filelist
 
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root)
-%doc %{_mandir}/man?/*
+%files -f %{name}.files
+%defattr(-,root,root,755)
 %doc Changes README
-%{perl_vendorarch}/XML
-%{perl_vendorarch}/auto/XML
 
 %changelog

++++++ XML-Bare-0.47.tar.gz -> XML-Bare-0.53.tar.gz ++++++
++++ 41853 lines of diff (skipped)

++++++ fix-pointers.diff ++++++
Index: XML-Bare-0.53/parser.c
===================================================================
--- XML-Bare-0.53.orig/parser.c
+++ XML-Bare-0.53/parser.c
@@ -1,8 +1,6 @@
 #include "parser.h"
 #include<stdio.h>
-#ifdef DARWIN
-  #include "stdlib.h"
-#endif
+#include "stdlib.h"
 #ifdef NOSTRING
   void memset(char *s, int c, int n) {
     char *se = s + n;
@@ -419,7 +417,7 @@ int parserc_parse( struct parserc *self,
         case 0: last_state = ST_att_name; goto done;
         case '/': // self closing     !! /> is assumed !!
           curatt = nodec_addattr( curnode, attname, attname_len );
-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
+          if( !att_has_val ) { curatt->value = (char*)-1; curatt->vallen = 0; }
           attname_len            = 0;
           
           curnode->z = cpos+1-xmlin;
@@ -438,7 +436,7 @@ int parserc_parse( struct parserc *self,
           goto att_space;
         case '>':
           curatt = nodec_addattr( curnode, attname, attname_len );
-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
+          if( !att_has_val ) { curatt->value = (char*)-1; curatt->vallen = 0; }
           attname_len = 0;
           cpos++;
           goto val_1;
@@ -834,7 +832,7 @@ int parserc_parse_unsafely( struct parse
       switch( let ) {
         case '/': // self closing     !! /> is assumed !!
           curatt = nodec_addattr( curnode, attname, attname_len );
-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
+          if( !att_has_val ) { curatt->value = (char*)-1; curatt->vallen = 0; }
           attname_len = 0;
           
           curnode = curnode->parent;
@@ -852,7 +850,7 @@ int parserc_parse_unsafely( struct parse
           goto u_att_space;
         case '>':
           curatt = nodec_addattr( curnode, attname, attname_len );
-          if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; }
+          if( !att_has_val ) { curatt->value = (char*)-1; curatt->vallen = 0; }
           attname_len = 0;
           cpos++;
           goto u_val_1;
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to