Files
perl-Data-AsObject/perl-Data-AsObject.spec
2025-08-12 18:13:00 +02:00

79 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Data-AsObject
#
# 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 Data-AsObject
Name: perl-Data-AsObject
Version: 0.70.0
Release: 0
# 0.07 -> normalize -> 0.70.0
%define cpan_version 0.07
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Easy OO access to complex perl data structures
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PS/PSHANGOV/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(namespace::clean)
Requires: perl(Sub::Exporter)
Requires: perl(namespace::clean)
Provides: perl(Data::AsObject) = %{version}
Provides: perl(Data::AsObject::Array) = %{version}
Provides: perl(Data::AsObject::Array::Loose) = %{version}
Provides: perl(Data::AsObject::Array::Silent) = %{version}
Provides: perl(Data::AsObject::Array::Strict) = %{version}
Provides: perl(Data::AsObject::Hash) = %{version}
Provides: perl(Data::AsObject::Hash::Loose) = %{version}
Provides: perl(Data::AsObject::Hash::Silent) = %{version}
Provides: perl(Data::AsObject::Hash::Strict) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
'Data::AsObject' provides easy object-oriented access to complex and
arbitrarily nested perl data structures. It is particularly suitable for
working with hash-based representation of XML data, as generated by modules
like XML::Complie or XML::TreePP.
%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