!1 Add delve source package and spec file
Merge pull request !1 from fcwicky/master
This commit is contained in:
commit
5004b4ac1c
BIN
delve-1.4.0.tar.gz
Normal file
BIN
delve-1.4.0.tar.gz
Normal file
Binary file not shown.
48
delve.spec
Executable file
48
delve.spec
Executable file
@ -0,0 +1,48 @@
|
|||||||
|
%global goipath github.com/go-delve/delve
|
||||||
|
%global gobuild go build -mod=vendor
|
||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: delve
|
||||||
|
Version: 1.4.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A debugger for the Go programming language
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/go-delve/delve
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
%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
|
||||||
|
* Fri Apr 10 2020 fcwicky <307610302@qq.com> - 1.4.0-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user