2011-01-17 18:21:37 +00:00
|
|
|
#
|
2011-11-17 15:56:43 +00:00
|
|
|
# spec file for package perl-XML-Generator-PerlData
|
2011-01-17 18:21:37 +00:00
|
|
|
#
|
2015-04-19 08:27:57 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-01-17 18:21:37 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2015-04-19 08:27:57 +00:00
|
|
|
|
2011-01-17 18:21:37 +00:00
|
|
|
Name: perl-XML-Generator-PerlData
|
2015-10-04 09:43:46 +00:00
|
|
|
Version: 0.95
|
2012-01-11 10:19:32 +00:00
|
|
|
Release: 0
|
2011-01-17 18:21:37 +00:00
|
|
|
%define cpan_name XML-Generator-PerlData
|
2015-04-19 08:27:57 +00:00
|
|
|
Summary: Perl extension for generating SAX2 events from nested Perl data structures
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-01-17 18:21:37 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-01-11 10:19:32 +00:00
|
|
|
Url: http://search.cpan.org/dist/XML-Generator-PerlData/
|
2015-04-19 08:27:57 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/K/KH/KHAMPTON/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:36 +02:00
|
|
|
Source100: README.md
|
2015-04-19 08:27:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-01-17 18:21:37 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2012-01-11 10:19:32 +00:00
|
|
|
BuildRequires: perl(XML::SAX::Base) >= 1.02
|
2011-01-17 18:21:37 +00:00
|
|
|
Requires: perl(XML::SAX::Base) >= 1.02
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
XML::Generator::PerlData provides a simple way to generate SAX2 events from
|
|
|
|
nested Perl data structures, while providing finer-grained control over the
|
|
|
|
resulting document streams.
|
|
|
|
|
|
|
|
Processing comes in two flavors: *Simple Style* and *Stream Style*:
|
|
|
|
|
|
|
|
In a nutshell, 'simple style' is best used for those cases where you have a
|
|
|
|
a single Perl data structure that you want to convert to XML as quickly and
|
|
|
|
painlessly as possible. 'Stream style' is more useful for cases where you
|
|
|
|
are receiving chunks of data (like from a DBI handle) and you want to
|
|
|
|
process those chunks as they appear. See *PROCESSING METHODS* for more info
|
|
|
|
about how each style works.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%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
|
2015-04-19 08:27:57 +00:00
|
|
|
%defattr(-,root,root,755)
|
2011-01-17 18:21:37 +00:00
|
|
|
%doc Changes TODO
|
|
|
|
|
|
|
|
%changelog
|