# # spec file for package perl-Data-AMF # # 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-AMF Name: perl-Data-AMF Version: 0.90.0 Release: 0 # 0.09 -> normalize -> 0.90.0 %define cpan_version 0.09 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Serialize / deserialize AMF data URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TY/TYPESTER/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Any::Moose) BuildRequires: perl(DateTime) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(UNIVERSAL::require) BuildRequires: perl(XML::LibXML) Requires: perl(Any::Moose) Requires: perl(DateTime) Requires: perl(UNIVERSAL::require) Requires: perl(XML::LibXML) Provides: perl(Data::AMF) = %{version} Provides: perl(Data::AMF::Formatter) Provides: perl(Data::AMF::Formatter::AMF0) Provides: perl(Data::AMF::Formatter::AMF3) Provides: perl(Data::AMF::Header) Provides: perl(Data::AMF::IO) Provides: perl(Data::AMF::Message) Provides: perl(Data::AMF::Packet) Provides: perl(Data::AMF::Parser) Provides: perl(Data::AMF::Parser::AMF0) Provides: perl(Data::AMF::Parser::AMF3) Provides: perl(Data::AMF::Remoting) Provides: perl(Data::AMF::Type::Boolean) Provides: perl(Data::AMF::Type::ByteArray) Provides: perl(Data::AMF::Type::Null) %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN BuildRequires: perl(Test::Base) BuildRequires: perl(YAML) # MANUAL END %description This module is (de)serializer for Adobe's AMF (Action Message Format). Data::AMF is core module and it recognize only AMF data, not AMF packet. If you want to read/write AMF Packet, see Data::AMF::Packet instead. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build PERL_USE_UNSAFE_INC=1 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 examples README %license LICENSE %changelog