From 578815660183e7969f4bba69be4a39b3a3b520a9af6f765378c1725b39c21002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 15 Mar 2020 07:41:49 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplekml?expand=0&rev=3 --- python-simplekml.changes | 5 +++++ python-simplekml.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-simplekml.changes b/python-simplekml.changes index 49f631a..b411b17 100644 --- a/python-simplekml.changes +++ b/python-simplekml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Mar 15 07:41:38 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Dec 27 10:39:15 UTC 2019 - Martin Hauke diff --git a/python-simplekml.spec b/python-simplekml.spec index de33747..5133e48 100644 --- a/python-simplekml.spec +++ b/python-simplekml.spec @@ -1,6 +1,7 @@ # # spec file for package python-simplekml # +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2016-2019, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -12,7 +13,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,9 +22,8 @@ Name: python-simplekml Version: 1.3.1 Release: 0 Summary: A Simple KML creator -License: LGPL-3.0-or-later -Group: Development/Languages/Python #HG-Clone: https://bitbucket.org/KyleLancaster/simplekml +License: LGPL-3.0-or-later URL: http://readthedocs.org/projects/simplekml/ Source: https://files.pythonhosted.org/packages/source/s/simplekml/simplekml-%{version}.tar.gz Source1: https://bitbucket.org/KyleLancaster/simplekml/raw/76ac20169865b793aa0ed574f12651e96562570d/LICENSE.txt @@ -43,7 +44,7 @@ is easy to run with and create usable KML. %setup -q -n simplekml-%{version} sed -i 's/\r$//' README.txt cp %{SOURCE1} . - + %build %python_build @@ -58,6 +59,6 @@ cp %{SOURCE1} . %license LICENSE.txt %doc README.txt %{python_sitelib}/simplekml -%{python_sitelib}/simplekml-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/simplekml-%{version}-py%{python_version}.egg-info %changelog