[packages/python-stevedore] Drop python3 (python3-stevedore.spec)
arekm
arekm at pld-linux.org
Thu May 22 22:33:08 CEST 2025
commit 38d9d32ec31584740c7f21d8a4434bc08e04c532
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 22 22:32:55 2025 +0200
Drop python3 (python3-stevedore.spec)
python-stevedore.spec | 54 +--------------------------------------------------
1 file changed, 1 insertion(+), 53 deletions(-)
---
diff --git a/python-stevedore.spec b/python-stevedore.spec
index 31686f3..164f54c 100644
--- a/python-stevedore.spec
+++ b/python-stevedore.spec
@@ -2,8 +2,6 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_with tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
%define module stevedore
Summary: Manage dynamic plugins for Python applications
@@ -11,7 +9,7 @@ Summary(pl.UTF-8): Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona
Name: python-%{module}
# keep 1.x here for python2 support
Version: 1.32.0
-Release: 3
+Release: 4
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/stevedore/
@@ -20,7 +18,6 @@ Source0: https://files.pythonhosted.org/packages/source/s/stevedore/stevedore-%{
URL: https://pypi.org/project/stevedore/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
BuildRequires: python-pbr >= 2.0.0
@@ -31,18 +28,6 @@ BuildRequires: python-mock >= 2.0.0
BuildRequires: python-stestr >= 2.0.0
BuildRequires: sphinx-pdg-2 >= 1.7.0
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-setuptools
-BuildRequires: python3-pbr >= 2.0.0
-%if %{with tests}
-BuildRequires: python3-coverage >= 4.0
-BuildRequires: python3-six >= 1.10.0
-#BuildRequires: python3-mock >= 2.0.0
-BuildRequires: python3-stestr >= 2.0.0
-BuildRequires: sphinx-pdg-3 >= 1.7.0
-%endif
-%endif
%if %{with doc}
BuildRequires: python-openstackdocstheme >= 1.11.0
BuildRequires: python-reno >= 2.5.0
@@ -58,18 +43,6 @@ Manage dynamic plugins for Python applications.
%description -l pl.UTF-8
Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona.
-%package -n python3-stevedore
-Summary: Manage dynamic plugins for Python applications
-Summary(pl.UTF-8): Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.6
-
-%description -n python3-stevedore
-Manage dynamic plugins for Python applications
-
-%description -n python3-stevedore -l pl.UTF-8
-Zarządzanie dynamicznymi wtyczkami dla aplikacji Pythona.
-
%package apidocs
Summary: API documentation for Python stevedore module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona stevedore
@@ -85,13 +58,7 @@ Dokumentacja API modułu Pythona stevedore.
%setup -q -n stevedore-%{version}
%build
-%if %{with python2}
%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
%if %{with doc}
PYTHONPATH=$(pwd) \
@@ -102,40 +69,21 @@ PYTHONPATH=$(pwd) \
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stevedore/tests
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stevedore/example
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/stevedore/tests
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/stevedore/example
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README.rst announce.rst
%{py_sitescriptdir}/stevedore
%{py_sitescriptdir}/stevedore-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-stevedore
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst announce.rst
-%{py3_sitescriptdir}/stevedore
-%{py3_sitescriptdir}/stevedore-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-stevedore.git/commitdiff/38d9d32ec31584740c7f21d8a4434bc08e04c532
More information about the pld-cvs-commit
mailing list