Explorar o código

perl-WWW-Curl-4.17-2

Tomohiro "Tomo-p" KATO %!s(int64=3) %!d(string=hai) anos
pai
achega
9bb55887b6
Modificáronse 1 ficheiros con 30 adicións e 11 borrados
  1. 30 11
      p/perl-WWW-Curl/perl-WWW-Curl-vl.spec

+ 30 - 11
p/perl-WWW-Curl/perl-WWW-Curl-vl.spec

@@ -2,16 +2,20 @@ Name:           perl-WWW-Curl
 Version:        4.17
 Release:        2%{?_dist_release}
 Summary:        Perl extension interface for libcurl
-License:        MIT
-Group:          Development/Libraries
-URL:            http://search.cpan.org/dist/WWW-Curl/
-Source0:        http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
-Patch0:         WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch
-
+Group:          programming
 Vendor:         Project Vine
 Distribution:   Vine Linux
 
-BuildRequires:  perl
+License:        MIT
+URL:            https://metacpan.org/pod/WWW::Curl
+Source0:        https://cpan.metacpan.org/authors/id/S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz
+Patch0:         WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941915
+Patch1:         WWW-Curl-4.17-define-CURL-as-void.patch
+# Adapt to changes in cURL 7.69.0, bug #1812910, CPAN RT#132197
+Patch2:         WWW-Curl-4.17-Adapt-to-changes-in-cURL-7.69.0.patch
+
+BuildRequires:  perl >= 2:5.34.0
 BuildRequires:  perl(inc::Module::Install)
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(Exporter)
@@ -24,28 +28,36 @@ BuildRequires:  perl(Test::More)
 BuildRequires:  perl(warnings)
 BuildRequires:  perl(XSLoader)
 BuildRequires:  curl-devel
-Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires:       perl >= 2:5.34.0
 
 %{?perl_default_filter}
 
 %description
 WWW::Curl is a Perl extension interface for libcurl.
 
+
+%debug_package
+
+
 %prep
 %setup -q -n WWW-Curl-%{version}
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 rm -rf inc && sed -i -e '/^inc\//d' MANIFEST
 
+
 %build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
 make %{?_smp_mflags}
 
+
 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
+
 %check
 # These tests require network, use "--with network_tests" to execute them
 %{?!_with_network_tests: rm t/01basic.t }
@@ -61,13 +73,20 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
 %{?!_with_network_tests: rm t/21write-to-scalar.t }
 make test
 
+
 %files
-%doc Changes LICENSE README
+%license LICENSE
+%doc Changes README
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/WWW*
 %{_mandir}/man3/*
 
+
 %changelog
+* Mon Nov 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.17-3
+- rebuilt with perl-5.34.0.
+- imported Patch1-2 from rawhide.
+
 * Sat Aug 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.17-2
 - rebuilt with perl-5.26.2.
 - added Patch0 for recent curl.