Move lines around to resemble the example Python specfile
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_spec_file
This commit is contained in:
parent
a5e331ad3f
commit
ab88e0da15
@ -12,6 +12,7 @@ Summary: HTTP library, written in Python, for human beings
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://pypi.io/project/requests
|
URL: https://pypi.io/project/requests
|
||||||
Source: https://github.com/requests/requests/archive/v%{version}/requests-v%{version}.tar.gz
|
Source: https://github.com/requests/requests/archive/v%{version}/requests-v%{version}.tar.gz
|
||||||
|
|
||||||
# Explicitly use the system certificates in ca-certificates.
|
# Explicitly use the system certificates in ca-certificates.
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=904614
|
# https://bugzilla.redhat.com/show_bug.cgi?id=904614
|
||||||
Patch: system-certs.patch
|
Patch: system-certs.patch
|
||||||
@ -20,18 +21,7 @@ Patch: system-certs.patch
|
|||||||
Patch: https://github.com/psf/requests/commit/74ea7cf7a6.patch#/CVE-2023-32681.patch
|
Patch: https://github.com/psf/requests/commit/74ea7cf7a6.patch#/CVE-2023-32681.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
|
||||||
Most existing Python modules for sending HTTP requests are extremely verbose and
|
|
||||||
cumbersome. Python’s built-in urllib2 module provides most of the HTTP
|
|
||||||
capabilities you should need, but the API is thoroughly broken. This library is
|
|
||||||
designed to make HTTP requests easy for developers.
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-requests
|
|
||||||
Summary: %{summary}
|
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
BuildRequires: python3dist(pytest-httpbin)
|
BuildRequires: python3dist(pytest-httpbin)
|
||||||
@ -39,6 +29,15 @@ BuildRequires: python3dist(pytest-mock)
|
|||||||
BuildRequires: python3dist(trustme)
|
BuildRequires: python3dist(trustme)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Most existing Python modules for sending HTTP requests are extremely verbose and
|
||||||
|
cumbersome. Python’s built-in urllib2 module provides most of the HTTP
|
||||||
|
capabilities you should need, but the API is thoroughly broken. This library is
|
||||||
|
designed to make HTTP requests easy for developers.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python%{python3_pkgversion}-requests
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-requests
|
%description -n python%{python3_pkgversion}-requests
|
||||||
Most existing Python modules for sending HTTP requests are extremely verbose and
|
Most existing Python modules for sending HTTP requests are extremely verbose and
|
||||||
@ -46,10 +45,12 @@ cumbersome. Python’s built-in urllib2 module provides most of the HTTP
|
|||||||
capabilities you should need, but the API is thoroughly broken. This library is
|
capabilities you should need, but the API is thoroughly broken. This library is
|
||||||
designed to make HTTP requests easy for developers.
|
designed to make HTTP requests easy for developers.
|
||||||
|
|
||||||
|
|
||||||
%if %{with extras}
|
%if %{with extras}
|
||||||
%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks
|
%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires %{?with_extras:-x security,socks}
|
%pyproject_buildrequires %{?with_extras:-x security,socks}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user