Blame SPECS/delve.spec

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