commit 5eb2f583e3d99f33b6ee25c827a48b397c33ab13
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Thu Aug 10 01:42:20 2023 +0100
fix use of py3_shebang_fix macro
lives.spec | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/lives.spec b/lives.spec
index e2012f2..4a7632f 100644
--- a/lives.spec
+++ b/lives.spec
@@ -188,12 +188,16 @@ rm -rf %{buildroot}%{_docdir}
chrpath -d %{buildroot}%{_bindir}/%{name}-exe
# Remove Python2 script
-find %{buildroot} -name 'multi_encoder' -exec rm -f {} ';'
-find %{buildroot}%{_bindir} -name '*_encoder' -exec rm -f {} ';'
+find %{buildroot} -name 'multi_encoder' -delete
+find %{buildroot}%{_bindir} -name '*_encoder' -delete
# Fix unversioned Python interpreter
-find %{buildroot} -name '*multi_encoder3' | xargs %{py3_shebang_fix}
-find %{buildroot}%{_bindir} -name '*_encoder3' | xargs %{py3_shebang_fix}
+for i in $(find %{buildroot} -type f -name '*multi_encoder3'); do
+ %{py3_shebang_fix} $i
+done
+for i in $(find %{buildroot} -type f -name '*_encoder3'); do
+ %{py3_shebang_fix} $i
+done
rm -f %{buildroot}%{_bindir}/%{name}
cat > %{buildroot}%{_bindir}/%{name} <<EOF
Show replies by date