%global debug_package %{nil}
%global _hardened_build 1
%global commit0 391d1fb49615faf154d11841f7c368c6e76c0681
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

Summary:    A simple terminal based gopher client
Name:       delve
Version:    0.1git%{shortcommit0}
Release:    1%{?dist}
License:    GPLv3
URL:        https://github.com/kieselsteini/delve
Source0:    https://github.com/kieselsteini/delve/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
Patch0:     delve-prefix.patch

BuildRequires:    gcc
BuildRequires:    readline-devel

%description
Because Gopher should not die!
 - configurable gopher selector handlers
 - "powerful" shell
 - bookmarks
 - variables
 - command aliases
 - VT100 compatible with ANSI escape sequences
 - no external dependencies
   - GNU readline is fully optional
 - internal pager for text & menus

%prep
%autosetup -n %{name}-%{commit0} -p1

%build
%make_build

%install
%make_install

%files
%license LICENSE
%doc README.md
%{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}

%changelog
* Sat Aug 08 2020 Greg Wildman <greg@techno.co.za> - 0.1-1
- Initial spec.