SHA256
1
0
forked from pool/xpra

Accepting request 646279 from home:jengelh:branches:X11:Utilities

- Make xpra-html5 subpackage noarch
- Speed up find -exec

OBS-URL: https://build.opensuse.org/request/show/646279
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xpra?expand=0&rev=8
This commit is contained in:
Luigi Baldoni 2018-11-05 09:08:29 +00:00 committed by Git OBS Bridge
parent d52a7fa53e
commit 8e2faab52d
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Nov 4 23:48:14 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Make xpra-html5 subpackage noarch
- Speed up find -exec
-------------------------------------------------------------------
Sun Nov 4 14:47:43 UTC 2018 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -108,6 +108,7 @@ Provides: bundled(js-forge)
Provides: bundled(js-aurora)
Provides: bundled(js-broadway)
Provides: bundled(js-bencode)
BuildArch: noarch
%description html5
This package adds websockify support to allow xpra to listen for http
@ -118,10 +119,10 @@ connections, and also the xpra html5 client.
%patch0 -p1
# fix shebangs
find -name '*.py' \
-exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \;
-exec sed -i '1{\@^#!/usr/bin/env python@d}' {} +
sed -i "1 s|^#!/usr/bin/env python\b|#!%__python2|" cups/xpraforwarder
# fix python-bytecode-inconsistent-mtime warning
find . -name '*.py' -exec touch -mat 1707141200 {} \;
find . -name '*.py' -exec touch -mat 1707141200 {} +
install -m0644 %{SOURCE1} -t xdg
# set fillup dir
sed -i 's|__FILLUPDIR__|%{_fillupdir}|' setup.py
@ -164,7 +165,7 @@ install -pm 644 etc/xpra/nvenc.keys %{buildroot}%{_sysconfdir}/xpra
# Ensure all .js files are not executable
find %{buildroot}%{_datadir}/xpra/www/js -name '*.js' \
-exec chmod 0644 {} \;
-exec chmod 0644 {} +
%suse_update_desktop_file -r xpra Network RemoteAccess
%suse_update_desktop_file -r xpra-browser Network RemoteAccess