55 lines
1.4 KiB
RPMSpec
55 lines
1.4 KiB
RPMSpec
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
|