- Remove python3 shebang from sitelib files (bsc#1212476)

OBS-URL: https://build.opensuse.org/package/show/Publishing/asciidoc?expand=0&rev=57
This commit is contained in:
Martin Pluskal 2024-06-18 08:30:43 +00:00 committed by Git OBS Bridge
parent b01a3b11f7
commit 2d3a11dc5e
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 11 07:50:00 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Remove python3 shebang from sitelib files (bsc#1212476)
-------------------------------------------------------------------
Thu Jun 23 11:33:12 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file
# spec file for package asciidoc
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -82,7 +82,9 @@ latex dependencies that we don't want to have by default. So this package is opt
%prep
%setup -q -n asciidoc-%{version}
# do not use env
find ./ -name \*.py -exec sed -i -e 's:/usr/bin/env\ :%{_bindir}/:g' {} \;
# Remove python shebang from sitelib files, this will remove the
# automatic dependency on /usr/bin/python3
find asciidoc -name \*.py -exec sed -i -e '/\/usr\/bin\/env/d' {} \;
%if "%{flavor}" == "latextest"
%build