[packages/python3-pycountry] - python-pycountry updated to 19.8.18 for python 3.3+

qboosh qboosh at pld-linux.org
Tue Jun 9 19:52:33 CEST 2020


commit 59dff30bd8b70f60304d1829ea851196ede30bd6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jun 9 19:53:22 2020 +0200

    - python-pycountry updated to 19.8.18 for python 3.3+

 python-pycountry.spec  | 129 -------------------------------------------------
 python3-pycountry.spec |  67 +++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 129 deletions(-)
---
diff --git a/python-pycountry.spec b/python-pycountry.spec
deleted file mode 100644
index a5c7c0f..0000000
--- a/python-pycountry.spec
+++ /dev/null
@@ -1,129 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	ISO country, subdivision, language, currency and script definitions and their translations
-Summary(pl.UTF-8):	Definicje ISO dla krajów, podziału, języków, walut i pisma wraz z tłumaczeniami
-Name:		python-pycountry
-# keep 18.x here for python2 support
-Version:	18.12.8
-Release:	1
-License:	LGPL v2.1
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pycountry/
-Source0:	https://files.pythonhosted.org/packages/source/p/pycountry/pycountry-%{version}.tar.gz
-# Source0-md5:	46223fa49c45c304083de7d5b1870fb7
-URL:		https://pypi.org/project/pycountry/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.6
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.3
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-pytest
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.6
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-ISO country, subdivision, language, currency and script definitions
-and their translations.
-
-%description -l pl.UTF-8
-Definicje ISO dla krajów, podziału, języków, walut i pisma wraz z
-tłumaczeniami.
-
-%package -n python3-pycountry
-Summary:	ISO country, subdivision, language, currency and script definitions and their translations
-Summary(pl.UTF-8):	Definicje ISO dla krajów, podziału, języków, walut i pisma wraz z tłumaczeniami
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
-
-%description -n python3-pycountry
-ISO country, subdivision, language, currency and script definitions
-and their translations.
-
-%description -n python3-pycountry -l pl.UTF-8
-Definicje ISO dla krajów, podziału, języków, walut i pisma wraz z
-tłumaczeniami.
-
-%prep
-%setup -q -n pycountry-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest src/pycountry/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest src/pycountry/tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/pycountry/tests
-%py_postclean
-
-find $RPM_BUILD_ROOT%{py_sitescriptdir}/pycountry/locales -type d -maxdepth 1 | \
-	%{__sed} -ne "s,$RPM_BUILD_ROOT\(.*locales/\([a-z]\+\(_[A-Z][A-Z]\)\?\).*\),%%lang(\2) \1,p" > py2.lang
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pycountry/tests
-
-find $RPM_BUILD_ROOT%{py3_sitescriptdir}/pycountry/locales -type d -maxdepth 1 | \
-	%{__sed} -ne "s,$RPM_BUILD_ROOT\(.*locales/\([a-z]\+\(_[A-Z][A-Z]\)\?\).*\),%%lang(\2) \1,p" > py3.lang
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files -f py2.lang
-%defattr(644,root,root,755)
-%doc HISTORY.txt README TODO.txt
-%dir %{py_sitescriptdir}/pycountry
-%{py_sitescriptdir}/pycountry/*.py[co]
-%{py_sitescriptdir}/pycountry/databases
-%dir %{py_sitescriptdir}/pycountry/locales
-%{py_sitescriptdir}/pycountry-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pycountry -f py3.lang
-%defattr(644,root,root,755)
-%doc HISTORY.txt README TODO.txt
-%dir %{py3_sitescriptdir}/pycountry
-%{py3_sitescriptdir}/pycountry/*.py
-%{py3_sitescriptdir}/pycountry/__pycache__
-%{py3_sitescriptdir}/pycountry/databases
-%dir %{py3_sitescriptdir}/pycountry/locales
-%{py3_sitescriptdir}/pycountry-%{version}-py*.egg-info
-%endif
diff --git a/python3-pycountry.spec b/python3-pycountry.spec
new file mode 100644
index 0000000..64f37b8
--- /dev/null
+++ b/python3-pycountry.spec
@@ -0,0 +1,67 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	ISO country, subdivision, language, currency and script definitions and their translations
+Summary(pl.UTF-8):	Definicje ISO dla krajów, podziału, języków, walut i pisma wraz z tłumaczeniami
+Name:		python3-pycountry
+Version:	19.8.18
+Release:	1
+License:	LGPL v2.1
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pycountry/
+Source0:	https://files.pythonhosted.org/packages/source/p/pycountry/pycountry-%{version}.tar.gz
+# Source0-md5:	533d51dbd38ed4bd928f7f6e8ad923d0
+URL:		https://pypi.org/project/pycountry/
+BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ISO country, subdivision, language, currency and script definitions
+and their translations.
+
+%description -l pl.UTF-8
+Definicje ISO dla krajów, podziału, języków, walut i pisma wraz z
+tłumaczeniami.
+
+%prep
+%setup -q -n pycountry-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest src/pycountry/tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pycountry/tests
+
+find $RPM_BUILD_ROOT%{py3_sitescriptdir}/pycountry/locales -type d -maxdepth 1 | \
+	%{__sed} -ne "s,$RPM_BUILD_ROOT\(.*locales/\([a-z]\+\(_[A-Z][A-Z]\)\?\).*\),%%lang(\2) \1,p" > py3.lang
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f py3.lang
+%defattr(644,root,root,755)
+%doc HISTORY.txt README.rst TODO.txt
+%dir %{py3_sitescriptdir}/pycountry
+%{py3_sitescriptdir}/pycountry/*.py
+%{py3_sitescriptdir}/pycountry/__pycache__
+%{py3_sitescriptdir}/pycountry/databases
+%dir %{py3_sitescriptdir}/pycountry/locales
+%{py3_sitescriptdir}/pycountry-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pycountry.git/commitdiff/59dff30bd8b70f60304d1829ea851196ede30bd6



More information about the pld-cvs-commit mailing list