[packages/python3-absl] - up to 1.0.0

baggins baggins at pld-linux.org
Sat Apr 9 10:27:08 CEST 2022


commit d315e28411d8d72a8cca45612022de48e28f3ce5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 9 10:26:55 2022 +0200

    - up to 1.0.0

 no-version.patch  |  37 --------------------
 python-absl.spec  | 103 ------------------------------------------------------
 python3-absl.spec |  49 ++++++++++++++++++++++++++
 3 files changed, 49 insertions(+), 140 deletions(-)
---
diff --git a/python-absl.spec b/python-absl.spec
deleted file mode 100644
index eb135d7..0000000
--- a/python-absl.spec
+++ /dev/null
@@ -1,103 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Abseil Python Common Libraries
-Summary(pl.UTF-8):	Wspólne biblioteki Abseil dla Pythona
-Name:		python-absl
-Version:	0.9.0
-Release:	5
-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
-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
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-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 -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.
-
-%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
diff --git a/python3-absl.spec b/python3-absl.spec
new file mode 100644
index 0000000..8cc81f7
--- /dev/null
+++ b/python3-absl.spec
@@ -0,0 +1,49 @@
+Summary:	Abseil Python Common Libraries
+Summary(pl.UTF-8):	Wspólne biblioteki Abseil dla Pythona
+Name:		python3-absl
+Version:	1.0.0
+Release:	1
+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
+# Source0-md5:	89104cd7c82540a57c3ecb99ba4ab1e6
+URL:		https://github.com/abseil/abseil-py
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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 -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}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/absl
+%{py3_sitescriptdir}/absl_py-%{version}-py*.egg-info
diff --git a/no-version.patch b/no-version.patch
deleted file mode 100644
index f59f2d3..0000000
--- a/no-version.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- absl-py-0.9.0/setup.py~	2019-12-17 23:46:45.000000000 +0100
-+++ absl-py-0.9.0/setup.py	2022-04-09 10:21:04.611211528 +0200
-@@ -29,34 +29,10 @@
-   use_setuptools()
-   import setuptools
- 
--py_version = platform.python_version_tuple()
--if py_version < ('2', '7') or py_version[0] == '3' and py_version < ('3', '4'):
--  raise RuntimeError('Python version 2.7 or 3.4+ is required.')
--
- INSTALL_REQUIRES = [
-     'six',
- ]
- 
--setuptools_version = tuple(
--    int(x) for x in setuptools.__version__.split('.')[:2])
--
--# A variety of environments have very, very old versions of setuptools that
--# don't support the environment markers ("foo; python_version < X"). Since
--# we're using sdist, this setup.py gets run directly when installing, so
--# we can just manually do the dependency checking.
--# See these for more info:
--# https://github.com/abseil/abseil-py/issues/79
--# https://hynek.me/articles/conditional-python-dependencies/
--# Environment marker support was added in setuptools 36.2, see
--# https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v3620
--if setuptools_version < (36, 2):
--  if sys.version_info[0:2] < (3, 4):
--    INSTALL_REQUIRES.append('enum34')
--else:
--  # Environment markers are the preferred way: it allows correct non-source
--  # distributions (i.e., wheels) to be generated.
--  INSTALL_REQUIRES.append("enum34; python_version < '3.4'")
--
- _README_PATH = os.path.join(
-     os.path.dirname(os.path.realpath(__file__)), 'README.md')
- with open(_README_PATH, 'rb') as fp:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-absl.git/commitdiff/d315e28411d8d72a8cca45612022de48e28f3ce5



More information about the pld-cvs-commit mailing list