[packages/python-absl] - python 2 only package, python 3 support in python3-absl, rel 6

baggins baggins at pld-linux.org
Sat Apr 9 10:29:44 CEST 2022


commit 0645801c2c09d5d0cec3b72a7d762a2be26de960
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 9 10:29:11 2022 +0200

    - python 2 only package, python 3 support in python3-absl, rel 6

 python-absl.spec | 55 +++----------------------------------------------------
 1 file changed, 3 insertions(+), 52 deletions(-)
---
diff --git a/python-absl.spec b/python-absl.spec
index eb135d7..2048e56 100644
--- a/python-absl.spec
+++ b/python-absl.spec
@@ -1,28 +1,18 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
+# Python 3 version in python3-absl package
 Summary:	Abseil Python Common Libraries
 Summary(pl.UTF-8):	Wspólne biblioteki Abseil dla Pythona
 Name:		python-absl
 Version:	0.9.0
-Release:	5
+Release:	6
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/absl-py/
 Source0:	https://files.pythonhosted.org/packages/source/a/absl-py/absl-py-%{version}.tar.gz
-Patch0:		no-version.patch
 # Source0-md5:	4ba3484409252ec502b08f8ef8e48ab4
+Patch0:		no-version.patch
 URL:		https://github.com/abseil/abseil-py
-%if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.7
@@ -40,64 +30,25 @@ aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
 Google'a w Pythonie, obszernie przetestowany i jest używany
 produkcyjnie.
 
-%package -n python3-absl
-Summary:	Abseil Python Common Libraries
-Summary(pl.UTF-8):	Wspólne biblioteki Abseil dla Pythona
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-absl
-Abseil Python is a collection of Python library code for building
-Python applications. The code is collected from Google's own Python
-code base, and has been extensively tested and used in production.
-
-%description -n python3-absl -l pl.UTF-8
-Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
-aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
-Google'a w Pythonie, obszernie przetestowany i jest używany
-produkcyjnie.
-
 %prep
 %setup -q -n absl-py-%{version}
 %patch0 -p1
 
 %build
-%if %{with python2}
 %py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
 
 %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.md
 %{py_sitescriptdir}/absl
 %{py_sitescriptdir}/absl_py-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-absl
-%defattr(644,root,root,755)
-%doc README.md
-%{py3_sitescriptdir}/absl
-%{py3_sitescriptdir}/absl_py-%{version}-py*.egg-info
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-absl.git/commitdiff/0645801c2c09d5d0cec3b72a7d762a2be26de960



More information about the pld-cvs-commit mailing list