File python-decopatch.spec of Package python-decopatch
#
# spec file for package python-decopatch
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-decopatch
Version: 1.4.7
Release: 0
License: BSD-3-Clause
Summary: Create decorators easily in python
Url: https://github.com/smarie/python-decopatch
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/d/decopatch/decopatch-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: python2-funcsigs
BuildRequires: python2-enum34
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module six}
# SECTION test requirements
BuildRequires: %{python_module makefun >= 1.5.0}
BuildRequires: %{python_module pytest}
#%BuildRequires: %{python_module pytest-logging}
#%BuildRequires: %{python_module pytest-cases}
# /SECTION
BuildRequires: fdupes
Requires: python-makefun >= 1.5.0
%ifpython2
Requires: python-funcsigs
Requires: python-enum34
%endif
BuildArch: noarch
%python_subpackages
%description
Create decorators easily in Python.
%prep
%setup -q -n decopatch-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
#%%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog