diff --git a/delve.spec b/delve.spec index bddcced..46d6ce3 100644 --- a/delve.spec +++ b/delve.spec @@ -25,6 +25,7 @@ Source0: %{gosource} Patch1: ./eval-symlink-in-test.patch Patch2: ./test-fixture-vendor-to-internal.patch +Patch3: ./doc-location.patch BuildRequires: golang(github.com/cosiner/argv) BuildRequires: golang(github.com/mattn/go-isatty) @@ -54,10 +55,7 @@ building other packages which use import path with %prep -%forgesetup - -%patch1 -p1 -%patch2 -p1 +%forgeautosetup -p1 rm -rf vendor/ diff --git a/doc-location.patch b/doc-location.patch new file mode 100644 index 0000000..79a5f46 --- /dev/null +++ b/doc-location.patch @@ -0,0 +1,51 @@ +From 0d98c57cd3276667655d3b23f8268f1249a9994d Mon Sep 17 00:00:00 2001 +From: Derek Parker +Date: Mon, 4 Feb 2019 01:49:43 -0800 +Subject: [PATCH] Update doc location for RPM package + +--- + pkg/terminal/command.go | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go +index 2927365447575b9a00418f72bdde87c5b58b9682..80d0df131613636c28800b5951f4bb5efba509f4 100644 +--- a/pkg/terminal/command.go ++++ b/pkg/terminal/command.go +@@ -105,14 +105,14 @@ Type "help" followed by the name of a command for more information about it.`}, + + break [name] + +-See $GOPATH/src/github.com/derekparker/delve/Documentation/cli/locspec.md for the syntax of linespec. ++See /usr/share/doc/delve/Documentation/cli/locspec.md for the syntax of linespec. + + See also: "help on", "help cond" and "help clear"`}, + {aliases: []string{"trace", "t"}, cmdFn: tracepoint, helpMsg: `Set tracepoint. + + trace [name] + +-A tracepoint is a breakpoint that does not stop the execution of the program, instead when the tracepoint is hit a notification is displayed. See $GOPATH/src/github.com/derekparker/delve/Documentation/cli/locspec.md for the syntax of linespec. ++A tracepoint is a breakpoint that does not stop the execution of the program, instead when the tracepoint is hit a notification is displayed. See /usr/share/doc/delve/Documentation/cli/locspec.md for the syntax of linespec. + + See also: "help on", "help cond" and "help clear"`}, + {aliases: []string{"restart", "r"}, cmdFn: restart, helpMsg: `Restart process. +@@ -182,7 +182,7 @@ Called with more arguments it will execute a command on the specified goroutine. + + [goroutine ] [frame ] print + +-See $GOPATH/src/github.com/derekparker/delve/Documentation/cli/expr.md for a description of supported expressions.`}, ++See /usr/share/doc/delve/Documentation/cli/expr.md for a description of supported expressions.`}, + {aliases: []string{"whatis"}, cmdFn: whatisCommand, helpMsg: `Prints type of an expression. + + whatis .`}, +@@ -190,7 +190,7 @@ See $GOPATH/src/github.com/derekparker/delve/Documentation/cli/expr.md for a des + + [goroutine ] [frame ] set = + +-See $GOPATH/src/github.com/derekparker/delve/Documentation/cli/expr.md for a description of supported expressions. Only numerical variables and pointers can be changed.`}, ++See /usr/share/doc/delve/Documentation/cli/expr.md for a description of supported expressions. Only numerical variables and pointers can be changed.`}, + {aliases: []string{"sources"}, cmdFn: sources, helpMsg: `Print list of source files. + + sources [] +-- +2.16.5 +