Blame python-python-multipart.spec

96893a
#
96893a
# spec file for package python-python-multipart
96893a
#
db99ff
# Copyright (c) 2022 SUSE LLC
96893a
#
96893a
# All modifications and additions to the file contributed by third parties
96893a
# remain the property of their copyright owners, unless otherwise agreed
96893a
# upon. The license for this file, and modifications and additions to the
96893a
# file, is the same license as for the pristine package itself (unless the
96893a
# license for the pristine package is not an Open Source License, in which
96893a
# case the license is the MIT License). An "Open Source License" is a
96893a
# license that conforms to the Open Source Definition (Version 1.9)
96893a
# published by the Open Source Initiative.
96893a
db99ff
# Please submit bugfixes or comments via https://bugs.opensuse.org/
db99ff
#
96893a
96893a
db99ff
%{?!python_module:%define python_module() python3-%{**}}
96893a
Name:           python-python-multipart
96893a
Version:        0.0.5
96893a
Release:        0
96893a
License:        Apache-2.0
96893a
Summary:        Python streaming multipart parser
db99ff
URL:            http://github.com/andrew-d/python-multipart
96893a
Source:         https://files.pythonhosted.org/packages/source/p/python-multipart/python-multipart-%{version}.tar.gz
db99ff
Patch0:         support-pyyaml-6.patch
96893a
BuildRequires:  %{python_module setuptools}
db99ff
BuildRequires:  python-rpm-macros
96893a
# SECTION test requirements
96893a
BuildRequires:  %{python_module six >= 1.4.0}
db99ff
BuildRequires:  %{python_module PyYAML}
96893a
BuildRequires:  %{python_module mock}
96893a
BuildRequires:  %{python_module pytest}
96893a
# /SECTION
96893a
BuildRequires:  fdupes
96893a
Requires:       python-six >= 1.4.0
96893a
BuildArch:      noarch
96893a
96893a
%python_subpackages
96893a
96893a
%description
96893a
A streaming multipart parser for Python.
96893a
96893a
%prep
db99ff
%autosetup -p1 -n python-multipart-%{version}
96893a
96893a
%build
96893a
%python_build
96893a
96893a
%install
96893a
%python_install
96893a
%python_expand %fdupes %{buildroot}%{$python_sitelib}
96893a
96893a
%check
96893a
%pytest
96893a
96893a
%files %{python_files}
96893a
%doc README.rst
96893a
%license LICENSE.txt
96893a
%{python_sitelib}/*
96893a
96893a
%changelog