[f41] chore: Update Python packages to the modern RPM Python build system (#4816) (#4826)

* chore: Update Python packages to the modern RPM Python build system (#4816)

* chore(shibuya): Update to modern Python macros, prep stuff for docs?

Signed-off-by: Gilver <rockgrub@disroot.org>

* chore(lomiri-ui-toolkit): Update to modern Python macros

Signed-off-by: Gilver <rockgrub@disroot.org>

* chore(spinxcontrib-moderncmakedomain): Follow guidelines for "canonical" name

Signed-off-by: Gilver <rockgrub@disroot.org>

* Oops

Signed-off-by: Gilver <rockgrub@disroot.org>

* fix(lomiri-ui-toolkit) More modern Python changes

* Aaaa

* chore(pillow-heif): Update to modern Python build systems

* chore(protobuf): Update to modern Python build systems

* refactor(sphinx-moderncmakedomain): Run tests with Nox instead

* fix(shibuya): Oops

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit b02f48f9c7)
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>

* Revert specs for packages Python is too old for

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>
This commit is contained in:
Gilver
2025-05-14 07:45:34 -05:00
committed by GitHub
parent e9db31ecb3
commit 4087f79df8
@@ -5,13 +5,14 @@
Name: python-%{real_name}
Version: 3.29.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Sphinx domain for modern CMake
License: BSD-3-Clause
URL: https://github.com/scikit-build/moderncmakedomain
Source0: %{pypi_source}
BuildRequires: python3-devel
BuildRequires: python3dist(hatchling)
BuildRequires: python3dist(nox)
BuildRequires: python3dist(pip)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(setuptools)
@@ -22,13 +23,14 @@ Packager: Gilver E. <rockgrub@disroot.org>
%description
Modern CMake domain entries, originally from Kitware.
%package -n python3-%{pypi_name}
%package -n python3-%{real_name}
Summary: %{summary}
Requires: python3dist(hatchling)
Requires: python3dist(sphinx)
%{?python_provide:%python_provide python3-%{pypi_name}}
Obsoletes: python3-%{pypi_name} < 3.29.0-2
%{?python_provide:%python_provide python3-%{real_name}}
%description -n python3-%{pypi_name}
%description -n python3-%{real_name}
Modern CMake domain entries, originally from Kitware.
%prep
@@ -41,9 +43,9 @@ Modern CMake domain entries, originally from Kitware.
%pyproject_install
%check
%pytest tests/*.py
nox -s tests
%files -n python3-%{pypi_name}
%files -n python3-%{real_name}
%doc PKG-INFO
%doc README.md
%license LICENSE