[packages/python-manuel] python3 version in python3-manuel.spec
arekm
arekm at pld-linux.org
Wed Apr 30 16:07:50 CEST 2025
commit bfc76cc827c9ab9fe40a1469c1fe757817d90b6c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Apr 30 15:30:46 2025 +0200
python3 version in python3-manuel.spec
python-manuel.spec | 48 +-----------------------------------------------
1 file changed, 1 insertion(+), 47 deletions(-)
---
diff --git a/python-manuel.spec b/python-manuel.spec
index 52b6fd6..2d92566 100644
--- a/python-manuel.spec
+++ b/python-manuel.spec
@@ -2,37 +2,25 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Building tested documentation
Summary(pl.UTF-8): Budowanie przetestowanej dokumentacji
Name: python-manuel
# keep 1.11.x here for python2 support
Version: 1.11.2
-Release: 3
+Release: 4
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/manuel/
Source0: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
# Source0-md5: 9bbbb65afd67a5e53d35a6bd0c2d2943
URL: https://pypi.org/project/manuel/
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-six
BuildRequires: python-zope.testing
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-six
-BuildRequires: python3-zope.testing
-%endif
-%endif
%if %{with doc}
BuildRequires: python3-myst_parser
BuildRequires: python3-sphinx_copybutton
@@ -50,18 +38,6 @@ Manuel lets you build tested documentation.
%description -l pl.UTF-8
Manuel pozwala budować przetestowaną dokumentację.
-%package -n python3-manuel
-Summary: Building tested documentation
-Summary(pl.UTF-8): Budowanie przetestowanej dokumentacji
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-manuel
-Manuel lets you build tested documentation.
-
-%description -n python3-manuel -l pl.UTF-8
-Manuel pozwala budować przetestowaną dokumentację.
-
%package apidocs
Summary: API documentation for Python manuel module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona manuel
@@ -77,13 +53,7 @@ Dokumentacja API modułu Pythona manuel.
%setup -q -n manuel-%{version}
%build
-%if %{with python2}
%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
%if %{with doc}
sphinx-build-3 -b html -c sphinx src/manuel sphinx/_build/html
@@ -92,34 +62,18 @@ sphinx-build-3 -b html -c sphinx src/manuel sphinx/_build/html
%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 CHANGES.rst COPYRIGHT.rst README.rst
%{py_sitescriptdir}/manuel
%{py_sitescriptdir}/manuel-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-manuel
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYRIGHT.rst README.rst
-%{py3_sitescriptdir}/manuel
-%{py3_sitescriptdir}/manuel-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-manuel.git/commitdiff/bfc76cc827c9ab9fe40a1469c1fe757817d90b6c
More information about the pld-cvs-commit
mailing list