[packages/python3-click] up to 8.1.3

atler atler at pld-linux.org
Thu Nov 3 17:51:04 CET 2022


commit 6f50e77d4c2463f48be426b5d464f5e35af97cf4
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 3 17:50:04 2022 +0100

    up to 8.1.3

 python3-click.spec | 72 +++++-------------------------------------------------
 1 file changed, 6 insertions(+), 66 deletions(-)
---
diff --git a/python3-click.spec b/python3-click.spec
index 16d0f80..47a2391 100644
--- a/python3-click.spec
+++ b/python3-click.spec
@@ -2,35 +2,25 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# py.test tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define 	module	click
 Summary:	A simple wrapper around optparse for powerful command line utilities
 Summary(pl.UTF-8):	Proste obudowanie optparse do tworzenia potężnych narzędzi linii poleceń
-Name:		python-%{module}
-# keep 7.x here for python2 support
-Version:	7.1.2
-Release:	6
+Name:		python3-%{module}
+Version:	8.1.3
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://github.com/pallets/click/releases
 Source0:	https://github.com/pallets/click/archive/%{version}/click-%{version}.tar.gz
-# Source0-md5:	11aa3cff9c99caadb2574fca12aabbdc
+# Source0-md5:	bc96df7439e7e64d6462a2f2901941ff
 URL:		https://click.palletsprojects.com/
 %if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
 BuildRequires:	glibc-localedb-all
 %endif
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-pytest
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-modules >= 1:3.7
 BuildRequires:	python3-pytest
 BuildRequires:	python3-setuptools
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
@@ -39,7 +29,7 @@ BuildRequires:	python3-pallets-sphinx-themes >= 1.2.3
 BuildRequires:	python3-sphinxcontrib-log-cabinet >= 1.0.1
 BuildRequires:	python3-sphinx_issues >= 1.2.0
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -56,25 +46,6 @@ Nazwa "click" pochodzi od "Command Line Interface Creation Kit"
 (zestaw do tworzenia interfejsu linii poleceń). Jest wysoce
 konfigurowalny, ale ma dobre ustawienia domyślne.
 
-%package -n python3-%{module}
-Summary:	A simple wrapper around optparse for powerful command line utilities
-Summary(pl.UTF-8):	Proste obudowanie optparse do tworzenia potężnych narzędzi linii poleceń
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-click is a Python 3 package for creating beautiful command line
-interfaces in a composable way with as little amount of code as
-necessary. It's the "Command Line Interface Creation Kit". It's highly
-configurable but comes with good defaults out of the box.
-
-%description -n python3-%{module} -l pl.UTF-8
-click to pakiet Pythona do tworzenia ładnych interfejsów linii poleceń
-w uporządkowany sposób, przy użyciu jak najmniejszej ilości kodu.
-Nazwa "click" pochodzi od "Command Line Interface Creation Kit"
-(zestaw do tworzenia interfejsu linii poleceń). Jest wysoce
-konfigurowalny, ale ma dobre ustawienia domyślne.
-
 %package apidocs
 Summary:	Documentation for Python click module
 Summary(pl.UTF-8):	Dokumentacja do modułu Pythona click
@@ -90,18 +61,6 @@ Dokumentacja do modułu Pythona click.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-LC_ALL=C.UTF-8 \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests --tb=long --verbose
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -109,7 +68,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest tests --tb=long --verbose
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
@@ -120,34 +78,16 @@ PYTHONPATH=$(pwd)/src \
 %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 LICENSE.rst README.rst
-%{py_sitescriptdir}/click
-%{py_sitescriptdir}/click-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst README.rst
 %{py3_sitescriptdir}/click
 %{py3_sitescriptdir}/click-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-click.git/commitdiff/6f50e77d4c2463f48be426b5d464f5e35af97cf4



More information about the pld-cvs-commit mailing list