]> git.pld-linux.org Git - packages/python-unicodedata2.git/blame - python-unicodedata2.spec
- updated to 13.0.0.post2, added tests
[packages/python-unicodedata2.git] / python-unicodedata2.spec
CommitLineData
563f246f
JB
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
4463821f 5%bcond_without tests # unit tests
563f246f
JB
6
7Summary: Unicodedata backport/updates to Python 2.x
8Summary(pl.UTF-8): Uaktualnienia danych Unicode dla Pythona 2.x
9Name: python-unicodedata2
4463821f
JB
10Version: 13.0.0.post2
11Release: 1
563f246f
JB
12License: Apache v2.0
13Group: Libraries/Python
9b55e7da 14#Source0Download: https://pypi.org/simple/unicodedata2/
563f246f 15Source0: https://files.pythonhosted.org/packages/source/u/unicodedata2/unicodedata2-%{version}.tar.gz
4463821f 16# Source0-md5: 86e686b640c1893a81d57e1a0a2affb1
3dd049f1 17URL: https://pypi.org/project/unicodedata2/
563f246f
JB
18BuildRequires: rpm-pythonprov
19BuildRequires: rpmbuild(macros) >= 1.714
20%if %{with python2}
4463821f 21BuildRequires: python-devel >= 1:2.7
563f246f
JB
22BuildRequires: python-setuptools
23%endif
24%if %{with python3}
4463821f 25BuildRequires: python3-devel >= 1:3.5
563f246f
JB
26BuildRequires: python3-setuptools
27%endif
4463821f 28Requires: python-libs >= 1:2.7
563f246f
JB
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Unicodedata backport/updates to Python 2.x.
33
34Additionally this module backports named aliases and named sequences
35support to Python 2.
36
37%description -l pl.UTF-8
38Uaktualnienia danych Unicode dla Pythona 2.x.
39
40Dodatkowo ten moduł zawiera backport nazwanych aliasów i nazwanych
41sekwencji do Pythona 2.
42
43%package -n python3-unicodedata2
44Summary: Unicodedata backport/updates to Python 3.x
45Summary(pl.UTF-8): Uaktualnienia danych Unicode dla Pythona 3.x
46Group: Libraries/Python
4463821f 47Requires: python3-libs >= 1:3.5
563f246f
JB
48
49%description -n python3-unicodedata2
50Unicodedata backport/updates to Python 3.x.
51
52%description -n python3-unicodedata2 -l pl.UTF-8
53Uaktualnienia danych Unicode dla Pythona 3.x.
54
55%prep
56%setup -q -n unicodedata2-%{version}
57
58%build
59%if %{with python2}
60%py_build
4463821f
JB
61
62%if %{with tests}
63PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
64%{__python} tests/test_unicodedata2.py
65%endif
563f246f
JB
66%endif
67
68%if %{with python3}
69%py3_build
4463821f
JB
70
71%if %{with tests}
72PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
73%{__python3} tests/test_unicodedata2.py
74%endif
563f246f
JB
75%endif
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
80%if %{with python2}
81%py_install
82
83%py_postclean
84%endif
85
86%if %{with python3}
87%py3_install
88%endif
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%if %{with python2}
94%files
95%defattr(644,root,root,755)
4463821f 96%doc CHANGELOG.md README.md
563f246f
JB
97%attr(755,root,root) %{py_sitedir}/unicodedata2.so
98%{py_sitedir}/unicodedata2-%{version}-py*.egg-info
99%endif
100
101%if %{with python3}
102%files -n python3-unicodedata2
103%defattr(644,root,root,755)
4463821f 104%doc CHANGELOG.md README.md
563f246f
JB
105%attr(755,root,root) %{py3_sitedir}/unicodedata2.cpython-*.so
106%{py3_sitedir}/unicodedata2-%{version}-py*.egg-info
107%endif
This page took 0.086571 seconds and 4 git commands to generate.