# # spec file for package perl-XML-Generator # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name XML-Generator Name: perl-XML-Generator Version: 1.130.0 Release: 0 # 1.13 -> normalize -> 1.130.0 %define cpan_version 1.13 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl extension for generating XML URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros Provides: perl(XML::Generator) = %{version} Provides: perl(XML::Generator::DOM) = %{version} Provides: perl(XML::Generator::DOM::util) = %{version} Provides: perl(XML::Generator::cdata) = %{version} Provides: perl(XML::Generator::comment) = %{version} Provides: perl(XML::Generator::final) = %{version} Provides: perl(XML::Generator::overload) = %{version} Provides: perl(XML::Generator::pi) = %{version} Provides: perl(XML::Generator::pretty) = %{version} Provides: perl(XML::Generator::util) = %{version} %undefine __perllib_provides Recommends: perl(XML::DOM) >= 1.46 %{perl_requires} %description In general, once you have an XML::Generator object, you then simply call methods on that object named for each XML tag you wish to generate. XML::Generator can also arrange for undefined subroutines in the caller's package to generate the corresponding XML, by exporting an 'AUTOLOAD' subroutine to your package. Just supply an ':import' argument to your 'use XML::Generator;' call. If you already have an 'AUTOLOAD' defined then XML::Generator can be configured to cooperate with it. See "STACKABLE AUTOLOADs". %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog