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}"