From e014de24394321c45c2f64cf8b3536b20e56f588ca627c2b80384d326912e8af Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 30 Aug 2021 09:57:25 +0000 Subject: [PATCH] - Add examples_to_py3k.patch to remove py2k shebangs (gh#AGProjects/python3-application#2). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-application?expand=0&rev=4 --- examples_to_py3k.patch | 48 ++++++++++++++++++++++++++++++++++++++ python-application.changes | 6 +++++ python-application.spec | 5 +++- 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 examples_to_py3k.patch diff --git a/examples_to_py3k.patch b/examples_to_py3k.patch new file mode 100644 index 0000000..dae19bc --- /dev/null +++ b/examples_to_py3k.patch @@ -0,0 +1,48 @@ +--- + examples/config.py | 2 +- + examples/debug.py | 2 +- + examples/notification.py | 2 +- + examples/process.py | 2 +- + examples/singleton.py | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +--- a/examples/config.py ++++ b/examples/config.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + """Example of reading application settings from a configuration file""" + +--- a/examples/debug.py ++++ b/examples/debug.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + """Example of using the debug facilities of python-application""" + +--- a/examples/notification.py ++++ b/examples/notification.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + from time import time + from zope.interface import implements +--- a/examples/process.py ++++ b/examples/process.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + """Example of controlling the process behavior using the process module""" + +--- a/examples/singleton.py ++++ b/examples/singleton.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + from application.python.types import Singleton + diff --git a/python-application.changes b/python-application.changes index acb5849..6627661 100644 --- a/python-application.changes +++ b/python-application.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 30 09:56:56 UTC 2021 - Matej Cepl + +- Add examples_to_py3k.patch to remove py2k shebangs + (gh#AGProjects/python3-application#2). + ------------------------------------------------------------------- Fri Aug 27 13:09:15 UTC 2021 - Martin Hauke diff --git a/python-application.spec b/python-application.spec index 1732aaf..e425ee4 100644 --- a/python-application.spec +++ b/python-application.spec @@ -25,6 +25,9 @@ License: LGPL-2.1-or-later Group: Development/Libraries/Python URL: https://github.com/AGProjects/python3-application Source: https://github.com/AGProjects/python3-application/archive/refs/tags/%{version}.tar.gz#/python3-application-%{version}.tar.gz +# PATCH-FIX-UPSTREAM examples_to_py3k.patch gh#AGProjects/python3-application#2 mcepl@suse.com +# Replace py2k shebangs with py3k ones +Patch0: examples_to_py3k.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -46,7 +49,7 @@ handle the following tasks: - Manage the version number for applications, modules and packages. %prep -%setup -q -n python3-application-%{version} +%autosetup -p1 -n python3-application-%{version} %build %python_build