Sync from SUSE:SLFO:Main python-sip revision 475560c647a1ddd73103996a90f241f6

This commit is contained in:
2025-02-07 11:08:24 +01:00
parent 288d6cc749
commit 4126ad28f5
2 changed files with 21 additions and 6 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Nov 5 07:40:38 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Only produce python-sip-doc when the default is SIP4: SIP6 does
not provide a -doc package. The previously generated meta package
only contained a README flle and no dependencies.
-------------------------------------------------------------------
Mon Nov 4 12:37:01 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Do not rely on %requires_eq macro: it expands too early and newly
errors out when the package specified does not exist. In case of
python single spec, the rewriting mechanism for the python ->
pythonXYZ flavor happens 'too late'.
-------------------------------------------------------------------
Thu Jan 25 20:08:40 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -34,7 +34,7 @@ Source0: README.SUSE
BuildRequires: %{python_module %{sipN}-devel}
BuildRequires: python-rpm-macros
BuildArch: noarch
%requires_eq python-%{sipN}
Requires: python-%{sipN} = %{Nversion}
%python_subpackages
%description
@@ -47,7 +47,7 @@ to generate wxPython, the Python bindings for wxWidgets.
%package devel
Summary: A Python bindings generator for C/C++ libraries
Group: Development/Libraries/Python
%requires_eq python-%{sipN}-devel
Requires: python-%{sipN}-devel = %{Nversion}
%description devel
SIP is a collection of tools that makes it very easy to create Python
@@ -65,7 +65,7 @@ specific version of SIP v<N>.
Summary: A Python bindings generator for C/C++ libraries -- common documentation
Group: Development/Libraries/Python
Provides: %{python_module sip-doc = %{version}-%{release}}
%requires_eq %{plainpython}-%{sipN}-doc
Requires: %{plainpython}-%{sipN}-doc = %{Nversion}
%description -n python-sip-doc
SIP is a tool that makes it very easy to create Python bindings for C
@@ -91,12 +91,12 @@ cp %{SOURCE0} .
# only sip4 still provides the old python-sip package
%files %{python_files}
%doc README.SUSE
%files -n python-sip-doc
%doc README.SUSE
%endif
%files %{python_files devel}
%doc README.SUSE
%files -n python-sip-doc
%doc README.SUSE
%changelog