From 17ed36ed93df5071ed710433dff3fd210672e7bb Mon Sep 17 00:00:00 2001 From: Gilver Date: Sun, 11 May 2025 03:29:08 -0500 Subject: [PATCH] add: sphinxcontrib-moderncmakedomain (#4771) * add: sphinxcontrib-moderncmakedomain * ? Signed-off-by: Gilver * Big fan of stuff that builds locally but fails in CI Signed-off-by: Gilver * Update python-sphinxcontrib-moderncmakedomain.spec Signed-off-by: Gilver * Just remove the buildrequires generation I guess Signed-off-by: Gilver --------- Signed-off-by: Gilver --- .../sphinxcontrib-moderncmakedomain/anda.hcl | 6 ++ ...ython-sphinxcontrib-moderncmakedomain.spec | 55 +++++++++++++++++++ .../update.rhai | 1 + 3 files changed, 62 insertions(+) create mode 100644 anda/langs/python/sphinxcontrib-moderncmakedomain/anda.hcl create mode 100644 anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec create mode 100644 anda/langs/python/sphinxcontrib-moderncmakedomain/update.rhai diff --git a/anda/langs/python/sphinxcontrib-moderncmakedomain/anda.hcl b/anda/langs/python/sphinxcontrib-moderncmakedomain/anda.hcl new file mode 100644 index 0000000000..eb41c81af2 --- /dev/null +++ b/anda/langs/python/sphinxcontrib-moderncmakedomain/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "python-sphinxcontrib-moderncmakedomain.spec" + } +} diff --git a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec new file mode 100644 index 0000000000..ba94a02468 --- /dev/null +++ b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec @@ -0,0 +1,55 @@ +# NOT made with pyp2rpm because it had no freaking clue what to do with this project +# Looking at the sources the real name should be sphinxcontrib-moderncmakedomain but it builds as sphinxcontrib_moderncmakedomain???? +%global pypi_name sphinxcontrib_moderncmakedomain +%global real_name sphinxcontrib-moderncmakedomain + +Name: python-%{real_name} +Version: 3.29.0 +Release: 1%{?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(pip) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(sphinx) +BuildArch: noarch +Packager: Gilver E. + +%description +Modern CMake domain entries, originally from Kitware. + +%package -n python3-%{pypi_name} +Summary: %{summary} +Requires: python3dist(hatchling) +Requires: python3dist(sphinx) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Modern CMake domain entries, originally from Kitware. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%check +%pytest tests/*.py + +%files -n python3-%{pypi_name} +%doc PKG-INFO +%doc README.md +%license LICENSE +%{python3_sitelib}/sphinxcontrib/moderncmakedomain +%{python3_sitelib}/%{pypi_name}-%{version}.dist-info + +%changelog +* Sat May 10 2025 Gilver E. - 3.29.0-1 +- Initial package. diff --git a/anda/langs/python/sphinxcontrib-moderncmakedomain/update.rhai b/anda/langs/python/sphinxcontrib-moderncmakedomain/update.rhai new file mode 100644 index 0000000000..e22979ce3c --- /dev/null +++ b/anda/langs/python/sphinxcontrib-moderncmakedomain/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("sphinxcontrib-moderncmakedomain"));