2018-02-12 08:39:09 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-munch
|
|
|
|
#
|
2023-04-21 14:21:22 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-02-12 08:39:09 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:41:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-12 08:39:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 14:21:22 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-02-12 08:39:09 +00:00
|
|
|
Name: python-munch
|
2023-06-09 05:13:47 +00:00
|
|
|
Version: 3.0.0
|
2018-02-12 08:39:09 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A dot-accessible dictionary
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2023-06-09 05:13:47 +00:00
|
|
|
URL: https://github.com/Infinidat/munch
|
2018-02-12 08:39:09 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/munch/munch-%{version}.tar.gz
|
2023-06-09 05:13:47 +00:00
|
|
|
# https://github.com/Infinidat/munch/issues/96
|
|
|
|
Patch0: python-munch-no-six.patch
|
2019-12-20 19:21:56 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
2018-02-12 08:39:09 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-12-04 17:17:01 +00:00
|
|
|
BuildRequires: fdupes
|
2018-02-12 08:39:09 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 17:17:01 +00:00
|
|
|
BuildArch: noarch
|
2018-02-12 08:39:09 +00:00
|
|
|
# SECTION test requirements
|
2023-06-09 05:13:47 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-02-12 08:39:09 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A dot-accessible dictionary (a la JavaScript objects).
|
|
|
|
|
|
|
|
%prep
|
2023-06-09 05:13:47 +00:00
|
|
|
%autosetup -p1 -n munch-%{version}
|
2018-02-12 08:39:09 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2023-06-09 05:13:47 +00:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2018-02-12 08:39:09 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:17:01 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
2023-06-09 05:13:47 +00:00
|
|
|
%{python_sitelib}/munch
|
|
|
|
%{python_sitelib}/munch-*.egg-info
|
2018-02-12 08:39:09 +00:00
|
|
|
|
|
|
|
%changelog
|