import delve-1.4.1-1.module+el8.3.0+7000+b778ee60

This commit is contained in:
CentOS Sources 2020-07-28 08:44:33 -04:00 committed by Stepan Oksanichenko
parent 0705a8a65a
commit 47ca04d5a9
3 changed files with 55 additions and 19 deletions

View File

@ -1 +1 @@
16527e9bd43ee65b1dc9352e7a3dd171da9b5d3e SOURCES/delve-1.3.2.tar.gz 1a4e8f7672c329e493b2fd1f0a4cfe653c537bd7 SOURCES/delve-1.4.1.tar.gz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/delve-1.3.2.tar.gz SOURCES/delve-1.4.1.tar.gz

View File

@ -1,5 +1,5 @@
Name: delve Name: delve
Version: 1.3.2 Version: 1.4.1
Release: 1%{?dist} Release: 1%{?dist}
Summary: A debugger for the Go programming language Summary: A debugger for the Go programming language
@ -7,10 +7,11 @@ License: MIT
URL: https://github.com/go-delve/delve URL: https://github.com/go-delve/delve
Source0: https://github.com/go-delve/delve/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/go-delve/delve/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
ExcludeArch: ppc64le s390x aarch64 i686 armv7hl ExcludeArch: ppc64le s390x aarch64 %{ix86} armv7hl
BuildRequires: compiler(go-compiler) BuildRequires: compiler(go-compiler)
BuildRequires: git BuildRequires: git
BuildRequires: lsof
Provides: dlv = %{version} Provides: dlv = %{version}
@ -21,34 +22,69 @@ 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 aren't going your way. With that in mind, Delve should stay out of your way as
much as possible. much as possible.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
rm go.mod rm -rf go.mod
mv vendor %{_builddir}/src
mkdir -p "%{_builddir}/src/github.com/go-delve/"
cp -r %{_builddir}/%{name}-%{version} %{_builddir}/src/github.com/go-delve/%{name}
mkdir -p %{_builddir}/%{name}-%{version}/_build
mv %{_builddir}/src %{_builddir}/%{name}-%{version}/_build/src
%build %build
mkdir -p $(pwd)/_build export GO111MODULE=off
pushd $(pwd)/_build export GOPATH="%{_builddir}/%{name}-%{version}/_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 %gobuild -o bin/dlv github.com/go-delve/delve/cmd/dlv
%install %install
export GO111MODULE=off
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv
%check %check
# Nothing here at the moment export GO111MODULE=off
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
cd "_build/src/github.com/go-delve/%{name}"
for d in $(go list ./... | grep -v cmd | grep -v scripts); do
go test ${d}
done
%files %files
%{_bindir}/dlv
%license LICENSE %license LICENSE
%doc README.md CONTRIBUTING.md %doc CONTRIBUTING.md CHANGELOG.md
%doc Documentation/*
%{_bindir}/dlv
%changelog %changelog
* Mon May 25 2020 Alejandro Sáez <asm@redhat.com> - 1.4.1-1
- Rebase to 1.4.1
- Resolves: rhbz#1821281
- Related: rhbz#1820596
* Fri May 22 2020 Alejandro Sáez <asm@redhat.com> - 1.4.0-2
- Change i686 to a better macro
- Related: rhbz#1820596
* Tue Apr 28 2020 Alejandro Sáez <asm@redhat.com> - 1.4.0-1
- Rebase to 1.4.0
- Remove Patch1781
- Related: rhbz#1820596
* Thu Jan 16 2020 Alejandro Sáez <asm@redhat.com> - 1.3.2-3
- Resolves: rhbz#1758612
- Resolves: rhbz#1780554
- Add patch: 1781-pkg-terminal-Fix-exit-status.patch
* Wed Jan 15 2020 Alejandro Sáez <asm@redhat.com> - 1.3.2-2
- Added tests
- Related: rhbz#1758612
* Wed Nov 27 2019 Alejandro Sáez <asm@redhat.com> - 1.3.2-1 * Wed Nov 27 2019 Alejandro Sáez <asm@redhat.com> - 1.3.2-1
- First package for RHEL - First package for RHEL
- Related: rhbz#1758612 - Related: rhbz#1758612