2020-02-16 21:30:11 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
|
|
|
|
Name: gh
|
2020-06-12 08:04:24 +03:00
|
|
|
Version: 0.10.0
|
2020-02-16 21:30:11 +03:00
|
|
|
Release: 1
|
|
|
|
Summary: github cli
|
|
|
|
URL: https://cli.github.com/
|
|
|
|
Source0: https://github.com/cli/cli/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Other
|
|
|
|
BuildRequires: go > 1.10
|
2020-03-04 19:44:17 +03:00
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: upx
|
2020-02-16 21:30:11 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
gh is GitHub on the command line, and it's now available
|
|
|
|
in beta. It brings pull requests, issues, and other GitHub
|
|
|
|
concepts to the terminal next to where you are already
|
|
|
|
2working with git and your code
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn cli-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make
|
|
|
|
|
2020-03-04 19:44:17 +03:00
|
|
|
# bin package
|
|
|
|
pushd bin
|
|
|
|
upx %{name}
|
|
|
|
popd
|
|
|
|
|
2020-02-16 21:30:11 +03:00
|
|
|
%install
|
|
|
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|