Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37787622
en ru br
ALT Linux repos
S:4.16.0.1-alt1

Group :: Networking/WWW
RPM: pve-xtermjs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%global _unpackaged_files_terminate_build 1

Name: pve-xtermjs
Summary: HTML/JS Shell client
Version: 4.16.0
Release: alt1
License: AGPL-3.0+
Group: Networking/WWW
Url: https://git.proxmox.com/

Vcs: git://git.proxmox.com/git/pve-xtermjs.git
Source: %name-%version.tar

ExclusiveArch: x86_64 aarch64
BuildRequires(pre): rpm-macros-rust
BuildRequires: rpm-build-rust pkgconfig(openssl) libuuid-devel
BuildRequires: /proc

%description
This is an xterm.js client for PVE Host, Container and Qemu Serial Terminal

%prep
%setup

%build
#export BUILD_MODE=release
#%%make_build
%rust_build

#sed -i 's|Proxmox|PVE|' src/www/index.html.tpl.in

sed -e "s/ at VERSION at /%version/" src/www/index.html.tpl.in > src/www/index.html.tpl
sed -e "s/ at VERSION at /%version/" src/www/index.html.hbs.in > src/www/index.html.hbs
rm src/www/index.html.tpl.in src/www/index.html.hbs.in

%install
%rust_install termproxy
mkdir -p %buildroot%_datadir/%name
cp src/www/* %buildroot%_datadir/%name/

%files
%_bindir/termproxy
%_datadir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin