From cfba1082170b34f1da263ac37f679314067a9f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 7 Feb 2022 12:42:34 +0100 Subject: [PATCH] Move pure Python modules to a noarch subpackage This way, Koji will assert the noarch content is identical. --- pygobject3.spec | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/pygobject3.spec b/pygobject3.spec index 893797c..f799ba7 100644 --- a/pygobject3.spec +++ b/pygobject3.spec @@ -50,10 +50,20 @@ for use in Python 3 programs. %package -n python3-gobject-base Summary: Python 3 bindings for GObject Introspection base package Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} +Requires: python3-gobject-base-noarch = %{version}-%{release} %description -n python3-gobject-base This package provides the non-cairo specific bits of the GObject Introspection -library. +library that are architecture specific. + +%package -n python3-gobject-base-noarch +Summary: Python 3 bindings for GObject Introspection base (not architecture dependent) +BuildArch: noarch +Requires: python3-gobject-base = %{version}-%{release} + +%description -n python3-gobject-base-noarch +This package provides the non-cairo specific bits of the GObject Introspection +library that are not architecture specific. %package -n python3-gobject-devel Summary: Development files for embedding PyGObject introspection support @@ -80,12 +90,17 @@ This package contains files required to embed PyGObject %{python3_sitearch}/gi/_gi_cairo*.so %files -n python3-gobject-base +%dir %{python3_sitearch}/gi/ +%pycached %{python3_sitearch}/gi/*.py +%{python3_sitearch}/gi/_gi.*.so +%{python3_sitearch}/PyGObject-*.egg-info + +%files -n python3-gobject-base-noarch %license COPYING %doc NEWS -%exclude %{python3_sitearch}/gi/_gi_cairo*.so -%{python3_sitearch}/gi/ -%{python3_sitearch}/PyGObject-*.egg-info -%{python3_sitelib}/gi/ +%dir %{python3_sitelib}/gi/ +%{python3_sitelib}/gi/overrides/ +%{python3_sitelib}/gi/repository/ %{python3_sitelib}/pygtkcompat/ %files -n python3-gobject-devel @@ -95,7 +110,8 @@ This package contains files required to embed PyGObject %changelog * Mon Feb 07 2022 Miro HronĨok - 3.42.0-4 -- Ensure Python bytecode installed in multilib packages is bit-to-bit identical +- Move pure Python modules to a noarch subpackage +- Ensure Python bytecode installed in the noarch subpackage is bit-to-bit identical Related: rhbz#1915764 * Fri Jan 21 2022 Fedora Release Engineering - 3.42.0-3