[packages/sphinx-pdg] - up to 8.3.0
baggins
baggins at pld-linux.org
Thu Mar 13 21:14:46 CET 2025
commit 602e2296f5a9dc0fb238f841af54c1389ddf750e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Mar 13 22:05:20 2025 +0100
- up to 8.3.0
float-ver.patch | 12 ------------
license-dict.patch | 14 ++++++++++++++
sphinx-pdg.spec | 16 ++++++++++------
3 files changed, 24 insertions(+), 18 deletions(-)
---
diff --git a/sphinx-pdg.spec b/sphinx-pdg.spec
index 5aee6e6..a734e72 100644
--- a/sphinx-pdg.spec
+++ b/sphinx-pdg.spec
@@ -11,14 +11,14 @@
Summary: Sphinx - Python documentation generator
Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
Name: sphinx-pdg
-Version: 8.1.3
-Release: 5
+Version: 8.3.0
+Release: 1
License: BSD
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/Sphinx/
Source0: https://pypi.debian.net/sphinx/sphinx-%{version}.tar.gz
-# Source0-md5: 845210d4c36be0dac08ec2ce2411a194
-Patch0: float-ver.patch
+# Source0-md5: 2efca101a19b518af6756c90b80817e9
+Patch0: license-dict.patch
URL: http://www.sphinx-doc.org/
%if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
BuildRequires: glibc-localedb-all
@@ -28,6 +28,8 @@ BuildRequires: python3-devel >= 1:3.6
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools >= 1:7.0
BuildRequires: python3-snowballstemmer >= 1.1
+BuildRequires: python3-flit_core >= 3.11
+BuildRequires: python3-roman-numerals-py >= 1.0.0
%if %{with tests}
BuildRequires: python3-Cython
BuildRequires: python3-alabaster >= 0.7
@@ -157,7 +159,8 @@ Dokumentacja do generatora dokumentacji pythonowej Sphinx.
#%{__rm} tests/test_build_latex.py
%build
-%{__python3} -m build --wheel --no-isolation --outdir build-3
+#%{__python3} -m build --wheel --no-isolation --outdir build-3
+%py3_build_pyproject
%if %{with tests}
LC_ALL=C.UTF-8 \
@@ -173,7 +176,8 @@ PYTHONPATH=$(pwd) \
%install
rm -rf $RPM_BUILD_ROOT
-%{__python3} -m installer --destdir=$RPM_BUILD_ROOT build-3/*.whl
+#%{__python3} -m installer --destdir=$RPM_BUILD_ROOT build-3/*.whl
+%py3_install_pyproject
for f in $RPM_BUILD_ROOT%{_bindir}/*; do
%{__mv} "${f}" "${f}-3"
diff --git a/float-ver.patch b/float-ver.patch
deleted file mode 100644
index d5cdc05..0000000
--- a/float-ver.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNp -x '*.orig' Sphinx-3.4.3.org/sphinx/application.py Sphinx-3.4.3/sphinx/application.py
---- Sphinx-3.4.3.org/sphinx/application.py 2021-01-07 17:15:11.000000000 +0100
-+++ Sphinx-3.4.3/sphinx/application.py 2021-02-26 22:55:57.255476762 +0100
-@@ -226,7 +226,7 @@ class Sphinx:
- self._init_i18n()
-
- # check the Sphinx version if requested
-- if self.config.needs_sphinx and self.config.needs_sphinx > sphinx.__display_version__:
-+ if self.config.needs_sphinx and str(self.config.needs_sphinx) > sphinx.__display_version__:
- raise VersionRequirementError(
- __('This project needs at least Sphinx v%s and therefore cannot '
- 'be built with this version.') % self.config.needs_sphinx)
diff --git a/license-dict.patch b/license-dict.patch
new file mode 100644
index 0000000..8ad2d9b
--- /dev/null
+++ b/license-dict.patch
@@ -0,0 +1,14 @@
+--- sphinx-8.3.0/pyproject.toml~ 2025-03-02 21:56:12.000000000 +0100
++++ sphinx-8.3.0/pyproject.toml 2025-03-13 21:38:37.286653322 +0100
+@@ -13,10 +13,7 @@
+ urls.Download = "https://pypi.org/project/Sphinx/"
+ urls.Homepage = "https://www.sphinx-doc.org/"
+ urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues"
+-license = "BSD-2-Clause"
+-license-files = [
+- "LICENSE.rst",
+-]
++license = {text = "BSD-2-Clause"}
+ requires-python = ">=3.11"
+
+ # Classifiers list: https://pypi.org/classifiers/
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sphinx-pdg.git/commitdiff/602e2296f5a9dc0fb238f841af54c1389ddf750e
More information about the pld-cvs-commit
mailing list