diff --git a/python-requests.spec b/python-requests.spec index f6e1624..5b816d6 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,6 +1,4 @@ -%if 0%{?_module_build} || 0%{?rhel} -# Don't run tests on module-build for now -# See: https://bugzilla.redhat.com/show_bug.cgi?id=1450608 +%if 0%{?rhel} # RHEL does not include the test dependencies %bcond_with tests %else @@ -16,13 +14,13 @@ Summary: HTTP library, written in Python, for human beings License: Apache-2.0 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. # https://bugzilla.redhat.com/show_bug.cgi?id=904614 -Patch0: system-certs.patch +Patch: system-certs.patch # 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 @@ -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. %package -n python%{python3_pkgversion}-requests -Summary: HTTP library, written in Python, for human beings - -%{?python_provide:%python_provide python%{python3_pkgversion}-requests} +Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: pyproject-rpm-macros %if %{with tests} 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 %generate_buildrequires -%if %{with tests} -%pyproject_buildrequires -r -%else %pyproject_buildrequires -%endif %prep