diff --git a/perl-WWW-Curl-4.17-gcc-6.2.patch b/perl-WWW-Curl-4.17-gcc-6.2.patch new file mode 100644 index 0000000..34221c0 --- /dev/null +++ b/perl-WWW-Curl-4.17-gcc-6.2.patch @@ -0,0 +1,34 @@ +From 0be0223422e6e5f4091c6e4e058d213623eed105 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 12 Sep 2016 14:40:44 +0200 +Subject: [PATCH] Skip preprocessor symbol only CURL_STRICTER +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +CURL_STRICTER leaked into curl-constants.c when building against +curl-7.50.2. This is a preprocessor only macro without a value. + +CPAN RT#117793 + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index f9170bb..ad2bd3d 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -127,7 +127,7 @@ if (!defined($curl_h)) { + close H; + + for my $e (sort @syms) { +- if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) { ++ if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|_LAST\z|_LASTENTRY\z)/) { + next; + } + my ($group) = $e =~ m/^([^_]+_)/; +-- +2.7.4 + diff --git a/perl-WWW-Curl.spec b/perl-WWW-Curl.spec index a859ea9..a4a1c99 100644 --- a/perl-WWW-Curl.spec +++ b/perl-WWW-Curl.spec @@ -2,7 +2,7 @@ Name: perl-WWW-Curl Version: 4.17 -Release: 1mamba +Release: 2mamba Summary: WWW - Perl extension interface for libcurl Group: System/Libraries/Perl Vendor: openmamba @@ -10,7 +10,13 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz +Patch0: perl-WWW-Curl-4.17-gcc-6.2.patch License: MPL, MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcurl-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END Requires: perl >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -20,6 +26,7 @@ WWW - Perl extension interface for libcurl. %prep %setup -q -n WWW-Curl-%{version} +%patch0 -p1 %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor @@ -53,6 +60,9 @@ rm -f .packlist %defattr(-,root,root) %changelog +* Wed Nov 09 2016 Silvan Calarco 4.17-2mamba +- rebuilt with perl 5.24 + * Sat Feb 22 2014 Automatic Build System 4.17-1mamba - automatic update by autodist