Accepting request 907012 from home:StevenK:branches:graphics

- Remove executable bits from Python scripts when creating the source
  tree for the -source package to stop it requiring /usr/bin/python

OBS-URL: https://build.opensuse.org/request/show/907012
OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=38
This commit is contained in:
Axel Braun 2021-07-19 09:07:23 +00:00 committed by Git OBS Bridge
parent f74ec7c21a
commit f391f7a7ba
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 19 06:00:06 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Remove executable bits from Python scripts when creating the source
tree for the -source package to stop it requiring /usr/bin/python
-------------------------------------------------------------------
Sun Jul 11 11:16:07 UTC 2021 - Axel Braun <axel.braun@gmx.de>

View File

@ -174,6 +174,8 @@ mkdir -p -m 755 %{buildroot}%{_docdir}/%{name}
mkdir -p -m 755 %{buildroot}/usr/src/%{name}
# Copy sources
tar --strip-components 1 -xzf %{S:0} -C %{buildroot}/usr/src/%{name}/
# Do not mark Python scripts as executable
find %{buildroot}/usr/src/%{name} -name '*.py' -exec chmod a-x "{}" +
#...and delete dot files
rm %{buildroot}/usr/src/%{name}/.hg*
rm %{buildroot}/usr/src/%{name}/.travis*