%global common_description %{expand: python-multipart is an Apache2 licensed streaming multipart parser for Python.} Name: python-python-multipart Version: 0.0.9 Release: %autorelease Summary: A streaming multipart parser for Python License: Apache-2.0 URL: https://github.com/Kludex/python-multipart Source: %{pypi_source python_multipart} BuildArch: noarch %description %{common_description} %package -n python3-python-multipart Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pyyaml # This package uses the same import namespace: Conflicts: python3-multipart # Ensure proper upgrade path from the old package Obsoletes: python3-multipart < 0.1 %description -n python3-python-multipart %{common_description} %prep %autosetup -n python_multipart-%{version} -p 1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l multipart %check %pytest %files -n python3-python-multipart -f %{pyproject_files} %doc README.rst %changelog %autochangelog