# # spec file for package perl-XML-Simple # # Copyright (c) 2018 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 # 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-Simple Version: 2.25 Release: 172.85 %define cpan_name XML-Simple Summary: An API for simple XML files License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/XML-Simple/ Source0: https://cpan.metacpan.org/authors/id/G/GR/GRANTM/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(XML::NamespaceSupport) >= 1.04 BuildRequires: perl(XML::SAX) >= 0.15 BuildRequires: perl(XML::SAX::Expat) Requires: perl(XML::NamespaceSupport) >= 1.04 Requires: perl(XML::SAX) >= 0.15 Requires: perl(XML::SAX::Expat) %{perl_requires} %description The XML::Simple module provides a simple API layer on top of an underlying XML parsing module (either XML::Parser or one of the SAX2 parser modules). Two functions are exported: 'XMLin()' and 'XMLout()'. Note: you can explicitly request the lower case versions of the function names: 'xml_in()' and 'xml_out()'. The simplest approach is to call these two functions directly, but an optional object oriented interface (see "OPTIONAL OO INTERFACE" below) allows them to be called as methods of an *XML::Simple* object. The object interface can also be used at either end of a SAX pipeline. %prep %setup -q -n %{cpan_name}-%{version} find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %license LICENSE %changelog * Sun Mar 18 2018 coolo@suse.com - updated to 2.25 see /usr/share/doc/packages/perl-XML-Simple/Changes 2.25 2018-03-18 16:18:24+13:00 Pacific/Auckland - disable entity expansion when using XML::Parser, for more secure default behaviour (patch from Ray Morris) - call to XML::Parser constructor is now in its own method to ease overriding * Mon Apr 17 2017 coolo@suse.com - updated to 2.24 see /usr/share/doc/packages/perl-XML-Simple/Changes 2.24 2017-04-17 16:12:00+12:00 Pacific/Auckland - fix typo in last commit with mistakenly removed some underscores - don't initialise $XML::Simple::PREFERRED_PARSER to undef as a caller may have already set it before loading XML::Simple and if not, it would have defaulted to undef anyway (RT#118205 from Slaven Rezić) 2.23 2017-04-17 15:49:14+12:00 Pacific/Auckland - another fix to the logic for detecting circular references (RT#114120 from Matthias Pitzl, also report from Erland Sommarskog) * Sat Dec 5 2015 coolo@suse.com - updated to 2.22 see /usr/share/doc/packages/perl-XML-Simple/Changes 2.22 2015-12-05 11:08:20+13:00 Pacific/Auckland - POD fix in link to package XML::SAX::ParseFactory (from Mohammad S Anwar) - allow subclass to override attribute escaping (from Christopher Masto) - POD fix adding NAME section to FAQ (RT#110080 from Bart Martens & gregor herrmann of the Debian project) - POD typo fix (RT#110082 from gregor herrmann of the Debian project) - fix reference comparison operator used in checking for circular data structures (RT#89553 from Laurent Dami) - add better diagnostics from file handling code in test suite 2.21 2015-12-04 16:33:49+13:00 Pacific/Auckland - Improved diagnostics - xml_in() will now catch parse exceptions and add caller information via Carp::croak - Switch to use lexical warnings (suppress with either 'no warnings;' or 'no warnings "XML::Simple";', rather than $^W = 0) - POD fixes (from David Steinbrunner) - Regex escaping fixes for Perl 5.22+ (from Kent Fredric) - Add workaround for test failures on RHEL/CentOS 6.5 (RT#102115 from Chris Drake, workaround from Tim Bunce) - Remove some 'eval' calls from test suite which could mask root cause of test failures - Make each test script use unique filenames to allow tests to be run in parallel (RT#101362 from Karen Etheridge & Kent Fredric) - POD update: mention XML::Twig in 'STATUS' section (RT#79228 from Matt Trout) * Thu Jun 26 2014 lchiquitto@suse.com - remove XML-Simple-2.18-test.diff from package sources, it's not being applied since the last update * Sat Jul 27 2013 coolo@suse.com - updated to 2.20 - Suppress warning from empty CDATA section (RT#58359 from Juan Antonio Navarro Pérez) - Reinstate XML::SAX::Expat dependency - Fix warnings tests (broken in 2.19_01) which rely on global $^W - Use lexical filehandles instead of old-style fileglobs (RT#77787 from Quanah) - Restrict scope of :strict mode to calling package (RT#41562 from Hannu Aronsson) - Fix POD typo (RT#45414 from Anirvan Chatterjee) - Update POD to reflect best practise regarding :strict and options - Change minimum Perl requirement to 5.008 - Switch to using Dist::Zilla for release management * Fri Nov 18 2011 coolo@suse.com - use original .tar.gz * Wed Dec 1 2010 coolo@novell.com - switch to perl_requires macro * Mon Nov 29 2010 coolo@novell.com - remove /var/adm/perl-modules * Mon Oct 8 2007 anicka@suse.cz - update to 2.18 * Non-unique key attribute values now trigger a warning (or a fatal error in strict mode) rather than silently discarding data * Added parse_string(), parse_file() and parse_fh() methods * Added default_config_file(), and build_simple_tree() hook methods * Tweak to implementation of exporting * Documented hook methods * Fixed test suite race condition * Mon Jul 16 2007 anicka@suse.cz - remove expat from dependencies * Wed Dec 13 2006 anicka@suse.cz - update to 2.16 * Added test/fix for bad GroupTags option * Added new_hashref() hook method * refactored cache save/restore methods for easier overriding * Thu Oct 5 2006 anicka@suse.cz - update to 2.15 * Makefile.PL changes: reject known-bad PurePerl and RTF parser modules; default to XML::SAX::Expat if no parser installed * allow '.' characters in variable names * fix output of undefs in arrayrefs with SuppressEmpty * tidy up code and docs around lexical filehandle passed to OutputFile * reduce memory usage by passing XML strings by reference * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Mon Aug 1 2005 mjancar@suse.cz - update to 2.14 * Thu Aug 19 2004 mjancar@suse.cz - update to 2.12 * Thu Feb 26 2004 mjancar@suse.cz - update to 2.09 * Sun Jan 11 2004 adrian@suse.de - build as user * Fri Aug 22 2003 mjancar@suse.cz - require the perl version we build with * Thu Aug 7 2003 mjancar@suse.cz - fix tests that depend on certain order of entries in a hash (it is random in perl 5.8.1) * Thu Jul 24 2003 mjancar@suse.cz - update to 2.08 * Thu Jul 17 2003 mjancar@suse.cz - adapt to perl-5.8.1 - use %%perl_process_packlist * Wed Jun 18 2003 coolo@suse.de - package directories * Mon Jun 16 2003 mjancar@suse.cz - don't package MANIFEST * Mon May 19 2003 ro@suse.de - remove perllocal.pod * Tue Apr 29 2003 mjancar@suse.cz - update to version 2.03 * Fri Dec 27 2002 prehak@suse.cz - updated to version 2.02 * Mon Jul 29 2002 mls@suse.de - Fixed neededforbuild for perl-5.8.0 * Tue Jul 2 2002 mls@suse.de - remove race in .packlist generation * Tue Jul 2 2002 garloff@suse.de - Update to 1.08: (rerelease of 1.06 with minor bugfixes) * searchpath set to current dir if not set * obsolete 'convert' script removed from dist * Wed Jan 16 2002 garloff@suse.de - Creation of package perl-XML-Simple (1.06) (needed by InterMezzo)