summaryrefslogtreecommitdiff
path: root/multipart.spec
blob: 82f92838f53edd31e506c467f23b2bb4f758e509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# topdir: multipart-1.2.0
%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:        https://github.com/defnull/multipart/archive/refs/tags/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pip
BuildRequires:  python3-flit-core

%description
Parser for multipart/form-data. This module provides a fast incremental
non-blocking parser for multipart/form-data, as well as blocking alternatives
for easier use in WSGI or CGI applications.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Provides:       python3-%{pypi_name} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
Parser for multipart/form-data. This module provides a fast incremental
non-blocking parser for multipart/form-data, as well as blocking alternatives
for easier use in WSGI or CGI applications.


%package help
Summary:        Development documents and examples for %{pypi_name}
BuildArch:      noarch
%description help
Documentation and examples for %{pypi_name}.


%prep
%autosetup -n %{pypi_name}-%{version}


%build
%pyproject_build


%install
%pyproject_install


%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst CHANGELOG.rst
%{python3_sitelib}/multipart.py
%{python3_sitelib}/__pycache__/multipart.*.pyc
%{python3_sitelib}/%{pypi_name}-%{version}*.dist-info/

%files help
%doc README.rst CHANGELOG.rst


%changelog
* Fri Oct 23 2026 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1
- Initial package