diff --git a/.delve.metadata b/.delve.metadata new file mode 100644 index 0000000..60b9ce6 --- /dev/null +++ b/.delve.metadata @@ -0,0 +1 @@ +16527e9bd43ee65b1dc9352e7a3dd171da9b5d3e SOURCES/delve-1.3.2.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e080a8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/delve-1.3.2.tar.gz diff --git a/SPECS/delve.spec b/SPECS/delve.spec new file mode 100644 index 0000000..5fe4aab --- /dev/null +++ b/SPECS/delve.spec @@ -0,0 +1,54 @@ +Name: delve +Version: 1.3.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: ppc64le s390x aarch64 i686 armv7hl + +BuildRequires: compiler(go-compiler) +BuildRequires: git + +Provides: dlv = %{version} + +%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 -n %{name}-%{version} +rm go.mod + +%build +mkdir -p $(pwd)/_build +pushd $(pwd)/_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 + +%install +install -Dpm 0755 bin/dlv %{buildroot}%{_bindir}/dlv + +%check +# Nothing here at the moment + +%files +%{_bindir}/dlv +%license LICENSE +%doc README.md CONTRIBUTING.md + + +%changelog +* Wed Nov 27 2019 Alejandro Sáez - 1.3.2-1 + - First package for RHEL + - Related: rhbz#1758612