File tcp-chat.spec of Package tcp-chat

#
# spec file for package tcp-chat
#
# Copyright (c) 2024 Pedro Tashima
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://github.com/tashima42/tcp-chat/issues
#


Name:           tcp-chat
Version:        0.0.2
Release:        0
Summary:        Simple TUI chat
License:        GPL 3.0
Group:          Social
URL:            https://github.com/tashima42/tcp-chat
Source0:        %{name}-v%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  golang(API) >= 1.21

%description
tcp-chat is a terminal UI to create and interact with simple chat rooms
%prep
%autosetup -a 1

%build
go build

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}

%check
# execute the binary as a basic check
./%{name} --help

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

%changelog

openSUSE Build Service is sponsored by