Remove redundant things from the spec file
- %pyproject_buildrequires -r has been the default for a while now - Sources and Patches don't need to be enumerated - %python_provide is redundant and deprecated - pyproject-rpm-macros does not need to be explicitly BuildRequired - the Summary does not need to be repeated - modularity was retired
This commit is contained in:
parent
6b89252703
commit
b3699e5810
@ -1,6 +1,4 @@
|
|||||||
%if 0%{?_module_build} || 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# Don't run tests on module-build for now
|
|
||||||
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1450608
|
|
||||||
# RHEL does not include the test dependencies
|
# RHEL does not include the test dependencies
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
%else
|
%else
|
||||||
@ -16,13 +14,13 @@ 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
|
||||||
Source0: 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
|
||||||
Patch0: system-certs.patch
|
Patch: system-certs.patch
|
||||||
|
|
||||||
# Security fix for CVE-2023-32681
|
# Security fix for CVE-2023-32681
|
||||||
Patch1: 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
|
||||||
|
|
||||||
@ -33,12 +31,9 @@ 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.
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-requests
|
%package -n python%{python3_pkgversion}-requests
|
||||||
Summary: HTTP library, written in Python, for human beings
|
Summary: %{summary}
|
||||||
|
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-requests}
|
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
@ -57,11 +52,7 @@ designed to make HTTP requests easy for developers.
|
|||||||
%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks
|
%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%if %{with tests}
|
|
||||||
%pyproject_buildrequires -r
|
|
||||||
%else
|
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
Loading…
Reference in New Issue
Block a user