SHA256
1
0
forked from pool/python-sip

3 Commits

Author SHA256 Message Date
228e03cfc5 Accepting request 1221347 from KDE:Qt:PyQt
OBS-URL: https://build.opensuse.org/request/show/1221347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sip?expand=0&rev=117
2024-11-05 14:59:28 +00:00
06569ba10e - 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.

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-sip?expand=0&rev=11
2024-11-05 08:37:01 +00:00
44dfb70d5e - 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'.

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-sip?expand=0&rev=10
2024-11-04 16:49:30 +00:00
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