[packages/python3-packaging] - python-packaging.spec updated to 21.3 for python 3.6+
qboosh
qboosh at pld-linux.org
Sat Mar 5 20:43:54 CET 2022
commit 94977cc084b9b9a14148bb870a9e2a1b4cac12c1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 5 20:45:55 2022 +0100
- python-packaging.spec updated to 21.3 for python 3.6+
python-packaging.spec => python3-packaging.spec | 70 ++-----------------------
1 file changed, 5 insertions(+), 65 deletions(-)
---
diff --git a/python-packaging.spec b/python3-packaging.spec
similarity index 57%
rename from python-packaging.spec
rename to python3-packaging.spec
index c47daa1..6f15131 100644
--- a/python-packaging.spec
+++ b/python3-packaging.spec
@@ -2,41 +2,25 @@
# Conditional build:
%bcond_without doc # don't build doc
%bcond_without tests # py.test tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
%bcond_without setuptools # build without setuptools (for bootstraping)
Summary: Core utilities for Python packages
Summary(pl.UTF-8): Bazowe funkcje narzędziowe do pakietów Pythona
Name: python-packaging
-# keep 20.x here for python2 support
-Version: 20.9
+Version: 21.3
Release: 1
License: Apache v2.0 or BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/packaging/
Source0: https://files.pythonhosted.org/packages/source/p/packaging/packaging-%{version}.tar.gz
-# Source0-md5: 5377308b3ba89f2d78c05e7f485be65d
+# Source0-md5: e713c1939f294fd729af4a7be40dd141
URL: https://github.com/pypa/packaging
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-%{?with_setuptools:BuildRequires: python-setuptools}
-%if %{with tests}
-BuildRequires: python-pretend
-BuildRequires: python-pyparsing >= 2.0.2
-BuildRequires: python-pytest
-BuildRequires: python-six
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-modules >= 1:3.6
%{?with_setuptools:BuildRequires: python3-setuptools}
%if %{with tests}
BuildRequires: python3-pretend
BuildRequires: python3-pyparsing >= 2.0.2
BuildRequires: python3-pytest
-BuildRequires: python3-six
-%endif
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -45,11 +29,10 @@ BuildRequires: python3-furo
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: sphinx-pdg-3
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.6
%if %{without setuptools}
# with setuptools these are autogenerated
-Requires: python-pyparsing >= 2.0.2
-Requires: python-six
+Requires: python3-pyparsing >= 2.0.2
%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -60,23 +43,6 @@ Core utilities for Python packages.
%description -l pl.UTF-8
Bazowe funkcje narzędziowe do pakietów Pythona.
-%package -n python3-packaging
-Summary: Core utilities for Python packages
-Summary(pl.UTF-8): Bazowe funkcje narzędziowe do pakietów Pythona
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-%if %{without setuptools}
-# with setuptools these are autogenerated
-Requires: python3-pyparsing >= 2.0.2
-Requires: python3-six
-%endif
-
-%description -n python3-packaging
-Core utilities for Python packages.
-
-%description -n python3-packaging -l pl.UTF-8
-Bazowe funkcje narzędziowe do pakietów Pythona.
-
%package apidocs
Summary: API documentation for Python packaging library
Summary(pl.UTF-8): Dokumentacja API biblioteki Pythona packaging
@@ -92,17 +58,9 @@ Dokumentacja API biblioteki Pythona packaging.
%setup -q -n packaging-%{version}
%build
-%if %{with python2}
-%py_build
-
-%{?with_tests:%{__python} -m pytest}
-%endif
-
-%if %{with python3}
%py3_build
%{?with_tests:%{__python3} -m pytest}
-%endif
%if %{with doc}
%{__make} -C docs html \
@@ -112,34 +70,16 @@ Dokumentacja API biblioteki Pythona packaging.
%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 CHANGELOG.rst LICENSE LICENSE.BSD README.rst
-%{py_sitescriptdir}/packaging
-%{py_sitescriptdir}/packaging-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-packaging
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE LICENSE.BSD README.rst
%{py3_sitescriptdir}/packaging
%{py3_sitescriptdir}/packaging-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-packaging.git/commitdiff/94977cc084b9b9a14148bb870a9e2a1b4cac12c1
More information about the pld-cvs-commit
mailing list