From 8833b91a9780ff63be6c1316789471967f830924d9afe47e1b0d602d1acb3216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Mon, 30 Jan 2023 16:52:18 +0000 Subject: [PATCH] Accepting request 1062061 from home:dimstar:Factory - Add dLeyna-no-python-shebang.patch: remove /usr/bin/python shebang from download_sync_controller.py. The file is installed into a python 3.10 site-directory and thus clearly does not need a python2 shebang. OBS-URL: https://build.opensuse.org/request/show/1062061 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/dLeyna?expand=0&rev=5 --- dLeyna-no-python-shebang.patch | 10 ++++++++++ dLeyna.changes | 8 ++++++++ dLeyna.spec | 9 +++++---- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 dLeyna-no-python-shebang.patch diff --git a/dLeyna-no-python-shebang.patch b/dLeyna-no-python-shebang.patch new file mode 100644 index 0000000..97b0661 --- /dev/null +++ b/dLeyna-no-python-shebang.patch @@ -0,0 +1,10 @@ +diff --git a/python/dLeyna/download_sync_controller.py b/python/dLeyna/download_sync_controller.py +index b567249..c0b48c9 100755 +--- a/python/dLeyna/download_sync_controller.py ++++ b/python/dLeyna/download_sync_controller.py +@@ -1,5 +1,3 @@ +-#!/usr/bin/python +- + # download_sync_controller + # + # Copyright (C) 2012-2017 Intel Corporation. All rights reserved. diff --git a/dLeyna.changes b/dLeyna.changes index 9fa5d76..acc3406 100644 --- a/dLeyna.changes +++ b/dLeyna.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jan 30 14:13:19 UTC 2023 - Dominique Leuenberger + +- Add dLeyna-no-python-shebang.patch: remove /usr/bin/python + shebang from download_sync_controller.py. The file is installed + into a python 3.10 site-directory and thus clearly does not need + a python2 shebang. + ------------------------------------------------------------------- Fri Nov 25 16:30:54 UTC 2022 - Bjørn Lie diff --git a/dLeyna.spec b/dLeyna.spec index d924250..8a49e37 100644 --- a/dLeyna.spec +++ b/dLeyna.spec @@ -1,7 +1,7 @@ # # spec file for package dLeyna # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # - Name: dLeyna Version: 0.8.2 Release: 0 @@ -24,12 +23,14 @@ Summary: Services and D-Bus APIs to access UPnP and DLNA media devices in License: LGPL-2.1-or-later URL: https://gitlab.gnome.org/World/dLeyna Source0: %{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM dLeyna-no-python-shebang.patch -- Do not carry /usr/bin/pythin shebang in python module files +Patch0: dLeyna-no-python-shebang.patch +BuildRequires: docutils BuildRequires: meson >= 0.54.0 BuildRequires: pkgconfig -BuildRequires: docutils -BuildRequires: pkgconfig(glib-2.0) >= 2.28 BuildRequires: pkgconfig(gio-2.0) >= 2.28 +BuildRequires: pkgconfig(glib-2.0) >= 2.28 BuildRequires: pkgconfig(gssdp-1.6) >= 1.6.0 BuildRequires: pkgconfig(gupnp-1.6) >= 1.6.0 BuildRequires: pkgconfig(gupnp-av-1.0) >= 0.12.9