Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-gobject for openSUSE:Factory 
checked in at 2021-01-19 16:01:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gobject (Old)
 and      /work/SRC/openSUSE:Factory/.python-gobject.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gobject"

Tue Jan 19 16:01:05 2021 rev:85 rq:864076 version:3.38.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gobject/python-gobject.changes    
2021-01-15 19:43:02.557722604 +0100
+++ /work/SRC/openSUSE:Factory/.python-gobject.new.28504/python-gobject.changes 
2021-01-19 16:01:24.303308382 +0100
@@ -1,0 +2,7 @@
+Wed Jan 13 12:59:29 UTC 2021 - Benjamin Greiner <c...@bnavigator.de>
+
+- Recompile python cache files after removal of components, include
+  cache files in correct subpackage
+- Fix supplements declarations, where possible. Disable for -gdk.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gobject.spec ++++++
--- /var/tmp/diff_new_pack.2YmDIs/_old  2021-01-19 16:01:25.047309506 +0100
+++ /var/tmp/diff_new_pack.2YmDIs/_new  2021-01-19 16:01:25.051309512 +0100
@@ -17,6 +17,12 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+# Define these before the call of python_subpackages
+%define introspection_real_package  %(rpm -q --qf '%%{NAME}' -f $(readlink 
%{_libdir}/libgirepository-1.0.so -f))
+%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo)
+# Don't BuildRequire pkgconfig(gdk-3.0) to find the real package for libgdk-3!
+# It produces a dependency cycle: avahi - gtk3-devel - python-dbus-python
+#%%define gdk_real_package %%(rpm -q --qf '%%{NAME}' -f $(readlink 
%%{_libdir}/libgdk-3.so -f))
 # This figures in an error message
 %global __requires_exclude typelib\\(%%namespaces\\)
 %global __requires_exclude_from 
^%{_libdir}/python.*/site-packages/gi/__init__.py$
@@ -41,9 +47,11 @@
 BuildRequires:  pkgconfig(cairo-gobject)
 BuildRequires:  pkgconfig(gio-2.0) >= 2.38.0
 BuildRequires:  pkgconfig(glib-2.0) >= 2.38.0
+# build cycle!
+# BuildRequires:  pkgconfig(gdk-3.0) >= 2.38.0
 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.46.0
-# Trigger an automatic installation of python(3)?-gobject when python and 
libgirepository are installed.
-Supplements:    packageand(python:%{gdk_real_package})
+# Trigger an automatic installation of python(2|3.*)-gobject when python and 
libgirepository are installed.
+Supplements:    packageand(python:%{introspection_real_package})
 %python_subpackages
 
 %description
@@ -51,12 +59,12 @@
 GLib's GObjects.
 
 %package Gdk
-%define gdk_real_package %(rpm -q --qf '%%{NAME}' -f $(readlink 
%{_libdir}/libgdk-3.so -f))
 Summary:        Python bindings for GObject/Gdk
 Group:          Development/Languages/Python
 Requires:       %{name} = %{version}
 Requires:       %{name}-cairo = %{version}
-Supplements:    packageand(python-gobject:%{gdk_real_package})
+# See above
+#Supplements:    packageand(python-gobject:%%{gdk_real_package})
 
 %description Gdk
 Pygobjects is an extension module for python that gives you access to
@@ -65,7 +73,6 @@
 This package contains the Python Gdk bindings for GObject.
 
 %package cairo
-%define cairo_real_package %(rpm -q --qf '%%{NAME}' --whatprovides cairo)
 Summary:        Python bindings for GObject/Cairo
 Group:          Development/Languages/Python
 Requires:       %{name} = %{version}
@@ -116,15 +123,22 @@
 %install
 %python_install
 
+
+%{python_expand # delete unwanted python scripts and their compiled cache files
 # Drop pygtkcompat layer - It's useless and we lack other stuff for it to work
-%python_expand rm %{buildroot}%{$python_sitearch}/gi/pygtkcompat.py*
-%python_expand rm -r %{buildroot}%{$python_sitearch}/pygtkcompat/
+rm -v %{buildroot}%{$python_sitearch}/gi/pygtkcompat.py*
+rm -vf %{buildroot}%{$python_sitearch}/gi/__pycache__/pygtkcompat*
+rm -vr %{buildroot}%{$python_sitearch}/pygtkcompat/
 
 # Drop GIMarshallingTests - It's test suite remainders that should not be 
installed
-find %{buildroot}%{_prefix} -name GIMarshallingTests.py* -delete -print
+find %{buildroot}%{$python_sitearch} -name GIMarshallingTests* -delete -print
+}
 
 find %{buildroot} "(" -name '*.la' -or -name '*.a' ")" -delete
-%fdupes %{buildroot}/%{_prefix}
+
+%{?python_compileall}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+
 
 %files %{python_files}
 %license COPYING
@@ -141,6 +155,12 @@
 %exclude %{python_sitearch}/gi/overrides/Gtk.*
 %exclude %{python_sitearch}/gi/overrides/keysyms.*
 %exclude %{python_sitearch}/gi/overrides/Pango.*
+%pycache_only %exclude %{python_sitearch}/gi/__pycache__/_gtktemplate*
+%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Gdk.*
+%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
+%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Gtk.*
+%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
+%pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Pango.*
 
 %files %{python_files Gdk}
 %{python_sitearch}/gi/_gtktemplate.py
@@ -149,6 +169,12 @@
 %{python_sitearch}/gi/overrides/Gtk.*
 %{python_sitearch}/gi/overrides/keysyms.*
 %{python_sitearch}/gi/overrides/Pango.*
+%pycache_only %{python_sitearch}/gi/__pycache__/_gtktemplate*
+%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gdk.*
+%pycache_only %{python_sitearch}/gi/overrides/__pycache__/GdkPixbuf.*
+%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Gtk.*
+%pycache_only %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
+%pycache_only %{python_sitearch}/gi/overrides/__pycache__/Pango.*
 
 %files %{python_files cairo}
 %{python_sitearch}/gi/_gi_cairo*.so

Reply via email to