1
+ Name: python-urllib3_2
2
+ Version: 2.3.0
3
+ Release: %autorelease
4
+ # Fill in the actual package summary to submit package to Fedora
5
+ Summary: HTTP library with thread-safe connection pooling, file post, and more.
6
+
7
+ # Check if the automatically generated License and its spelling is correct for Fedora
8
+ # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/
9
+ License: MIT
10
+ URL: https://github.com/urllib3/urllib3/blob/main/CHANGES.rst
11
+ Source: %{pypi_source urllib3}
12
+
13
+ BuildArch: noarch
14
+ BuildRequires: python3-devel
15
+
16
+
17
+ # Fill in the actual package description to submit package to Fedora
18
+ %global _description %{expand:
19
+ This is package 'urllib3' generated automatically by pyp2spec.}
20
+
21
+ %description %_description
22
+
23
+ %package -n python3-urllib3_2
24
+ Summary: %{summary }
25
+
26
+ Conflicts: python3-urllib3
27
+ Provides: deprecated()
28
+
29
+ %description -n python3-urllib3 %_description
30
+
31
+ # For official Fedora packages, review which extras should be actually packaged
32
+ # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras
33
+ %pyproject_extras_subpkg -n python3-urllib3 brotli,h2,socks,zstd
34
+
35
+
36
+ %prep
37
+ %autosetup -p1 -n urllib3-%{version }
38
+
39
+
40
+ %generate_buildrequires
41
+ # Keep only those extras which you actually want to package or use during tests
42
+ %pyproject_buildrequires -x brotli,h2,socks,zstd
43
+
44
+
45
+ %build
46
+ %pyproject_wheel
47
+
48
+
49
+ %install
50
+ %pyproject_install
51
+ # Add top-level Python module names here as arguments, you can use globs
52
+ %pyproject_save_files -l ...
53
+
54
+
55
+ %check
56
+ %pyproject_check_import
57
+
58
+
59
+ %files -n python3-urllib3_2 -f %{pyproject_files }
60
+
61
+
62
+ %changelog
63
+ %autochangelog
0 commit comments