8
0
forked from pool/perl-XML-Bare
Files
perl-XML-Bare/perl-XML-Bare.spec

73 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-XML-Bare
#
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-XML-Bare
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
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
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
Url: http://search.cpan.org/dist/XML-Bare/
Source: http://www.cpan.org/authors/id/C/CO/CODECHILD/%{cpan_name}-%{version}.tar.gz
2025-08-12 18:18:33 +02:00
Source100: README.md
Patch0: fix-pointers.diff
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
BuildRequires: perl(Test::More) >= 0.94
%{perl_requires}
%description
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
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.
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
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
%autosetup -p1 -n %{cpan_name}-%{version}
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
find . -type f -print0 | xargs -0 chmod 644
%build
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
%{__make} test
%install
%perl_make_install
%perl_process_packlist
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
%perl_gen_filelist
- 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 ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Bare?expand=0&rev=22
2013-07-27 12:37:49 +00:00
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog