Blame SPECS/delve.spec

b5fce8
Name:                   delve
681969
Version:                1.4.1
b5fce8
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
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
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
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