[packages/python3-botocore] rename to python3-botocore
atler
atler at pld-linux.org
Mon Sep 13 13:43:47 CEST 2021
commit 4ec6e1ad68b5ef16887ffd8c585fa62fbab9da1b
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Sep 13 13:42:30 2021 +0200
rename to python3-botocore
python-botocore.spec => python3-botocore.spec | 70 ++-------------------------
1 file changed, 4 insertions(+), 66 deletions(-)
---
diff --git a/python-botocore.spec b/python3-botocore.spec
similarity index 60%
rename from python-botocore.spec
rename to python3-botocore.spec
index 32fdf57..84b6459 100644
--- a/python-botocore.spec
+++ b/python3-botocore.spec
@@ -2,12 +2,10 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_with tests # unit tests (die with MemoryError)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Low-level, data-driven core of boto 3
Summary(pl.UTF-8): Niskopoziomowy, oparty na danych rdzeń boto 3
-Name: python-botocore
+Name: python3-botocore
Version: 1.20.5
Release: 2
License: Apache v2.0
@@ -16,20 +14,8 @@ Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
# Source0-md5: 22e2131b194cceb09adda93cd7033496
URL: https://pypi.org/project/botocore/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-behave >= 1.2.5
-BuildRequires: python-dateutil >= 2.1
-BuildRequires: python-jmespath >= 0.7.1
-BuildRequires: python-jsonschema >= 2.5.1
-BuildRequires: python-mock >= 1.3.0
-BuildRequires: python-nose >= 1.3.7
-BuildRequires: python-urllib3 >= 1.25.4
-%endif
-%endif
-%if %{with python3}
+BuildRequires: python3-dateutil >= 2.1
+BuildRequires: python3-jmespath >= 0.7.1
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
%if %{with tests}
@@ -40,7 +26,6 @@ BuildRequires: python3-jsonschema >= 2.5.1
BuildRequires: python3-nose >= 1.3.7
BuildRequires: python3-urllib3 >= 1.25.4
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
@@ -48,7 +33,7 @@ BuildRequires: python3-guzzle_sphinx_theme
BuildRequires: python3-jmespath >= 0.7.1
BuildRequires: sphinx-pdg-3
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -64,24 +49,6 @@ Pakiet botocore jest podstawą dla AWS CLI
(<https://github.com/aws/aws-cli>), jak i boto3
(<https://github.com/boto/boto3>).
-%package -n python3-botocore
-Summary: Low-level, data-driven core of boto 3
-Summary(pl.UTF-8): Niskopoziomowy, oparty na danych rdzeń boto 3
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.6
-
-%description -n python3-botocore
-A low-level interface to a growing number of Amazon Web Services. The
-botocore package is the foundation for the AWS CLI
-(<https://github.com/aws/aws-cli>) as well as boto3
-(<https://github.com/boto/boto3>).
-
-%description -n python3-botocore -l pl.UTF-8
-Niskopoziomowy interfejs do rosnącej liczby usług Amazon Web Services.
-Pakiet botocore jest podstawą dla AWS CLI
-(<https://github.com/aws/aws-cli>), jak i boto3
-(<https://github.com/boto/boto3>).
-
%package apidocs
Summary: API documentation for Python botocore module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona botocore
@@ -97,23 +64,12 @@ Dokumentacja API modułu Pythona botocore.
%setup -q -n botocore-%{version}
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-nosetests-%{py_ver} tests
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
PYTHONPATH=$(pwd) \
nosetests-%{py3_ver} tests
%endif
-%endif
%if %{with doc}
PYTHONPATH=$(pwd) \
@@ -124,34 +80,16 @@ PYTHONPATH=$(pwd) \
%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 README.rst
-%{py_sitescriptdir}/botocore
-%{py_sitescriptdir}/botocore-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-botocore
-%defattr(644,root,root,755)
-%doc README.rst
%{py3_sitescriptdir}/botocore
%{py3_sitescriptdir}/botocore-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-botocore.git/commitdiff/a476435b2af3264bbe425925e94c64c60ef03f10
More information about the pld-cvs-commit
mailing list