[packages/python3-manuel] Up to 1.13.0
arekm
arekm at pld-linux.org
Wed Apr 30 16:06:43 CEST 2025
commit a7679bf6d9343bfc990a72eb983fc1f7ef647469
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Apr 30 15:29:33 2025 +0200
Up to 1.13.0
python-manuel.spec => python3-manuel.spec | 59 +++----------------------------
1 file changed, 5 insertions(+), 54 deletions(-)
---
diff --git a/python-manuel.spec b/python3-manuel.spec
similarity index 60%
rename from python-manuel.spec
rename to python3-manuel.spec
index 52b6fd6..d5bc71d 100644
--- a/python-manuel.spec
+++ b/python3-manuel.spec
@@ -2,37 +2,24 @@
# 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
+Name: python3-manuel
+Version: 1.13.0
+Release: 1
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
+# Source0-md5: 42caa321f5244b6ec38da5b9bc440d94
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
@@ -40,7 +27,7 @@ BuildRequires: sphinx-pdg-3
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.4
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -50,18 +37,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 +52,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 +61,16 @@ 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/python3-manuel.git/commitdiff/a7679bf6d9343bfc990a72eb983fc1f7ef647469
More information about the pld-cvs-commit
mailing list