forked from pool/python-rjsmin
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rjsmin?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
eef7c7f029
commit
1b21767d99
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 20 09:44:09 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 9 09:45:29 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Mar 9 09:45:29 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define mod_name rjsmin
|
%define mod_name rjsmin
|
||||||
%define release_sha 53a0848b2372c1b49c03326bc8209ea39e889c47
|
%define release_sha 53a0848b2372c1b49c03326bc8209ea39e889c47
|
||||||
|
%bcond_without python2
|
||||||
Name: python-%{mod_name}
|
Name: python-%{mod_name}
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -32,9 +33,11 @@ BuildRequires: %{python_module devel}
|
|||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-mock
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Obsoletes: %{name}-doc
|
Obsoletes: %{name}-doc
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-mock
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Reference in New Issue
Block a user