[packages/python3-sphinx-prompt] - python-sphinx-prompt.spec updated to 1.10.1 for python 3.11+
qboosh
qboosh at pld-linux.org
Sun Nov 2 12:28:04 CET 2025
commit bc760edcdb653b385605273152a984c641ec5f52
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 2 12:27:59 2025 +0100
- python-sphinx-prompt.spec updated to 1.10.1 for python 3.11+
python-sphinx-prompt.spec | 92 ----------------------------------------
python3-sphinx-prompt.spec | 53 +++++++++++++++++++++++
sphinx-prompt-dependencies.patch | 11 +++++
3 files changed, 64 insertions(+), 92 deletions(-)
---
diff --git a/python-sphinx-prompt.spec b/python-sphinx-prompt.spec
deleted file mode 100644
index e7abed2..0000000
--- a/python-sphinx-prompt.spec
+++ /dev/null
@@ -1,92 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Sphinx directive to add unselectable prompt
-Summary(pl.UTF-8): Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru
-Name: python-sphinx-prompt
-# keep 1.4.x here for python2 support
-Version: 1.4.0
-Release: 7
-License: BSD
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinx-prompt/
-Source0: https://files.pythonhosted.org/packages/source/s/sphinx-prompt/sphinx-prompt-%{version}.tar.gz
-# Source0-md5: 4b217991abf068ce9e22cf10393faf56
-URL: http://github.com/sbrunner/sphinx-prompt
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 2
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%endif
-Requires: python-modules >= 2
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Sphinx directive to add unselectable prompt.
-
-%description -l pl.UTF-8
-Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru.
-
-%package -n python3-sphinx-prompt
-Summary: Sphinx directive to add unselectable prompt
-Summary(pl.UTF-8): Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-sphinx-prompt
-Sphinx directive to add unselectable prompt.
-
-%description -n python3-sphinx-prompt -l pl.UTF-8
-Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru.
-
-%prep
-%setup -q -n sphinx-prompt-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/sphinx-prompt
-%{py_sitescriptdir}/sphinx_prompt-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinx-prompt
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/sphinx-prompt
-%{py3_sitescriptdir}/sphinx_prompt-%{version}-py*.egg-info
-%endif
diff --git a/python3-sphinx-prompt.spec b/python3-sphinx-prompt.spec
new file mode 100644
index 0000000..fb517d9
--- /dev/null
+++ b/python3-sphinx-prompt.spec
@@ -0,0 +1,53 @@
+Summary: Sphinx directive to add unselectable prompt
+Summary(pl.UTF-8): Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru
+Name: python3-sphinx-prompt
+Version: 1.10.1
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-prompt/
+Source0: https://files.pythonhosted.org/packages/source/s/sphinx-prompt/sphinx_prompt-%{version}.tar.gz
+# Source0-md5: af42939275322bc6074e6781ad5f2525
+Patch0: sphinx-prompt-dependencies.patch
+URL: http://github.com/sbrunner/sphinx-prompt
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.11
+BuildRequires: python3-poetry-core >= 1.0.0
+BuildRequires: python3-poetry-dynamic-versioning
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+BuildRequires: sed >= 4.0
+Requires: python3-modules >= 1:3.11
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sphinx directive to add unselectable prompt.
+
+%description -l pl.UTF-8
+Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru.
+
+%prep
+%setup -q -n sphinx_prompt-%{version}
+%patch -P0 -p1
+
+%{__sed} -i -e '1s,/usr/bin/python$,%{__python3},' sphinx-prompt/__init__.py sphinx_prompt/__init__.py
+
+%build
+%py3_build_pyproject
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/sphinx-prompt
+%{py3_sitescriptdir}/sphinx_prompt
+%{py3_sitescriptdir}/sphinx_prompt-%{version}.dist-info
diff --git a/sphinx-prompt-dependencies.patch b/sphinx-prompt-dependencies.patch
new file mode 100644
index 0000000..c691cbb
--- /dev/null
+++ b/sphinx-prompt-dependencies.patch
@@ -0,0 +1,11 @@
+--- sphinx_prompt-1.10.1/pyproject.toml.orig 1970-01-01 01:00:00.000000000 +0100
++++ sphinx_prompt-1.10.1/pyproject.toml 2025-11-02 11:26:08.749004213 +0100
+@@ -77,7 +77,7 @@ classifiers = [
+ ]
+ authors = [{name = "Stéphane Brunner",email = "stephane.brunner at gmail.com"}]
+ requires-python = ">=3.11"
+-dependencies = ["Sphinx", "pygments", "docutils", "idna", "urllib3", "certifi", "jinja2", "requests==2.32.4"]
++dependencies = ["Sphinx", "pygments", "docutils", "idna", "urllib3", "certifi", "jinja2", "requests>=2.32.4"]
+ version = "1.10.1"
+
+ [project.urls]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx-prompt.git/commitdiff/bc760edcdb653b385605273152a984c641ec5f52
More information about the pld-cvs-commit
mailing list