[packages/python-makefun] - disable python3 here, release 2

qboosh qboosh at pld-linux.org
Mon Jun 23 21:38:28 CEST 2025


commit d9a5521a55441056a8cc359084539a1787317afa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jun 23 21:39:47 2025 +0200

    - disable python3 here, release 2

 python-makefun.spec | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/python-makefun.spec b/python-makefun.spec
index 274223c..825734c 100644
--- a/python-makefun.spec
+++ b/python-makefun.spec
@@ -1,15 +1,17 @@
+# TODO: package mkdocs output (site/...)
 #
 # Conditional build:
-%bcond_without	doc	# Sphinx documentation
+%bcond_with	doc	# mkdocs documentation
 %bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-makefun.spec)
 
 Summary:	Small library to dynamically create Python functions
 Summary(pl.UTF-8):	Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie
 Name:		python-makefun
+# keep 1.15.x here for python2 support
 Version:	1.15.6
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/makefun/
@@ -35,6 +37,12 @@ BuildRequires:	python3-setuptools_scm
 BuildRequires:	python3-pytest
 %endif
 %endif
+%if %{with doc}
+BuildRequires:	python-mkdocs
+BuildRequires:	python-mkdocs-material
+BuildRequires:	python-pygments
+BuildRequires:	python-pymdown-extensions
+%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.7
@@ -83,6 +91,10 @@ PYTHONPATH=$(pwd)/src \
 %endif
 %endif
 
+%if %{with doc}
+mkdocs-2 build
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-makefun.git/commitdiff/d9a5521a55441056a8cc359084539a1787317afa



More information about the pld-cvs-commit mailing list