]> git.pld-linux.org Git - packages/python3-unicodedata2.git/commitdiff
- python-unicodedata2.spec updated to 14.0.0 for python 3.6+ auto/th/python3-unicodedata2-14.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 24 Mar 2022 19:43:36 +0000 (20:43 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 24 Mar 2022 19:43:36 +0000 (20:43 +0100)
python-unicodedata2.spec [deleted file]
python3-unicodedata2.spec [new file with mode: 0644]

diff --git a/python-unicodedata2.spec b/python-unicodedata2.spec
deleted file mode 100644 (file)
index 0b56820..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-%bcond_without tests   # unit tests
-
-Summary:       Unicodedata backport/updates to Python 2.x
-Summary(pl.UTF-8):     Uaktualnienia danych Unicode dla Pythona 2.x
-Name:          python-unicodedata2
-Version:       13.0.0.post2
-Release:       1
-License:       Apache v2.0
-Group:         Libraries/Python
-#Source0Download: https://pypi.org/simple/unicodedata2/
-Source0:       https://files.pythonhosted.org/packages/source/u/unicodedata2/unicodedata2-%{version}.tar.gz
-# Source0-md5: 86e686b640c1893a81d57e1a0a2affb1
-URL:           https://pypi.org/project/unicodedata2/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.5
-BuildRequires: python3-setuptools
-%endif
-Requires:      python-libs >= 1:2.7
-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.5
-
-%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
-
-%if %{with tests}
-PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
-%{__python} tests/test_unicodedata2.py
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
-%{__python3} tests/test_unicodedata2.py
-%endif
-%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 CHANGELOG.md 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 CHANGELOG.md README.md
-%attr(755,root,root) %{py3_sitedir}/unicodedata2.cpython-*.so
-%{py3_sitedir}/unicodedata2-%{version}-py*.egg-info
-%endif
diff --git a/python3-unicodedata2.spec b/python3-unicodedata2.spec
new file mode 100644 (file)
index 0000000..16741b7
--- /dev/null
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+
+Summary:       Unicodedata backport/updates to Python 3.x
+Summary(pl.UTF-8):     Uaktualnienia danych Unicode dla Pythona 3.x
+Name:          python3-unicodedata2
+Version:       14.0.0
+Release:       1
+License:       Apache v2.0
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/unicodedata2/
+Source0:       https://files.pythonhosted.org/packages/source/u/unicodedata2/unicodedata2-%{version}.tar.gz
+# Source0-md5: 06d009c4cc288fffeef3ecfb583197c5
+URL:           https://pypi.org/project/unicodedata2/
+BuildRequires: python3-devel >= 1:3.6
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python3-libs >= 1:3.6
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Unicodedata backport/updates to Python 3.x.
+
+%description -l pl.UTF-8
+Uaktualnienia danych Unicode dla Pythona 3.x.
+
+%prep
+%setup -q -n unicodedata2-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} tests/test_unicodedata2.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%attr(755,root,root) %{py3_sitedir}/unicodedata2.cpython-*.so
+%{py3_sitedir}/unicodedata2-%{version}-py*.egg-info
This page took 0.153185 seconds and 4 git commands to generate.