2024-01-25 07:28:13 +00:00
|
|
|
%ifarch ppc64le
|
|
|
|
%global exp "-tags=exp.linuxppc64le"
|
|
|
|
%endif
|
|
|
|
|
2020-11-16 17:48:55 +00:00
|
|
|
Name: delve
|
2024-08-16 15:24:19 +00:00
|
|
|
Version: 1.22.1
|
|
|
|
Release: 1%{?dist}
|
2020-11-16 17:48:55 +00:00
|
|
|
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
|
|
|
|
|
2024-01-23 12:36:21 +00:00
|
|
|
ExcludeArch: s390x %{ix86} armv7hl
|
2020-11-16 17:48:55 +00:00
|
|
|
|
|
|
|
BuildRequires: compiler(go-compiler)
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: lsof
|
|
|
|
|
|
|
|
Provides: dlv = %{version}
|
|
|
|
|
2024-01-25 07:28:13 +00:00
|
|
|
Patch0001: modify-ports.patch
|
|
|
|
|
2020-11-16 17:48:55 +00:00
|
|
|
|
|
|
|
%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
|
2024-01-25 07:28:13 +00:00
|
|
|
%autopatch -p1
|
2020-11-16 17:48:55 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
export GO111MODULE=off
|
|
|
|
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
|
2024-01-25 07:28:13 +00:00
|
|
|
%gobuild %{?exp} -o bin/dlv github.com/go-delve/delve/cmd/dlv
|
2020-11-16 17:48:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
export GO111MODULE=off
|
|
|
|
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
|
|
|
|
install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2024-01-23 12:36:21 +00:00
|
|
|
export GO111MODULE=off
|
|
|
|
export GOPATH="%{_builddir}/%{name}-%{version}/_build"
|
|
|
|
cd "_build/src/github.com/go-delve/%{name}"
|
2024-01-25 07:28:13 +00:00
|
|
|
for d in $(go list %{?exp} ./... | grep -v cmd | grep -v scripts); do
|
|
|
|
go test %{?exp} ${d}
|
2024-01-23 12:36:21 +00:00
|
|
|
done
|
2020-11-16 17:48:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc CONTRIBUTING.md CHANGELOG.md
|
|
|
|
%doc Documentation/*
|
|
|
|
%{_bindir}/dlv
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-08-16 15:24:19 +00:00
|
|
|
* Fri Aug 16 2024 Alejandro Sáez <asm@redhat.com> - 1.22.1-1
|
|
|
|
- Rebase to Delve 1.22.1
|
|
|
|
- Resolves: RHEL-50840
|
|
|
|
|
2024-01-25 07:28:13 +00:00
|
|
|
* Thu Jan 25 2024 Alejandro Sáez <asm@redhat.com> - 1.21.2-2
|
|
|
|
- Modify ports: Some CI systems complain about the usage of the 8888 port.
|
|
|
|
- Improve the way PPC64LE support is enabled.
|
|
|
|
- Resolves: RHEL-22429
|
|
|
|
|
2024-01-23 12:36:21 +00:00
|
|
|
* Tue Jan 23 2024 Alejandro Sáez <asm@redhat.com> - 1.21.2-1
|
|
|
|
- Rebase to 1.21.2
|
|
|
|
- Add support for ppc64le and aarch64
|
|
|
|
- Enable the test suite
|
|
|
|
- Resolves: RHEL-22429
|
|
|
|
|
2023-05-26 07:11:09 +00:00
|
|
|
* Fri May 26 2023 Alejandro Sáez <asm@redhat.com> - 1.20.2-1
|
|
|
|
- Rebase to 1.20.2
|
|
|
|
- Resolves: rhbz#2186496
|
|
|
|
|
2022-09-30 15:59:21 +00:00
|
|
|
* Fri Sep 30 2022 Alejandro Sáez <asm@redhat.com> - 1.9.1-1
|
|
|
|
- Rebase to 1.9.1
|
|
|
|
- Related: rhbz#2131028
|
|
|
|
|
2022-07-15 09:21:39 +00:00
|
|
|
* Fri Jul 15 2022 Alejandro Sáez <asm@redhat.com> - 1.8.3-1
|
|
|
|
- Rebase to 1.8.3
|
|
|
|
- Related: rhbz#2098063
|
|
|
|
|
2021-12-22 16:18:27 +00:00
|
|
|
* Wed Dec 22 2021 Alejandro Sáez <asm@redhat.com> - 1.7.3-1
|
|
|
|
- Rebase to 1.7.3
|
|
|
|
- Related: rhbz#2031116
|
|
|
|
|
2021-11-05 16:22:07 +00:00
|
|
|
* Fri Nov 05 2021 Alejandro Sáez <asm@redhat.com> - 1.7.2-1
|
|
|
|
- Rebase to 1.7.2
|
|
|
|
- Related: rhbz#2014087
|
|
|
|
|
2021-08-09 19:47:36 +00:00
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.0-5
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-06-22 18:37:03 +00:00
|
|
|
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.0-4
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
2021-04-15 23:03:47 +00:00
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.0-3
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-03-30 15:18:58 +00:00
|
|
|
* Tue Mar 30 2021 Alejandro Sáez <asm@redhat.com> - 1.6.0-2
|
|
|
|
- Rebase to 1.6.0
|
|
|
|
- Resolves: rhbz#1922455
|
|
|
|
|
2021-03-30 12:19:14 +00:00
|
|
|
* Wed Mar 17 2021 Alejandro Sáez <asm@redhat.com> - 1.6.0-1
|
|
|
|
- Rebase to 1.6.0
|
|
|
|
- Removes golang-1.15.4-TestStepIntoWrapperForEmbeddedPointer.patch
|
|
|
|
|
2020-11-16 17:48:55 +00:00
|
|
|
* Mon Nov 16 2020 David Benoit <dbenoit@redhat.com> - 1.5.0-2
|
|
|
|
- Resolves: rhbz#1898257
|
|
|
|
|
|
|
|
* Wed Sep 09 2020 Alejandro Sáez <asm@redhat.com> - 1.5.0-1
|
|
|
|
- Rebase to 1.5.0
|
|
|
|
- Related: rhbz#1870531
|
|
|
|
|
|
|
|
* 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
|
|
|
|
- First package for RHEL
|
|
|
|
- Related: rhbz#1758612
|