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:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 23 09:48:08 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Mark example scripts as non-executable
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 7 12:17:37 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user