|
|
37fee6 |
Name: delve
|
|
|
37fee6 |
Version: 1.3.2
|
|
|
37fee6 |
Release: 3%{?dist}
|
|
|
37fee6 |
Summary: A debugger for the Go programming language
|
|
|
37fee6 |
|
|
|
37fee6 |
License: MIT
|
|
|
37fee6 |
URL: https://github.com/go-delve/delve
|
|
|
37fee6 |
Source0: https://github.com/go-delve/delve/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
37fee6 |
|
|
|
37fee6 |
ExcludeArch: ppc64le s390x aarch64 i686 armv7hl
|
|
|
37fee6 |
|
|
|
37fee6 |
BuildRequires: compiler(go-compiler)
|
|
|
37fee6 |
BuildRequires: git
|
|
|
37fee6 |
|
|
|
37fee6 |
Provides: dlv = %{version}
|
|
|
37fee6 |
|
|
|
37fee6 |
Patch1781: ./1781-pkg-terminal-Fix-exit-status.patch
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%description
|
|
|
37fee6 |
Delve is a debugger for the Go programming language. The goal of the project
|
|
|
37fee6 |
is to provide a simple, full featured debugging tool for Go. Delve should be
|
|
|
37fee6 |
easy to invoke and easy to use. Chances are if you're using a debugger, things
|
|
|
37fee6 |
aren't going your way. With that in mind, Delve should stay out of your way as
|
|
|
37fee6 |
much as possible.
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%prep
|
|
|
37fee6 |
%setup -q
|
|
|
37fee6 |
%patch1781 -p1
|
|
|
37fee6 |
rm -rf go.mod
|
|
|
37fee6 |
mv vendor %{_builddir}/src
|
|
|
37fee6 |
mkdir -p "%{_builddir}/src/github.com/go-delve/"
|
|
|
37fee6 |
cp -r %{_builddir}/%{name}-%{version} %{_builddir}/src/github.com/go-delve/%{name}
|
|
|
37fee6 |
mkdir -p %{_builddir}/%{name}-%{version}/_build
|
|
|
37fee6 |
mv %{_builddir}/src %{_builddir}/%{name}-%{version}/_build/src
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%build
|
|
|
37fee6 |
export GO111MODULE=off
|
|
|
37fee6 |
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
|
|
|
37fee6 |
%gobuild -o bin/dlv github.com/go-delve/delve/cmd/dlv
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%install
|
|
|
37fee6 |
export GO111MODULE=off
|
|
|
37fee6 |
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
|
|
|
37fee6 |
install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%check
|
|
|
37fee6 |
export GO111MODULE=off
|
|
|
37fee6 |
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
|
|
|
37fee6 |
cd "_build/src/github.com/go-delve/%{name}"
|
|
|
37fee6 |
for d in $(go list ./... | grep -v cmd | grep -v scripts); do
|
|
|
37fee6 |
go test ${d}
|
|
|
37fee6 |
done
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%files
|
|
|
37fee6 |
%license LICENSE
|
|
|
37fee6 |
%doc CONTRIBUTING.md CHANGELOG.md
|
|
|
37fee6 |
%doc Documentation/*
|
|
|
37fee6 |
%{_bindir}/dlv
|
|
|
37fee6 |
|
|
|
37fee6 |
|
|
|
37fee6 |
%changelog
|
|
|
37fee6 |
* Thu Jan 16 2020 Alejandro Sáez <asm@redhat.com> - 1.3.2-3
|
|
|
37fee6 |
- Resolves: rhbz#1758612
|
|
|
37fee6 |
- Resolves: rhbz#1780554
|
|
|
37fee6 |
- Add patch: 1781-pkg-terminal-Fix-exit-status.patch
|
|
|
37fee6 |
|
|
|
37fee6 |
* Wed Jan 15 2020 Alejandro Sáez <asm@redhat.com> - 1.3.2-2
|
|
|
37fee6 |
- Added tests
|
|
|
37fee6 |
- Related: rhbz#1758612
|
|
|
37fee6 |
|
|
|
37fee6 |
* Wed Nov 27 2019 Alejandro Sáez <asm@redhat.com> - 1.3.2-1
|
|
|
37fee6 |
- First package for RHEL
|
|
|
37fee6 |
- Related: rhbz#1758612
|