import delve-1.3.2-1.module+el8.2.0+4946+bcbab5cc
This commit is contained in:
commit
0705a8a65a
1
.delve.metadata
Normal file
1
.delve.metadata
Normal file
@ -0,0 +1 @@
|
||||
16527e9bd43ee65b1dc9352e7a3dd171da9b5d3e SOURCES/delve-1.3.2.tar.gz
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/delve-1.3.2.tar.gz
|
54
SPECS/delve.spec
Normal file
54
SPECS/delve.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: delve
|
||||
Version: 1.3.2
|
||||
Release: 1%{?dist}
|
||||
Summary: A debugger for the Go programming language
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/go-delve/delve
|
||||
Source0: https://github.com/go-delve/delve/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
ExcludeArch: ppc64le s390x aarch64 i686 armv7hl
|
||||
|
||||
BuildRequires: compiler(go-compiler)
|
||||
BuildRequires: git
|
||||
|
||||
Provides: dlv = %{version}
|
||||
|
||||
%description
|
||||
Delve is a debugger for the Go programming language. The goal of the project
|
||||
is to provide a simple, full featured debugging tool for Go. Delve should be
|
||||
easy to invoke and easy to use. Chances are if you're using a debugger, things
|
||||
aren't going your way. With that in mind, Delve should stay out of your way as
|
||||
much as possible.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
rm go.mod
|
||||
|
||||
%build
|
||||
mkdir -p $(pwd)/_build
|
||||
pushd $(pwd)/_build
|
||||
mkdir -p src/github.com/go-delve
|
||||
ln -s ../../../../ src/github.com/go-delve/delve
|
||||
popd
|
||||
ln -s vendor src
|
||||
|
||||
export GOPATH=$(pwd):$(pwd)/_build
|
||||
%gobuild -o bin/dlv github.com/go-delve/delve/cmd/dlv
|
||||
|
||||
%install
|
||||
install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv
|
||||
|
||||
%check
|
||||
# Nothing here at the moment
|
||||
|
||||
%files
|
||||
%{_bindir}/dlv
|
||||
%license LICENSE
|
||||
%doc README.md CONTRIBUTING.md
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 27 2019 Alejandro Sáez <asm@redhat.com> - 1.3.2-1
|
||||
- First package for RHEL
|
||||
- Related: rhbz#1758612
|
Loading…
Reference in New Issue
Block a user