From 56371b73c3fdaa89c6216d222873553d73ca39f360bb2c53c243bd82a9869598 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 14 Jan 2021 13:39:46 +0000 Subject: [PATCH] Accepting request 862855 from home:dimstar:Factory - Simplify the dependency exclusion from __init__.py to also match with multiple python3-flavors. - Remove exec bit from all *.py files in examples, also subdirectories. OBS-URL: https://build.opensuse.org/request/show/862855 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gobject?expand=0&rev=123 --- python-gobject.changes | 8 ++++++++ python-gobject.spec | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-gobject.changes b/python-gobject.changes index dcc2809..1ab680e 100644 --- a/python-gobject.changes +++ b/python-gobject.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jan 13 08:28:34 UTC 2021 - Dominique Leuenberger + +- Simplify the dependency exclusion from __init__.py to also match + with multiple python3-flavors. +- Remove exec bit from all *.py files in examples, also + subdirectories. + ------------------------------------------------------------------- Mon Sep 14 10:49:28 UTC 2020 - dimstar@opensuse.org diff --git a/python-gobject.spec b/python-gobject.spec index 1ebebc7..8ce0e47 100644 --- a/python-gobject.spec +++ b/python-gobject.spec @@ -1,7 +1,7 @@ # # spec file for package python-gobject # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} # This figures in an error message %global __requires_exclude typelib\\(%%namespaces\\) -%global __requires_exclude_from ^%{python2_sitearch}/gi/__init__.py|%{python3_sitearch}/gi/__init__.py$ +%global __requires_exclude_from ^%{_libdir}/python.*/site-packages/gi/__init__.py$ %define _name pygobject Name: python-gobject Version: 3.38.0 @@ -107,7 +107,7 @@ addon libraries such as pygtk in both Python2 and Python3. %prep %setup -q -n %{_name}-%{version} # Remove the executable bits from example scripts: -chmod -R -x examples/*.py +find examples -name '*.py' -exec chmod -R -x {} + %build export CFLAGS="%{optflags}"