3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Abseil Python Common Libraries
7 Summary(pl.UTF-8): Wspólne biblioteki Abseil dla Pythona
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/absl-py/
14 Source0: https://files.pythonhosted.org/packages/source/a/absl-py/absl-py-%{version}.tar.gz
15 Patch0: no-version.patch
16 # Source0-md5: 4ba3484409252ec502b08f8ef8e48ab4
17 URL: https://github.com/abseil/abseil-py
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.4
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.7
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Abseil Python is a collection of Python library code for building
34 Python applications. The code is collected from Google's own Python
35 code base, and has been extensively tested and used in production.
37 %description -l pl.UTF-8
38 Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
39 aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
40 Google'a w Pythonie, obszernie przetestowany i jest używany
43 %package -n python3-absl
44 Summary: Abseil Python Common Libraries
45 Summary(pl.UTF-8): Wspólne biblioteki Abseil dla Pythona
46 Group: Libraries/Python
47 Requires: python3-modules >= 1:3.4
49 %description -n python3-absl
50 Abseil Python is a collection of Python library code for building
51 Python applications. The code is collected from Google's own Python
52 code base, and has been extensively tested and used in production.
54 %description -n python3-absl -l pl.UTF-8
55 Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
56 aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
57 Google'a w Pythonie, obszernie przetestowany i jest używany
61 %setup -q -n absl-py-%{version}
74 rm -rf $RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
93 %{py_sitescriptdir}/absl
94 %{py_sitescriptdir}/absl_py-%{version}-py*.egg-info
98 %files -n python3-absl
99 %defattr(644,root,root,755)
101 %{py3_sitescriptdir}/absl
102 %{py3_sitescriptdir}/absl_py-%{version}-py*.egg-info