- Fix path to curl in zsh.pl to unbreak _curl completion

* curl-fix-zsh-completion.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=152
This commit is contained in:
Ismail Dönmez 2016-01-06 13:19:01 +00:00 committed by Git OBS Bridge
parent 4de4fd4bbd
commit 8b97e80fe9
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,13 @@
Index: curl-7.46.0/scripts/zsh.pl
===================================================================
--- curl-7.46.0.orig/scripts/zsh.pl
+++ curl-7.46.0/scripts/zsh.pl
@@ -5,7 +5,7 @@
use strict;
use warnings;
-my $curl = $ARGV[0] || 'curl';
+my $curl = $ARGV[0] || '../src/curl';
my $regex = '\s+(?:(-[^\s]+),\s)?(--[^\s]+)\s([^\s.]+)?\s+(.*)';
my @opts = parse_main_opts('--help', $regex);

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 6 13:18:33 UTC 2016 - idonmez@suse.com
- Fix path to curl in zsh.pl to unbreak _curl completion
* curl-fix-zsh-completion.patch
-------------------------------------------------------------------
Wed Dec 2 12:18:24 UTC 2015 - idonmez@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package curl
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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
@ -35,6 +35,8 @@ Patch1: dont-mess-with-rpmoptflags.diff
Patch3: curl-secure-getenv.patch
# PATCH-FIX-OPENSUSE lnussel@suse.de -- use openssl's built in verify path as fallback
Patch4: curl-7.41.0-use-openssl-s-built-in-verify-path-as-fallback.diff
# PATCH-FIX-OPENSUSE idoenmez@suse.de -- Fix path to curl in zsh.pl
Patch5: curl-fix-zsh-completion.patch
BuildRequires: groff
BuildRequires: krb5-mini-devel
BuildRequires: libtool
@ -99,6 +101,7 @@ user interaction or any kind of interactivity.
%patch1
%patch3
%patch4 -p1
%patch5 -p1
%build
# curl complains if macro definition is contained in CFLAGS