2024-07-20 20:08:05 +00:00
committed by Git OBS Bridge
parent 3735d87cac
commit 7e0e7a9213

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Data-AMF # spec file for package perl-Data-AMF
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,36 +12,49 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-Data-AMF
Version: 0.09
Release: 0
%define cpan_name Data-AMF %define cpan_name Data-AMF
Summary: Serialize/Deserialize AMF data Name: perl-Data-AMF
License: Artistic-1.0 or GPL-1.0+ Version: 0.90.0
Group: Development/Libraries/Perl Release: 0
Url: http://search.cpan.org/dist/Data-AMF/ # 0.09 -> normalize -> 0.90.0
%define cpan_version 0.09
Source: http://www.cpan.org/authors/id/T/TY/TYPESTER/%cpan_name-%version.tar.gz 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
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Any::Moose) BuildRequires: perl(Any::Moose)
BuildRequires: perl(DateTime) BuildRequires: perl(DateTime)
BuildRequires: perl(Module::Install) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Test::Base)
BuildRequires: perl(UNIVERSAL::require) BuildRequires: perl(UNIVERSAL::require)
BuildRequires: perl(XML::LibXML) BuildRequires: perl(XML::LibXML)
BuildRequires: perl(YAML)
Requires: perl(Any::Moose) Requires: perl(Any::Moose)
Requires: perl(DateTime) Requires: perl(DateTime)
Requires: perl(UNIVERSAL::require) Requires: perl(UNIVERSAL::require)
Requires: perl(XML::LibXML) Requires: perl(XML::LibXML)
%perl_requires 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}
%description %description
This module is (de)serializer for Adobe's AMF (Action Message Format). This module is (de)serializer for Adobe's AMF (Action Message Format).
@@ -49,15 +62,13 @@ 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. you want to read/write AMF Packet, see Data::AMF::Packet instead.
%prep %prep
%setup -q -n %cpan_name-%version %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f -exec chmod 644 "{}" "+"
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
# kill bundled copy of old modules that interfere PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
rm -Rf inc/Test inc/YAML.pm %make_build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check %check
make test make test
@@ -67,8 +78,8 @@ make test
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%files -f %name.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes examples README
%doc Changes examples LICENSE README %license LICENSE
%changelog %changelog