[packages/python-absl] - new

qboosh qboosh at pld-linux.org
Sun Jun 28 14:30:57 CEST 2020


commit 9bf4e61e4672ac09de35f9f232d79dc43a9efe44
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 28 14:32:03 2020 +0200

    - new

 python-absl.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 101 insertions(+)
---
diff --git a/python-absl.spec b/python-absl.spec
new file mode 100644
index 0000000..75dc9fe
--- /dev/null
+++ b/python-absl.spec
@@ -0,0 +1,101 @@
+#
+# 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:	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:	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}
+
+%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/9bf4e61e4672ac09de35f9f232d79dc43a9efe44



More information about the pld-cvs-commit mailing list