forked from pool/python-serpent
- 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:
committed by
Git OBS Bridge
parent
a1972ae501
commit
0807a19cf5
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user