From: Jakub Bogusz Date: Sat, 10 Mar 2018 14:29:44 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/python-unicodedata2-10.0.0.post2-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fpython-unicodedata2.git;a=commitdiff_plain;h=563f246f0fe5ab0d5e5512a9edfd540f69f2a198 - new --- 563f246f0fe5ab0d5e5512a9edfd540f69f2a198 diff --git a/python-unicodedata2.spec b/python-unicodedata2.spec new file mode 100644 index 0000000..c9be353 --- /dev/null +++ b/python-unicodedata2.spec @@ -0,0 +1,95 @@ +# +# Conditional build: +%bcond_without python2 # CPython 2.x module +%bcond_without python3 # CPython 3.x module + +Summary: Unicodedata backport/updates to Python 2.x +Summary(pl.UTF-8): Uaktualnienia danych Unicode dla Pythona 2.x +Name: python-unicodedata2 +Version: 10.0.0.post2 +Release: 1 +License: Apache v2.0 +Group: Libraries/Python +Source0: https://files.pythonhosted.org/packages/source/u/unicodedata2/unicodedata2-%{version}.tar.gz +# Source0-md5: 8d5e55787a4b89502ac0cb460564fd2b +URL: https://pypi.python.org/pypi/unicodedata2 +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +%if %{with python2} +BuildRequires: python-devel >= 2.0 +BuildRequires: python-setuptools +%endif +%if %{with python3} +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: python3-setuptools +%endif +Requires: python-libs >= 2.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Unicodedata backport/updates to Python 2.x. + +Additionally this module backports named aliases and named sequences +support to Python 2. + +%description -l pl.UTF-8 +Uaktualnienia danych Unicode dla Pythona 2.x. + +Dodatkowo ten moduł zawiera backport nazwanych aliasów i nazwanych +sekwencji do Pythona 2. + +%package -n python3-unicodedata2 +Summary: Unicodedata backport/updates to Python 3.x +Summary(pl.UTF-8): Uaktualnienia danych Unicode dla Pythona 3.x +Group: Libraries/Python +Requires: python3-libs >= 1:3.2 + +%description -n python3-unicodedata2 +Unicodedata backport/updates to Python 3.x. + +%description -n python3-unicodedata2 -l pl.UTF-8 +Uaktualnienia danych Unicode dla Pythona 3.x. + +%prep +%setup -q -n unicodedata2-%{version} + +%build +%if %{with python2} +%py_build +%endif + +%if %{with python3} +%py3_build +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%if %{with python2} +%py_install + +%py_postclean +%endif + +%if %{with python3} +%py3_install +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%if %{with python2} +%files +%defattr(644,root,root,755) +%doc README.md +%attr(755,root,root) %{py_sitedir}/unicodedata2.so +%{py_sitedir}/unicodedata2-%{version}-py*.egg-info +%endif + +%if %{with python3} +%files -n python3-unicodedata2 +%defattr(644,root,root,755) +%doc README.md +%attr(755,root,root) %{py3_sitedir}/unicodedata2.cpython-*.so +%{py3_sitedir}/unicodedata2-%{version}-py*.egg-info +%endif