15
0
forked from pool/python-i3ipc

- Mark example scripts as non-executable

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-i3ipc?expand=0&rev=11
This commit is contained in:
2021-09-23 09:48:15 +00:00
committed by Git OBS Bridge
parent bdc438718a
commit ad882e67a6
2 changed files with 9 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
# for tests we need i3 at build time
BuildRequires: %{python_module python-xlib}
BuildRequires: %{python_module asyncio}
BuildRequires: i3
BuildRequires: python-rpm-macros
BuildRequires: xvfb-run
@@ -57,6 +58,9 @@ sed -i "s/'enum-compat'//" setup.py
# standalone).
sed -i '/^#!\/usr\/bin\/env.*/d' examples/*.py examples/i3-focus/*.py
# Examples shouldn't be executable
find examples/ -name \*.py -exec chmod -x '{}' \;
%build
%python_build