Fix one problem
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-Curl?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
dfdd3cd825
commit
ed778bf02f
+11
-3
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Net-Curl
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -24,12 +24,18 @@ Summary: Perl interface for libcurl
|
||||
License: MIT
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Net-Curl/
|
||||
Source0: http://www.cpan.org/authors/id/S/SY/SYP/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SY/SYP/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Patch0: fix-curl.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Recommends: perl(ExtUtils::PkgConfig)
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: perl(ExtUtils::PkgConfig)
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
This package contains some static functions and version-releated constants.
|
||||
@@ -42,6 +48,7 @@ To perform any request you want Net::Curl::Easy.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
@@ -57,6 +64,7 @@ To perform any request you want Net::Curl::Easy.
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes Curl_Easy.xsh Curl_Form.xsh Curl_Multi.xsh Curl_Share.xsh examples LICENSE README
|
||||
%doc Changes Curl_Easy.xsh Curl_Form.xsh Curl_Multi.xsh Curl_Share.xsh examples README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - https://github.com/roa/perl-Net-Curl/commit/c1bbdf9d1689690e1e00850373e8423aff2fa7fb.patch
|
||||
# - source2
|
||||
patches:
|
||||
fix-curl.diff: -p1
|
||||
# bar.patch:
|
||||
preamble: |-
|
||||
BuildRequires: perl(ExtUtils::PkgConfig) curl-devel
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
@@ -0,0 +1,13 @@
|
||||
# see https://github.com/sparky/perl-Net-Curl/issues/18
|
||||
|
||||
diff -ru Net-Curl-0.37.orig/Makefile.PL Net-Curl-0.37/Makefile.PL
|
||||
--- Net-Curl-0.37.orig/Makefile.PL 2015-02-01 10:20:35.000000000 +0100
|
||||
+++ Net-Curl-0.37/Makefile.PL 2017-05-30 16:26:38.554205323 +0200
|
||||
@@ -310,6 +310,7 @@
|
||||
}
|
||||
close H;
|
||||
}
|
||||
+ delete $syms{CURL_STRICTER};
|
||||
|
||||
my @out;
|
||||
foreach my $e (sort keys %syms) {
|
||||
Reference in New Issue
Block a user