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 # Source0-md5: 4ba3484409252ec502b08f8ef8e48ab4
16 URL: https://github.com/abseil/abseil-py
18 BuildRequires: python-modules >= 1:2.7
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.4
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.7
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Abseil Python is a collection of Python library code for building
33 Python applications. The code is collected from Google's own Python
34 code base, and has been extensively tested and used in production.
36 %description -l pl.UTF-8
37 Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
38 aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
39 Google'a w Pythonie, obszernie przetestowany i jest używany
42 %package -n python3-absl
43 Summary: Abseil Python Common Libraries
44 Summary(pl.UTF-8): Wspólne biblioteki Abseil dla Pythona
45 Group: Libraries/Python
46 Requires: python3-modules >= 1:3.4
48 %description -n python3-absl
49 Abseil Python is a collection of Python library code for building
50 Python applications. The code is collected from Google's own Python
51 code base, and has been extensively tested and used in production.
53 %description -n python3-absl -l pl.UTF-8
54 Abseil Python to biblioteka Pythona będąca zbiorem kodu do tworzenia
55 aplikacji pythonowych. Kod bibliotek został zebrany z własnego kodu
56 Google'a w Pythonie, obszernie przetestowany i jest używany
60 %setup -q -n absl-py-%{version}
72 rm -rf $RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
91 %{py_sitescriptdir}/absl
92 %{py_sitescriptdir}/absl_py-%{version}-py*.egg-info
96 %files -n python3-absl
97 %defattr(644,root,root,755)
99 %{py3_sitescriptdir}/absl
100 %{py3_sitescriptdir}/absl_py-%{version}-py*.egg-info