diff --git a/pythonversion.bad.patch b/pythonversion.bad.patch new file mode 100644 index 0000000..79ac2e1 --- /dev/null +++ b/pythonversion.bad.patch @@ -0,0 +1,9 @@ +--- system-switch-java.in ++++ system-switch-java.in +@@ -1,4 +1,4 @@ +-#!/usr/bin/python2 ++#!/usr/bin/python3 + # system-switch-java - the Java toolset switcher frontend + # Copyright (C) 2007 Red Hat, Inc. + + diff --git a/system-switch-java.spec b/system-switch-java.spec index 675c011..461c085 100644 --- a/system-switch-java.spec +++ b/system-switch-java.spec @@ -4,13 +4,14 @@ Name: system-switch-java Version: 1.1.7.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A tool for changing the default Java toolset License: GPLv2+ and BSD URL: https://pagure.io/%{name} Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz +Patch0: pythonversion.bad.patch BuildArch: noarch @@ -35,6 +36,7 @@ the default Java toolset for the system. %prep %setup -q +%patch0 %build %configure @@ -67,6 +69,9 @@ desktop-file-install \ %config(noreplace) /etc/security/console.apps/%{name} %changelog +* Fri Oct 04 2019 Jiri Vanek - 1.1.7.2-6 +- pathced out python2 shebang + * Thu Oct 03 2019 Jiri Vanek - 1.1.7.2-5 - bumped to python instead of python2 - the sources are not 100% working with python 3 now, but patch will be upstreamed, and sources bumped