File ttyd.spec of Package ttyd
#
# spec file for package ttyd
#
# Copyright (c) 2025 SUSE LLC
#
# 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: ttyd
Version: 1.7.7+git20250727.eccebc6
Release: 0
Summary: A simple command-line tool for sharing terminal over the web
License: MIT
Group: System/GUI/Other
URL: https://github.com/tsl0922/ttyd
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.5
BuildRequires: git-core
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libuv)
BuildRequires: pkgconfig(libwebsockets)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
%description
Features:
* Built on top of Libwebsockets with libuv for speed
* Fully-featured terminal based on Xterm.js with CJK and IME support
* Graphical ZMODEM integration with lrzsz support
* SSL support based on OpenSSL
* Run any custom command with options
* Basic authentication support and many other custom options
* Cross platform: macOS, Linux, FreeBSD/OpenBSD, OpenWrt, Windows
%prep
%setup
%build
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
%install
%cmake_install
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%changelog