File perl-SignalWire-CompatXML.spec of Package perl-SignalWire-CompatXML

#
# spec file for package perl-SignalWire-CompatXML
#
# Copyright (c) 2023 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 SignalWire-CompatXML
Name:           perl-SignalWire-CompatXML
Version:        1.0
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Light and fast CompatXML generator
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/B/BW/BWEST/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
*SignalWire::CompatXML* creates SignalWire-compatible CompatXML documents.
Documents can be built by creating and nesting one element at a time or by
chaining objects. Elements can contain attributes, text content, or other
elements.

CompatXML, being XML, could be trivially generated with *XML::LibXML* or
any number of other XML parsers/generators. Philosophically,
*SignalWire::CompatXML* represents an _economical_ CompatXML generator. It
has a small footprint (CompatXML documents are typically small and simple)
and means to make CompatXML creation straightforward and moderately fun.

*SignalWire::CompatXML*'s primary aim is for economy of expression.
Therefore, *Any method you call on a CompatXML object (except those
described below) will create new CompatXML objects by the name of the
method you called.* By chaining method calls, you can create robust
CompatXML documents with very little code.

%prep
%autosetup  -n %{cpan_name}-%{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

%changelog
openSUSE Build Service is sponsored by