Signed-off-by: herengui <herengui@kylinsec.com.cn> (cherry picked from commit 91b4abdf69d62640a91ec0a081579f4648dc555b)
74 lines
1.8 KiB
RPMSpec
Executable File
74 lines
1.8 KiB
RPMSpec
Executable File
%global goipath github.com/go-delve/delve
|
|
%global gobuild go build -mod=vendor -buildmode=pie -ldflags "-s -w -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now'"
|
|
%global debug_package %{nil}
|
|
|
|
Name: delve
|
|
Version: 1.6.0
|
|
Release: 3
|
|
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
|
|
|
|
Patch1000: 1000-add-loongarch64-support-not-upstream-modified.patch
|
|
Patch1001: 1001-add-loongarch64-support-not-upstream-new.patch
|
|
|
|
BuildRequires: gcc glibc
|
|
BuildRequires: golang >= 1.11
|
|
Requires: glibc
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
|
|
|
%description
|
|
delve is a debugger for the Go programming language
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%setup -q
|
|
%ifarch loongarch64
|
|
%patch1000 -p1
|
|
%patch1001 -p1
|
|
%__rm -rf vendor/golang.org/x/sys
|
|
%__cp -af %{_prefix}/lib/golang/src/cmd/vendor/golang.org/x/sys vendor/golang.org/x/
|
|
%endif
|
|
|
|
|
|
%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
|
|
%doc CONTRIBUTING.md CHANGELOG.md README.md
|
|
|
|
|
|
%files help
|
|
%doc Documentation/*
|
|
|
|
%changelog
|
|
* Mon Aug 14 2023 herengui <herengui@kylinsec.com.cn> - 1.6.0-3
|
|
- add loongarch64 support
|
|
|
|
* Thu Feb 09 2023 wangkai <wangkai385@h-partners.com> - 1.6.0-2
|
|
- Add PIE,BIND_NOW,RELRO,STRIP secure compilation options
|
|
|
|
* Fri Jan 29 2021 fcwicky <307610302@qq.com> - 1.6.0-1
|
|
- update package to v1.6.0
|
|
|
|
* Tue Oct 13 2020 Qingqing Li <liqingqing3@huawei.com> - 1.5.0-2
|
|
- update source0
|
|
|
|
* Mon Aug 17 2020 fcwicky <307610302@qq.com> - 1.5.0-1
|
|
- Udpate package to v1.5.0
|
|
|
|
* Fri Apr 10 2020 fcwicky <307610302@qq.com> - 1.4.0-1
|
|
- Package init
|