|
|
aa65fb |
#
|
|
|
aa65fb |
# spec file for package python-patchy
|
|
|
aa65fb |
#
|
|
|
91a726 |
# Copyright (c) 2021 SUSE LLC
|
|
|
aa65fb |
#
|
|
|
aa65fb |
# All modifications and additions to the file contributed by third parties
|
|
|
aa65fb |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
aa65fb |
# upon. The license for this file, and modifications and additions to the
|
|
|
aa65fb |
# file, is the same license as for the pristine package itself (unless the
|
|
|
aa65fb |
# license for the pristine package is not an Open Source License, in which
|
|
|
aa65fb |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
aa65fb |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
aa65fb |
# published by the Open Source Initiative.
|
|
|
aa65fb |
|
|
|
91a726 |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
91a726 |
#
|
|
|
aa65fb |
|
|
|
aa65fb |
|
|
|
aa65fb |
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
91a726 |
%global skip_python2 1
|
|
|
aa65fb |
Name: python-patchy
|
|
|
91a726 |
Version: 2.4.0
|
|
|
aa65fb |
Release: 0
|
|
|
aa65fb |
License: BSD-3-Clause
|
|
|
aa65fb |
Summary: Patch the inner source of python functions at runtime
|
|
|
91a726 |
URL: https://github.com/adamchainz/patchy
|
|
|
aa65fb |
Group: Development/Languages/Python
|
|
|
91a726 |
Source: https://github.com/adamchainz/patchy/archive/refs/tags/%{version}.tar.gz#/patchy-%{version}.tar.gz
|
|
|
91a726 |
BuildRequires: %{python_module pkgutil-resolve-name}
|
|
|
aa65fb |
BuildRequires: %{python_module pytest}
|
|
|
aa65fb |
BuildRequires: %{python_module setuptools}
|
|
|
aa65fb |
BuildRequires: fdupes
|
|
|
91a726 |
BuildRequires: python-rpm-macros
|
|
|
aa65fb |
Requires: python-pkgutil-resolve-name
|
|
|
aa65fb |
BuildArch: noarch
|
|
|
aa65fb |
|
|
|
aa65fb |
%python_subpackages
|
|
|
aa65fb |
|
|
|
aa65fb |
%description
|
|
|
aa65fb |
Patch the inner source of python functions at runtime.
|
|
|
aa65fb |
|
|
|
aa65fb |
%prep
|
|
|
aa65fb |
%setup -q -n patchy-%{version}
|
|
|
aa65fb |
|
|
|
aa65fb |
%build
|
|
|
aa65fb |
%python_build
|
|
|
aa65fb |
|
|
|
aa65fb |
%install
|
|
|
aa65fb |
%python_install
|
|
|
aa65fb |
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
aa65fb |
|
|
|
aa65fb |
%check
|
|
|
aa65fb |
%pytest
|
|
|
aa65fb |
|
|
|
aa65fb |
%files %{python_files}
|
|
|
91a726 |
%doc README.rst
|
|
|
aa65fb |
%license LICENSE
|
|
|
aa65fb |
%{python_sitelib}/*
|
|
|
aa65fb |
|
|
|
aa65fb |
%changelog
|