Files
perl-Test-XML/perl-Test-XML.spec

73 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Test-XML
#
# 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 Test-XML
Name: perl-Test-XML
Version: 0.80.0
Release: 0
# 0.08 -> normalize -> 0.80.0
%define cpan_version 0.08
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Compare XML in perl tests
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SE/SEMANTICO/%{cpan_name}-%{cpan_version}.tar.gz
2025-08-12 18:17:59 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
BuildRequires: perl(XML::Parser) >= 2.34
BuildRequires: perl(XML::SemanticDiff) >= 0.95
Requires: perl(XML::Parser) >= 2.34
Requires: perl(XML::SemanticDiff) >= 0.95
Provides: perl(Test::XML) = %{version}
Provides: perl(Test::XML::SAX) = 0.10.0
Provides: perl(Test::XML::Twig) = 0.10.0
Provides: perl(Test::XML::XPath) = 0.30.0
Provides: perl(Test::XML::XPath::XML::LibXML)
Provides: perl(Test::XML::XPath::XML::XPath)
%undefine __perllib_provides
Recommends: perl(XML::SAX)
Recommends: perl(XML::SAX::Writer)
Recommends: perl(XML::Twig)
Recommends: perl(XML::XPath)
%{perl_requires}
%description
This module contains generic XML testing tools. See below for a list of
other modules with functions relating to specific XML modules.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog