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
#
# 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
# 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)
# 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
Summary: Serialize/Deserialize AMF data
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-AMF/
Source: http://www.cpan.org/authors/id/T/TY/TYPESTER/%cpan_name-%version.tar.gz
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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Any::Moose)
BuildRequires: perl(DateTime)
BuildRequires: perl(Module::Install)
BuildRequires: perl(Test::Base)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(UNIVERSAL::require)
BuildRequires: perl(XML::LibXML)
BuildRequires: perl(YAML)
Requires: perl(Any::Moose)
Requires: perl(DateTime)
Requires: perl(UNIVERSAL::require)
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
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.
%prep
%setup -q -n %cpan_name-%version
find . -type f -exec chmod 644 "{}" "+"
%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
# kill bundled copy of old modules that interfere
rm -Rf inc/Test inc/YAML.pm
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
@@ -67,8 +78,8 @@ make test
%perl_process_packlist
%perl_gen_filelist
%files -f %name.files
%defattr(-,root,root,755)
%doc Changes examples LICENSE README
%files -f %{name}.files
%doc Changes examples README
%license LICENSE
%changelog