%global debug_package %{nil} %global __strip /bin/true %ifarch ppc64le %global exp "-tags=exp.linuxppc64le" %endif Name: delve Epoch: 1 Version: 1.25.2 Release: 1%{?dist} 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 ExcludeArch: s390x %{ix86} armv7hl BuildRequires: compiler(go-compiler) Provides: dlv = %{version} Provides: bundled(golang(github.com/cilium/ebpf)) = 0.11.0 Provides: bundled(golang(github.com/cosiner/argv)) = 0.1.0 Provides: bundled(golang(github.com/cpuguy83/go.md2man/v2)) = 2.0.6 Provides: bundled(golang(github.com/creack/pty)) = 1.1.20 Provides: bundled(golang(github.com/derekparker/trie)) = 0.0.0.20230829180723.39f4de51ef7d Provides: bundled(golang(github.com/go.delve/liner)) = 1.2.3.0.20231231155935.4726ab1d7f62 Provides: bundled(golang(github.com/google/go.dap)) = 0.12.0 Provides: bundled(golang(github.com/hashicorp/golang.lru)) = 1.0.2 Provides: bundled(golang(github.com/inconshreveable/mousetrap)) = 1.1.0 Provides: bundled(golang(github.com/mattn/go.colorable)) = 0.1.13 Provides: bundled(golang(github.com/mattn/go.isatty)) = 0.0.20 Provides: bundled(golang(github.com/mattn/go.runewidth)) = 0.0.13 Provides: bundled(golang(github.com/rivo/uniseg)) = 0.2.0 Provides: bundled(golang(github.com/russross/blackfriday/v2)) = 2.1.0 Provides: bundled(golang(github.com/spf13/cobra)) = 1.9.1 Provides: bundled(golang(github.com/spf13/pflag)) = 1.0.6 Provides: bundled(golang(golang.org/x/arch)) = 0.11.0 Provides: bundled(golang(golang.org/x/exp)) = 0.0.0.20230224173230.c95f2b4c22f2 Provides: bundled(golang(golang.org/x/mod)) = 0.21.0 Provides: bundled(golang(golang.org/x/sync)) = 0.8.0 Provides: bundled(golang(golang.org/x/sys)) = 0.26.0 Provides: bundled(golang(golang.org/x/telemetry)) = 0.0.0.20241106142447.58a1122356f5 Provides: bundled(golang(golang.org/x/tools)) = 0.26.0 Provides: bundled(golang(gopkg.in/yaml.v3)) = 3.0.1 Provides: bundled(golang(go.starlark.net)) = 0.0.0.20231101134539.556fd59b42f6 %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 %autopatch -p1 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" %gobuild %{?exp} -o bin/dlv github.com/go-delve/delve/cmd/dlv %install install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv %files %license LICENSE %doc CONTRIBUTING.md CHANGELOG.md %doc Documentation/* %{_bindir}/dlv %changelog * Fri Nov 14 2025 Michael Lampe - 1.25.2-1 - Rebase to 1.25.2 * Fri Mar 14 2025 David Benoit - 1.24.1-1 - Rebase to 1.24.1 - Skip unsupported tests - Resolves: RHEL-83451 * Fri Aug 16 2024 Alejandro Sáez - 1.22.1-1 - Rebase to 1.22.1 - Resolves: RHEL-54307 * Wed Jan 31 2024 Alejandro Sáez - 1.21.2-3 - Skip an additional test as it's breaking in the CI system. - Modify the name of the patch. - Resolves: RHEL-22820 * Fri Jan 26 2024 Alejandro Sáez - 1.21.2-2 - Fix: Remove architectures from exclude ExcludeArch - Resolves: RHEL-22820 * Fri Jan 26 2024 Alejandro Sáez - 1.21.2-1 - Rebase to 1.21.2 - Add support for ppc64le and aarch64 - Enable the test suite - Modify ports: Some CI systems complain about the usage of the 8888 port. - Improve the way PPC64LE support is enabled. - Resolves: RHEL-22820 * Fri May 26 2023 Alejandro Sáez - 1.20.2-1 - Rebase to 1.20.2 - Resolves: rhbz#2186495 * Fri Sep 30 2022 Alejandro Sáez - 1.9.1-1 - Rebase to 1.9.1 - Related: rhbz#2131026 * Wed Apr 27 2022 Alejandro Sáez - 1.8.3-1 - Rebase to 1.8.3 - Resolves: rhbz#2077956 - Resolves: rhbz#2076501 * Thu Oct 14 2021 Alejandro Sáez - 1.7.2-1 - Rebase to 1.7.2 - Related: rhbz#2014088 * Wed Mar 17 2021 Alejandro Sáez - 1.6.0-1 - Rebase to 1.6.0 - Resolves: rhbz#1938071 - Removes golang-1.15.4-TestStepIntoWrapperForEmbeddedPointer.patch * Tue Nov 24 2020 David Benoit - 1.5.0-2 - Add golang-1.15.4 related patch - Resolves: rhbz#1901189 * Wed Sep 09 2020 Alejandro Sáez - 1.5.0-1 - Rebase to 1.5.0 - Related: rhbz#1870531 * Mon May 25 2020 Alejandro Sáez - 1.4.1-1 - Rebase to 1.4.1 - Resolves: rhbz#1821281 - Related: rhbz#1820596 * Fri May 22 2020 Alejandro Sáez - 1.4.0-2 - Change i686 to a better macro - Related: rhbz#1820596 * Tue Apr 28 2020 Alejandro Sáez - 1.4.0-1 - Rebase to 1.4.0 - Remove Patch1781 - Related: rhbz#1820596 * Thu Jan 16 2020 Alejandro Sáez - 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 - 1.3.2-2 - Added tests - Related: rhbz#1758612 * Wed Nov 27 2019 Alejandro Sáez - 1.3.2-1 - First package for RHEL - Related: rhbz#1758612