3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Symbolic constants in Python 2
7 Summary(pl.UTF-8): Stałe symboliczne w Pythonie 2
8 Name: python-constantly
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/constantly/
14 Source0: https://files.pythonhosted.org/packages/source/c/constantly/constantly-%{version}.tar.gz
15 # Source0-md5: f0762f083d83039758e53f8cf0086eef
16 URL: https://pypi.org/project/constantly/
18 BuildRequires: python-modules >= 1:2.7
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.3
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 A library that provides symbolic constant support. It includes
33 collections and constants with text, numeric, and bit flag values.
34 Originally twisted.python.constants from the Twisted project.
36 %description -l pl.UTF-8
37 Biblioteka zapewniająca obsługę stałych symbolicznych. Obejmuje
38 kolekcje i stałe o wartościch tekstowych, numerycznych i flagach
39 bitowych. Wywodzi się z modułu twisted.python.constant z projektu
42 %package -n python3-constantly
43 Summary: Symbolic constants in Python 3
44 Summary(pl.UTF-8): Stałe symboliczne w Pythonie 3
45 Group: Libraries/Python
46 Requires: python3-modules >= 1:3.3
48 %description -n python3-constantly
49 A library that provides symbolic constant support. It includes
50 collections and constants with text, numeric, and bit flag values.
51 Originally twisted.python.constants from the Twisted project.
53 %description -n python3-constantly -l pl.UTF-8
54 Biblioteka zapewniająca obsługę stałych symbolicznych. Obejmuje
55 kolekcje i stałe o wartościch tekstowych, numerycznych i flagach
56 bitowych. Wywodzi się z modułu twisted.python.constant z projektu
60 %setup -q -n constantly-%{version}
72 rm -rf $RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc CREDITS LICENSE README.rst
91 %{py_sitescriptdir}/constantly
92 %{py_sitescriptdir}/constantly-%{version}-py*.egg-info
96 %files -n python3-constantly
97 %defattr(644,root,root,755)
98 %doc CREDITS LICENSE README.rst
99 %{py3_sitescriptdir}/constantly
100 %{py3_sitescriptdir}/constantly-%{version}-py*.egg-info