From 55e79e3dfb7485c13d272434313407c822550fa3 Mon Sep 17 00:00:00 2001 From: Shuo Wang Date: Thu, 14 Sep 2023 10:49:42 +0800 Subject: [PATCH] use %setup for bootstrap Signed-off-by: Shuo Wang --- python-django.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/python-django.spec b/python-django.spec index b943ac2..1406ffd 100644 --- a/python-django.spec +++ b/python-django.spec @@ -3,7 +3,7 @@ Summary: A high-level Python Web framework Name: python-django Version: 2.2.28 -Release: 4%{?dist} +Release: 5%{?dist} License: BSD URL: https://www.djangoproject.com/ Source0: https://github.com/django/django/archive/refs/tags/%{version}.tar.gz @@ -11,9 +11,7 @@ Source0: https://github.com/django/django/archive/refs/tags/%{version}.ta Patch5000: disable-test-custom-fields.patch # this patch is supported to be removed when python-django updating -%if %{with python-bootstrap} Patch5001: 0001-bypass-some-test-for-python3.11.patch -%endif BuildArch: noarch @@ -60,9 +58,16 @@ without needing to reinvent the wheel. It’s free and open source. %prep -%autosetup -p1 -n django-%{version} -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . +%setup -q -n django-%{version} +%patch5000 -p1 + +# remove it when django update +%if "%{python3_version}" == "3.11" +%patch5001 -p1 +%endif + +pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . %build %py3_build @@ -120,6 +125,9 @@ python3 runtests.py --settings=test_sqlite --verbosity=2 --parallel 1 %changelog +* Thu Sep 14 2023 Shuo Wang - 2.2.28-5 +- use %setup for bootstrap + * Thu Sep 14 2023 Shuo Wang - 2.2.28-4 - bypass many test for python 3.11 -- Gitee