# This file is part of Xpra. # Copyright (C) 2010 Antoine Martin # Copyright (C) 2025 Benson Muite # Xpra is released under the terms of the GNU GPL v2, or, at your option, any # later version. See the file COPYING for details. %define minifier uglifyjs Name: xpra-html5 Version: 17.1 Release: %{autorelease} Summary: HTML5 client for Xpra License: GPL-2.0-or-later AND BSD-3-Clause AND LGPL-3.0-or-later AND MIT URL: https://xpra.org/ VCS: git:https://github.com/Xpra-org/xpra-html5.git Source: https://github.com/Xpra-org/xpra-html5/archive/v%{version}/xpra-html5-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-setuptools Conflicts: xpra < 2.1 BuildRequires: uglify-js BuildRequires: python3 BuildRequires: desktop-backgrounds-compat Recommends: desktop-backgrounds-compat BuildRequires: js-jquery BuildRequires: brotli Requires: js-jquery %description This is the HTML5 client for Xpra, which can be made available for browsers by the xpra server or by any other web server. %prep %setup %install mkdir -p %{buildroot}%{_datadir}/xpra/www mkdir -p %{buildroot}%{_sysconfdir}/xpra/html5-client %{python3} ./setup.py install %{buildroot} %{_datadir}/xpra/www/ %{_sysconfdir}/xpra/html5-client %{minifier} # Ensure there are no executable files: find %{buildroot}%{_datadir}/xpra/www/ -type f -exec chmod 0644 {} \; mkdir -p %{buildroot}/usr/share/doc/xpra-html5/ %files %defattr(-,root,root) %{_sysconfdir}/xpra/html5-client %{_datadir}/xpra/www %license LICENSE %changelog %autochangelog