From f391f7a7ba2b809c17fbc5b2ba4189742d25d08e4444d8106ddd96df5eb7f742 Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Mon, 19 Jul 2021 09:07:23 +0000 Subject: [PATCH] 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 --- orthanc.changes | 6 ++++++ orthanc.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/orthanc.changes b/orthanc.changes index b572bd3..4d0105c 100644 --- a/orthanc.changes +++ b/orthanc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 19 06:00:06 UTC 2021 - Steve Kowalik + +- 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 diff --git a/orthanc.spec b/orthanc.spec index 324e723..bd05851 100644 --- a/orthanc.spec +++ b/orthanc.spec @@ -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*