2020-04-09 23:06:41 +08:00
|
|
|
%global goipath github.com/go-delve/delve
|
2023-02-09 19:21:24 +08:00
|
|
|
%global gobuild go build -mod=vendor -buildmode=pie -ldflags "-s -w -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now'"
|
2020-04-09 23:25:37 +08:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: delve
|
2024-02-22 15:13:47 +08:00
|
|
|
Version: 1.22.0
|
2024-08-01 19:26:17 +08:00
|
|
|
Release: 3
|
2020-04-09 23:25:37 +08:00
|
|
|
Summary: A debugger for the Go programming language
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/go-delve/delve
|
2023-09-26 15:48:22 +08:00
|
|
|
Source0: https://github.com/go-delve/delve/archive/v%{version}/%{name}-%{version}.tar.gz
|
2024-06-09 10:24:59 +08:00
|
|
|
Patch1: support-for-loongarch.patch
|
2024-08-01 19:26:17 +08:00
|
|
|
Patch2: support-for-riscv.patch
|
2020-04-09 23:06:41 +08:00
|
|
|
|
2022-08-29 10:28:17 +08:00
|
|
|
BuildRequires: gcc glibc
|
|
|
|
|
BuildRequires: golang >= 1.16
|
2020-04-09 23:25:37 +08:00
|
|
|
Requires: glibc
|
2020-04-09 23:06:41 +08:00
|
|
|
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
|
|
|
|
%description
|
|
|
|
|
delve is a debugger for the Go programming language
|
|
|
|
|
|
2020-04-10 11:16:33 +08:00
|
|
|
%package_help
|
2020-04-09 23:06:41 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2024-06-09 10:24:59 +08:00
|
|
|
%ifarch loongarch64
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%endif
|
2024-08-01 19:26:17 +08:00
|
|
|
%ifarch riscv64
|
|
|
|
|
%patch -P2 -p1
|
|
|
|
|
%endif
|
2020-04-09 23:06:41 +08:00
|
|
|
%build
|
|
|
|
|
%gobuild -o _bin/dlv %{goipath}/cmd/dlv
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
|
install -m 0755 _bin/dlv %{buildroot}%{_bindir}/dlv
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/dlv
|
|
|
|
|
%license LICENSE
|
2020-04-10 11:16:33 +08:00
|
|
|
%doc CONTRIBUTING.md CHANGELOG.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files help
|
2020-04-09 23:06:41 +08:00
|
|
|
%doc Documentation/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-08-01 19:26:17 +08:00
|
|
|
* Thu Aug 01 2024 Lin Runze <lrzlin@163.com> - 1.22.0-3
|
|
|
|
|
- add riscv64 support
|
|
|
|
|
|
2024-06-09 10:24:59 +08:00
|
|
|
* Sat Jun 8 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 1.22.0-2
|
|
|
|
|
- add loongarch64 support
|
|
|
|
|
|
2024-02-22 15:13:47 +08:00
|
|
|
* Thu Feb 22 2024 liyanan <liyanan61@h-partners.com> - 1.22.0-1
|
|
|
|
|
- Upgrade version to 1.22.0
|
|
|
|
|
|
2023-09-26 15:48:22 +08:00
|
|
|
* Tue Sep 26 2023 xu_ping <707078654@qq.com> - 1.21.0-1
|
|
|
|
|
- Upgrade version to 1.21.0
|
|
|
|
|
|
2023-02-09 19:21:24 +08:00
|
|
|
* Thu Feb 09 2023 wangkai <wangkai385@h-partners.com> - 1.9.1-2
|
|
|
|
|
- Add PIE,BIND_NOW,RELRO,STRIP secure compilation options
|
|
|
|
|
|
2022-08-29 10:28:17 +08:00
|
|
|
* Mon Aug 29 2022 jinzhiguang <jinzhiguang@kylinos.cn> - 1.9.1-1
|
|
|
|
|
- update to v1.9.1
|
|
|
|
|
|
2021-01-29 10:33:35 +08:00
|
|
|
* Fri Jan 29 2021 fcwicky <307610302@qq.com> - 1.6.0-1
|
|
|
|
|
- update package to v1.6.0
|
|
|
|
|
|
2020-10-13 17:06:26 +08:00
|
|
|
* Tue Oct 13 2020 Qingqing Li <liqingqing3@huawei.com> - 1.5.0-2
|
|
|
|
|
- update source0
|
|
|
|
|
|
2020-08-17 20:23:01 +08:00
|
|
|
* Mon Aug 17 2020 fcwicky <307610302@qq.com> - 1.5.0-1
|
|
|
|
|
- Udpate package to v1.5.0
|
|
|
|
|
|
2020-04-09 23:06:41 +08:00
|
|
|
* Fri Apr 10 2020 fcwicky <307610302@qq.com> - 1.4.0-1
|
|
|
|
|
- Package init
|