From 0807a19cf503fce363865f3693fee4f5e6661ff5cbb6f960d176a2d9c706c728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Mar 2020 07:12:28 +0000 Subject: [PATCH 1/2] - Fix building without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-serpent?expand=0&rev=11 --- python-serpent.changes | 5 +++++ python-serpent.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-serpent.changes b/python-serpent.changes index 3d45f51..1340b96 100644 --- a/python-serpent.changes +++ b/python-serpent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 14 07:12:14 UTC 2020 - Tomáš Chvátal + +- Fix building without python2 + ------------------------------------------------------------------- Tue Apr 2 06:58:58 UTC 2019 - pgajdos@suse.com diff --git a/python-serpent.spec b/python-serpent.spec index da41dd0..dc191f7 100644 --- a/python-serpent.spec +++ b/python-serpent.spec @@ -1,7 +1,7 @@ # # spec file for package python-serpent # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,26 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-serpent Version: 1.28 Release: 0 Summary: Serialization based on astliteral_eval License: MIT -Group: Development/Languages/Python URL: https://github.com/irmen/Serpent Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-enum34 BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with python2} +BuildRequires: python-enum34 +%endif # SECTION test requirements BuildRequires: %{python_module attrs} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} # /SECTION -BuildArch: noarch %ifpython2 Requires: python-enum34 %endif From 249a8e129058b7b0a956c25b6795e43d284aa2a77f4fb47ea57189deac977002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 18 Mar 2020 17:42:48 +0000 Subject: [PATCH 2/2] Accepting request 786190 from home:pgajdos:python - version update to 1.30.2 * upstream does not support python 2 anymore * no changelog found OBS-URL: https://build.opensuse.org/request/show/786190 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-serpent?expand=0&rev=12 --- python-serpent.changes | 7 +++++++ python-serpent.spec | 10 ++-------- serpent-1.28.tar.gz | 3 --- serpent-1.30.2.tar.gz | 3 +++ 4 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 serpent-1.28.tar.gz create mode 100644 serpent-1.30.2.tar.gz diff --git a/python-serpent.changes b/python-serpent.changes index 1340b96..204fc08 100644 --- a/python-serpent.changes +++ b/python-serpent.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 18 13:31:41 UTC 2020 - pgajdos@suse.com + +- version update to 1.30.2 + * upstream does not support python 2 anymore + * no changelog found + ------------------------------------------------------------------- Sat Mar 14 07:12:14 UTC 2020 - Tomáš Chvátal diff --git a/python-serpent.spec b/python-serpent.spec index dc191f7..3eeba8b 100644 --- a/python-serpent.spec +++ b/python-serpent.spec @@ -17,9 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 +%define skip_python2 1 Name: python-serpent -Version: 1.28 +Version: 1.30.2 Release: 0 Summary: Serialization based on astliteral_eval License: MIT @@ -29,17 +29,11 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch -%if %{with python2} -BuildRequires: python-enum34 -%endif # SECTION test requirements BuildRequires: %{python_module attrs} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} # /SECTION -%ifpython2 -Requires: python-enum34 -%endif %python_subpackages %description diff --git a/serpent-1.28.tar.gz b/serpent-1.28.tar.gz deleted file mode 100644 index 5dcd894..0000000 --- a/serpent-1.28.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f306336ca09aa38e526f3b03cab58eb7e45af09981267233167bcf3bfd6436ab -size 26912 diff --git a/serpent-1.30.2.tar.gz b/serpent-1.30.2.tar.gz new file mode 100644 index 0000000..e45c10e --- /dev/null +++ b/serpent-1.30.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a +size 24182