File perl-XML-Compile-WSS-Signature.spec of Package perl-XML-Compile-WSS-Signature

#
# spec file for package perl-XML-Compile-WSS-Signature
#
# Copyright (c) 2025 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-Compile-WSS-Signature
Name:           perl-XML-Compile-WSS-Signature
Version:        2.04
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        OASIS WSS Signatures
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Crypt::OpenSSL::RSA)
BuildRequires:  perl(Crypt::OpenSSL::X509) >= 1.803
BuildRequires:  perl(Digest::HMAC_SHA1)
BuildRequires:  perl(Digest::SHA1)
BuildRequires:  perl(File::Slurp)
BuildRequires:  perl(Log::Report) >= 0.92
BuildRequires:  perl(XML::Compile) >= 1.29
BuildRequires:  perl(XML::Compile::C14N) >= 0.93
BuildRequires:  perl(XML::Compile::Cache) >= 0.995
BuildRequires:  perl(XML::Compile::SOAP) >= 2.33
BuildRequires:  perl(XML::Compile::WSS) >= 1.13
BuildRequires:  perl(XML::LibXML) >= 2.00
Requires:       perl(Crypt::OpenSSL::RSA)
Requires:       perl(Crypt::OpenSSL::X509) >= 1.803
Requires:       perl(Digest::HMAC_SHA1)
Requires:       perl(Digest::SHA1)
Requires:       perl(File::Slurp)
Requires:       perl(Log::Report) >= 0.92
Requires:       perl(XML::Compile) >= 1.29
Requires:       perl(XML::Compile::C14N) >= 0.93
Requires:       perl(XML::Compile::Cache) >= 0.995
Requires:       perl(XML::Compile::SOAP) >= 2.33
Requires:       perl(XML::Compile::WSS) >= 1.13
Requires:       perl(XML::LibXML) >= 2.00
%{perl_requires}

%description
*WARNING: Only limited real-life experience.* Many optional extensions have
never been tried.

*WARNING: RedHat derivates* like RedHat, Fedora, and AlmaLinux recently
actively disable SHA1 support. You may set their systemwide cryptopolicy to
'LEGACY', but better use SHA256 or higher. Defaults of this module still
use SHA1, which might change in the future.

The generic Web Service Security protocol is implemented by the super class
XML::Compile::WSS. This extension implements cypto signatures.

On this moment, there are two versions of this standard:

* * _http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/_

* * _http://www.w3.org/TR/xmldsig-core2/_

One or more elements of a (SOAP) document can be selected to be signed.
They are canonalized (serialized in a well-described way) and then digested
(usually via SHA1). The digest is put in a 'SignedInfo' component of the
'Signature' element in the 'Security' header. When all digests are in
place, the whole SignedInfo structure gets signed.

Extends "DESCRIPTION" in XML::Compile::WSS.

%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 ChangeLog README README.md

%changelog
openSUSE Build Service is sponsored by