Fix unversioned Python shebangs

epel8
Orcan Ogetbil 7 years ago
parent 2db35a4ec7
commit 94df60b34a

@ -11,7 +11,7 @@
Summary: The Jack Audio Connection Kit
Name: jack-audio-connection-kit
Version: 1.9.12
Release: 4%{?dist}
Release: 5%{?dist}
# The entire source (~500 files) is a mixture of these three licenses
License: GPLv2 and GPLv2+ and LGPLv2+
Group: System Environment/Daemons
@ -30,6 +30,8 @@ Patch2: jack2-1.9.12-nointernalapi.patch
Patch3: jack-realtime-compat.patch
# Remove binary junk from README
Patch4: jack2-1.9.12-nojunk.patch
# Proper Python2 shebangs
Patch5: jack2-1.9.12-python-shebang.patch
BuildRequires: alsa-lib-devel
@ -98,6 +100,7 @@ Small example clients that use the Jack Audio Connection Kit.
%patch2 -p1 -b .nointernalapi
%patch3 -p1 -b .priority
%patch4 -p1 -b .nojunk
%patch5 -p1 -b .shebang
%build
export CPPFLAGS="$RPM_OPT_FLAGS"
@ -245,6 +248,9 @@ exit 0
%changelog
* Thu Jul 05 2018 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.9.12-5
- Fix unversioned Python shebangs
* Sat Feb 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.9.12-4
- Switch to %%ldconfig_scriptlets

@ -0,0 +1,72 @@
diff -rupN jack2-1.9.12.org/common/wscript jack2-1.9.12/common/wscript
--- jack2-1.9.12.org/common/wscript 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/common/wscript 2018-07-05 22:32:26.811067221 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python2
# encoding: utf-8
import re
diff -rupN jack2-1.9.12.org/dbus/wscript jack2-1.9.12/dbus/wscript
--- jack2-1.9.12.org/dbus/wscript 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/dbus/wscript 2018-07-05 22:32:26.812067218 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python2
# encoding: utf-8
import os.path
diff -rupN jack2-1.9.12.org/example-clients/jack_control jack2-1.9.12/example-clients/jack_control
--- jack2-1.9.12.org/example-clients/jack_control 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/example-clients/jack_control 2018-07-05 22:32:26.814067212 -0400
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
name_base = 'org.jackaudio'
control_interface_name = name_base + '.JackControl'
diff -rupN jack2-1.9.12.org/example-clients/wscript jack2-1.9.12/example-clients/wscript
--- jack2-1.9.12.org/example-clients/wscript 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/example-clients/wscript 2018-07-05 22:32:26.813067215 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python2
# encoding: utf-8
example_programs = {
diff -rupN jack2-1.9.12.org/man/wscript jack2-1.9.12/man/wscript
--- jack2-1.9.12.org/man/wscript 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/man/wscript 2018-07-05 22:32:26.813067215 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python2
# encoding: utf-8
import re
diff -rupN jack2-1.9.12.org/tests/wscript jack2-1.9.12/tests/wscript
--- jack2-1.9.12.org/tests/wscript 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/tests/wscript 2018-07-05 22:32:26.813067215 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python2
# encoding: utf-8
test_programs = {
diff -rupN jack2-1.9.12.org/waf jack2-1.9.12/waf
--- jack2-1.9.12.org/waf 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/waf 2018-07-05 22:32:26.806067234 -0400
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# encoding: ISO8859-1
# Thomas Nagy, 2005-2015
diff -rupN jack2-1.9.12.org/wscript jack2-1.9.12/wscript
--- jack2-1.9.12.org/wscript 2017-12-13 16:19:04.000000000 -0500
+++ jack2-1.9.12/wscript 2018-07-05 22:32:26.810067223 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python2
# encoding: utf-8
from __future__ import print_function
Loading…
Cancel
Save