add spec file for delve package

This commit is contained in:
fcwicky 2020-04-10 11:16:33 +08:00
parent 3c92438e1f
commit 9b01addfd1

View File

@ -4,16 +4,14 @@
Name: delve Name: delve
Version: 1.4.0 Version: 1.4.0
Release: 1%{?dist} Release: 1
Summary: A debugger for the Go programming language Summary: A debugger for the Go programming language
Group: Development/Debuggers
License: MIT License: MIT
URL: https://github.com/go-delve/delve URL: https://github.com/go-delve/delve
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc BuildRequires: gcc glibc
BuildRequires: glibc BuildRequires: golang >= 1.11
BuildRequires: golang >= 1.11
Requires: glibc Requires: glibc
Provides: %{name} = %{version}-%{release} Provides: %{name} = %{version}-%{release}
@ -21,12 +19,7 @@ Provides: %{name} = %{version}-%{release}
%description %description
delve is a debugger for the Go programming language delve is a debugger for the Go programming language
%package help %package_help
Summary: Documentation and templates for delve
BuildArch: noarch
%description help
This package contains documentation for delve.
%prep %prep
%setup -q %setup -q
@ -35,7 +28,6 @@ This package contains documentation for delve.
%gobuild -o _bin/dlv %{goipath}/cmd/dlv %gobuild -o _bin/dlv %{goipath}/cmd/dlv
%install %install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_bindir}
install -m 0755 _bin/dlv %{buildroot}%{_bindir}/dlv install -m 0755 _bin/dlv %{buildroot}%{_bindir}/dlv
@ -44,10 +36,11 @@ rm -rf %{buildroot}
%files %files
%{_bindir}/dlv %{_bindir}/dlv
%files help
%license LICENSE %license LICENSE
%doc CONTRIBUTING.md CHANGELOG.md %doc CONTRIBUTING.md CHANGELOG.md README.md
%files help
%doc Documentation/* %doc Documentation/*
%changelog %changelog