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
This commit is contained in:
Dominique Leuenberger 2021-01-14 13:39:46 +00:00 committed by Git OBS Bridge
parent 8e0e035175
commit 56371b73c3
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jan 13 08:28:34 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- 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

View File

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