summaryrefslogtreecommitdiff
path: root/multipart.spec
diff options
context:
space:
mode:
Diffstat (limited to 'multipart.spec')
-rw-r--r--multipart.spec79
1 files changed, 79 insertions, 0 deletions
diff --git a/multipart.spec b/multipart.spec
new file mode 100644
index 0000000..94a3d65
--- /dev/null
+++ b/multipart.spec
@@ -0,0 +1,79 @@
+# topdir: multipart-1.2.0 (produced by tar --transform on git clone)
+# Build system: flit_core.buildapi via pyproject.toml
+# Pure Python single-file module (multipart.py), no dependencies, no C extensions
+# Python target: 3.8+ (chroot provides python3 3.11.6)
+%global pypi_name multipart
+
+Name: python-%{pypi_name}
+Version: 1.2.0
+Release: 1%{?dist}
+Summary: Parser for multipart/form-data
+License: MIT
+URL: https://github.com/defnull/multipart
+Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-pip
+BuildRequires: pyproject-rpm-macros
+BuildRequires: python3-flit-core
+
+%description
+A fast incremental non-blocking parser for multipart/form-data (RFC 7578),
+as well as blocking alternatives for easier use in WSGI or CGI applications.
+Provides a SansIO PushMultipartParser for ASGI/asyncio, a streaming
+MultipartParser for blocking IO, and high-level WSGI helper functions.
+Pure Python single-file module with no runtime dependencies.
+
+
+%package -n python3-%{pypi_name}
+Summary: Parser for multipart/form-data
+Provides: python-%{pypi_name}
+Provides: python3dist(%{pypi_name}) = %{version}
+
+%description -n python3-%{pypi_name}
+A fast incremental non-blocking parser for multipart/form-data (RFC 7578),
+as well as blocking alternatives for easier use in WSGI or CGI applications.
+Provides a SansIO PushMultipartParser for ASGI/asyncio, a streaming
+MultipartParser for blocking IO, and high-level WSGI helper functions.
+Pure Python single-file module with no runtime dependencies.
+
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+
+%description help
+Development documents and examples for %{pypi_name}.
+
+
+%prep
+%autosetup -n %{pypi_name}-%{version} -p1
+
+
+%build
+%pyproject_build
+
+
+%install
+%pyproject_install
+
+
+%check
+%{python3} -c "import multipart"
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%{python3_sitelib}/multipart.py
+%{python3_sitelib}/__pycache__/multipart*
+%{python3_sitelib}/multipart-%{version}*.dist-info/
+
+
+%files help
+%doc README.rst CHANGELOG.rst
+
+
+%changelog
+* Tue Oct 27 2026 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1
+- Initial package