14
0

- Fix building without python2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-serpent?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2020-03-14 07:12:28 +00:00
committed by Git OBS Bridge
parent a1972ae501
commit 0807a19cf5
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 14 07:12:14 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix building without python2
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 2 06:58:58 UTC 2019 - pgajdos@suse.com Tue Apr 2 06:58:58 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-serpent # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,26 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-serpent Name: python-serpent
Version: 1.28 Version: 1.28
Release: 0 Release: 0
Summary: Serialization based on astliteral_eval Summary: Serialization based on astliteral_eval
License: MIT License: MIT
Group: Development/Languages/Python
URL: https://github.com/irmen/Serpent URL: https://github.com/irmen/Serpent
Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-enum34
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with python2}
BuildRequires: python-enum34
%endif
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module attrs} BuildRequires: %{python_module attrs}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
# /SECTION # /SECTION
BuildArch: noarch
%ifpython2 %ifpython2
Requires: python-enum34 Requires: python-enum34
%endif %endif