2024-08-03 18:21:18 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2010-08-25 10:26:38 +00:00
|
|
|
|
2024-08-03 18:21:18 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define cpan_name Test-XML
|
2010-08-25 10:26:38 +00:00
|
|
|
Name: perl-Test-XML
|
2024-08-03 18:21:18 +00:00
|
|
|
Version: 0.80.0
|
2010-08-25 10:26:38 +00:00
|
|
|
Release: 0
|
2024-08-03 18:21:18 +00:00
|
|
|
# 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
|
2024-08-03 18:21:18 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:53:22 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-08-25 10:26:38 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(XML::Parser) >= 2.34
|
2024-08-03 18:21:18 +00:00
|
|
|
BuildRequires: perl(XML::SemanticDiff) >= 0.95
|
2010-08-25 10:26:38 +00:00
|
|
|
Requires: perl(XML::Parser) >= 2.34
|
2024-08-03 18:21:18 +00:00
|
|
|
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}
|
2010-08-25 10:26:38 +00:00
|
|
|
|
|
|
|
%description
|
2024-08-03 18:21:18 +00:00
|
|
|
This module contains generic XML testing tools. See below for a list of
|
|
|
|
other modules with functions relating to specific XML modules.
|
2010-08-25 10:26:38 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-03 18:21:18 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2010-08-25 10:26:38 +00:00
|
|
|
|
|
|
|
%build
|
2024-08-03 18:21:18 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2010-08-25 10:26:38 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
2024-08-03 18:21:18 +00:00
|
|
|
%install
|
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
|
%perl_gen_filelist
|
2010-08-25 10:26:38 +00:00
|
|
|
|
2024-08-03 18:21:18 +00:00
|
|
|
%files -f %{name}.files
|
2010-08-25 10:26:38 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
2024-08-03 18:21:18 +00:00
|
|
|
%changelog
|