SHA256
1
0
forked from pool/xpra

Accepting request 869790 from home:olh:branches:X11:Utilities

- Fix requires for /bin/bash

OBS-URL: https://build.opensuse.org/request/show/869790
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xpra?expand=0&rev=66
This commit is contained in:
Luigi Baldoni 2021-02-05 17:52:03 +00:00 committed by Git OBS Bridge
parent a51db3efd3
commit e9807bd840
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 5 15:15:15 UTC 2021 - olaf@aepfle.de
- Fix requires for /bin/bash
-------------------------------------------------------------------
Thu Dec 31 19:17:12 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -115,18 +115,19 @@ connections, and also the xpra html5 client.
%prep
%autosetup -p1
%build
# fix shebangs
find -name '*.py' \
-exec sed -i '1{\@^#!/usr/bin/env python@d}' {} +
sed -i "1 s|^#!/usr/bin/env python\b|#!%__python3|" cups/xpraforwarder
sed -i "1 s|^/usr/bin/bash|#!$(which bash)|" scripts/xpra_udev_product_version
sed -i "1 s|^/usr/bin/bash|#!/bin/bash|" scripts/xpra_udev_product_version
install -m0644 %{SOURCE1} -t xdg
# set fillup dir
sed -e 's|__FILLUPDIR__|%{_fillupdir}|' \
-e 's|__UNITDIR__|%{_unitdir}|' \
-i setup.py
%build
python3 setup.py build \
--verbose \
--with-enc_ffmpeg \