File tty-copy.spec of Package tty-copy

#
# spec file for package tty-copy
#
# Copyright (c) 2022, Martin Hauke <mardnh@gmx.de>
#
# 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://bugs.opensuse.org/
#


Name:           tty-copy
Version:        0.2.0
Release:        0
Summary:        Copy content to the system clipboard via TTY
License:        MIT
URL:            https://github.com/jirutka/tty-copy/
Source:         https://github.com/jirutka/tty-copy/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

%description
An utility for copying content to the system clipboard from *anywhere* via
a TTY and terminal using the ANSI OSC52 sequence.
It works in any terminal session, whether local, remote (e.g. SSH), or
even nested therein!

%prep
%setup -q

%build
%make_build CFLAGS='%{optflags}' build-exec

%install
install -Dm 0755 build/tty-copy %{buildroot}%{_bindir}/tty-copy

%files
%license LICENSE
%doc README.adoc
%{_bindir}/tty-copy

%changelog
openSUSE Build Service is sponsored by