15
0

- 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
This commit is contained in:
2021-08-30 09:57:25 +00:00
committed by Git OBS Bridge
parent d618b7a70c
commit e014de2439
3 changed files with 58 additions and 1 deletions

48
examples_to_py3k.patch Normal file
View File

@@ -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

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 30 09:56:56 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Add examples_to_py3k.patch to remove py2k shebangs
(gh#AGProjects/python3-application#2).
-------------------------------------------------------------------
Fri Aug 27 13:09:15 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@@ -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