From f3e1de592855b168a9a146cc7384b348f5786484 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: May 23 2017 13:37:15 +0000 Subject: Fix building on Perl without '.' in @INC (CPAN RT#121143) --- diff --git a/Data-AMF-0.09-Fix-building-on-Perl-without-dot-in-INC.patch b/Data-AMF-0.09-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..ac68086 --- /dev/null +++ b/Data-AMF-0.09-Fix-building-on-Perl-without-dot-in-INC.patch @@ -0,0 +1,8 @@ +diff -up Data-AMF-0.09/Makefile.PL.orig Data-AMF-0.09/Makefile.PL +--- Data-AMF-0.09/Makefile.PL.orig 2017-05-23 15:29:56.825217808 +0200 ++++ Data-AMF-0.09/Makefile.PL 2017-05-23 15:31:19.362739593 +0200 +@@ -1,3 +1,4 @@ ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + name 'Data-AMF'; + all_from 'lib/Data/AMF.pm'; diff --git a/perl-Data-AMF.spec b/perl-Data-AMF.spec index b55b78a..d2f0cf1 100644 --- a/perl-Data-AMF.spec +++ b/perl-Data-AMF.spec @@ -1,13 +1,17 @@ Name: perl-Data-AMF Version: 0.09 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Serialize/deserialize Adobe's AMF (ActionMessageFormat) data Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/~typester/Data-AMF-0.09/lib/Data/AMF.pm Source0: http://search.cpan.org/CPAN/authors/id/T/TY/TYPESTER/Data-AMF-0.09.tar.gz BuildArch: noarch +Patch0: Data-AMF-0.09-Fix-building-on-Perl-without-dot-in-INC.patch +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl(constant) BuildRequires: perl(Any::Moose) @@ -23,6 +27,7 @@ BuildRequires: perl(Test::More) BuildRequires: perl(UNIVERSAL::require) BuildRequires: perl(XML::LibXML) BuildRequires: perl(YAML) +BuildRequires: sed Requires: perl(DateTime) Requires: perl(XML::LibXML) @@ -38,6 +43,7 @@ If you want to read/write AMF Packet, see Data::AMF::Packet instead. %prep %setup -q -n Data-AMF-%{version} +%patch0 -p1 rm inc/YAML.pm sed -i -e '/^inc\/YAML.pm$/d' MANIFEST echo VENDORLIB %{perl_vendorlib} @@ -66,6 +72,9 @@ make test %changelog +* Tue May 23 2017 Jitka Plesnikova - 0.09-15 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.09-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild @@ -106,6 +115,6 @@ make test * Thu Feb 23 2012 Alec Leamas 0.09-2 - Fixing review remarks. -* Sat Jan 31 2012 Alec Leamas 0.09-1 +* Tue Jan 31 2012 Alec Leamas 0.09-1 - Intial packaging