3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Unicodedata backport/updates to Python 2.x
7 Summary(pl.UTF-8): Uaktualnienia danych Unicode dla Pythona 2.x
8 Name: python-unicodedata2
12 Group: Libraries/Python
13 Source0: https://files.pythonhosted.org/packages/source/u/unicodedata2/unicodedata2-%{version}.tar.gz
14 # Source0-md5: 8d5e55787a4b89502ac0cb460564fd2b
15 URL: https://pypi.python.org/pypi/unicodedata2
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.714
19 BuildRequires: python-devel >= 2.0
20 BuildRequires: python-setuptools
23 BuildRequires: python3-devel >= 1:3.2
24 BuildRequires: python3-setuptools
26 Requires: python-libs >= 2.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Unicodedata backport/updates to Python 2.x.
32 Additionally this module backports named aliases and named sequences
35 %description -l pl.UTF-8
36 Uaktualnienia danych Unicode dla Pythona 2.x.
38 Dodatkowo ten moduł zawiera backport nazwanych aliasów i nazwanych
39 sekwencji do Pythona 2.
41 %package -n python3-unicodedata2
42 Summary: Unicodedata backport/updates to Python 3.x
43 Summary(pl.UTF-8): Uaktualnienia danych Unicode dla Pythona 3.x
44 Group: Libraries/Python
45 Requires: python3-libs >= 1:3.2
47 %description -n python3-unicodedata2
48 Unicodedata backport/updates to Python 3.x.
50 %description -n python3-unicodedata2 -l pl.UTF-8
51 Uaktualnienia danych Unicode dla Pythona 3.x.
54 %setup -q -n unicodedata2-%{version}
66 rm -rf $RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{py_sitedir}/unicodedata2.so
86 %{py_sitedir}/unicodedata2-%{version}-py*.egg-info
90 %files -n python3-unicodedata2
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{py3_sitedir}/unicodedata2.cpython-*.so
94 %{py3_sitedir}/unicodedata2-%{version}-py*.egg-info