delve/delve.spec

52 lines
1.0 KiB
RPMSpec
Raw Normal View History

2020-04-09 23:06:41 +08:00
%global goipath github.com/go-delve/delve
%global gobuild go build -mod=vendor
2020-04-09 23:25:37 +08:00
%global debug_package %{nil}
Name: delve
2020-08-17 20:23:01 +08:00
Version: 1.5.0
2020-04-10 11:16:33 +08:00
Release: 1
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
Source0: %{name}-%{version}.tar.gz
2020-04-09 23:06:41 +08:00
2020-04-10 11:16:33 +08:00
BuildRequires: gcc glibc
BuildRequires: golang >= 1.11
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
%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
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