File perl-Data-Structure-Deserialize-Auto.spec of Package perl-Data-Structure-Deserialize-Auto
#
# spec file for package perl-Data-Structure-Deserialize-Auto
#
# 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-Structure-Deserialize-Auto
Name: perl-Data-Structure-Deserialize-Auto
Version: 1.01
Release: 0
License: MIT
Summary: Deserializes data structures from perl, JSON, YAML, or TOML data, from s[cut]
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TY/TYRRMINAL/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(IO::All)
BuildRequires: perl(JSON)
BuildRequires: perl(Readonly)
BuildRequires: perl(Syntax::Keyword::Try)
BuildRequires: perl(TOML)
BuildRequires: perl(Test2::Suite) >= 0.000155
BuildRequires: perl(YAML::XS)
Requires: perl(IO::All)
Requires: perl(JSON)
Requires: perl(Readonly)
Requires: perl(Syntax::Keyword::Try)
Requires: perl(TOML)
Requires: perl(YAML::XS)
%{perl_requires}
%description
Data::Structure::Deserialize::Auto is a module for converting a string in
an arbitrary format (one of perl/JSON/YAML/TOML) into a perl data
structure, without needing to worry about what format it was in.
If the string argument given to it is a valid local filename, it is treated
as such, and that file's contents are processed instead.
%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 README.md
%license LICENSE
%changelog