From 447b043d69100de11b6840d6e753b29133a40d673522a522adbda6fbf6be44fb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 20 Mar 2024 05:28:14 +0000 Subject: [PATCH] Fix %%autopatch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python313?expand=0&rev=11 --- python313.spec | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/python313.spec b/python313.spec index a116556..0fa53cf 100644 --- a/python313.spec +++ b/python313.spec @@ -144,25 +144,25 @@ Source100: PACKAGING-NOTES # is not detected to make pip and distutils install into separate location Patch02: F00251-change-user-install-location.patch # support finding packages in /usr/local, install to /usr/local by default -Patch07: python-3.3.0b1-localpath.patch +Patch03: python-3.3.0b1-localpath.patch # replace DATE, TIME and COMPILER by fixed definitions to aid reproducible builds -Patch08: python-3.3.0b1-fix_date_time_compiler.patch +Patch04: python-3.3.0b1-fix_date_time_compiler.patch # POSIX_FADV_WILLNEED throws EINVAL. Use a different constant in test -Patch09: python-3.3.0b1-test-posix_fadvise.patch +Patch05: python-3.3.0b1-test-posix_fadvise.patch # Raise timeout value for test_subprocess -Patch15: subprocess-raise-timeout.patch +Patch06: subprocess-raise-timeout.patch # PATCH-FEATURE-UPSTREAM bpo-31046_ensurepip_honours_prefix.patch bpo#31046 mcepl@suse.com # ensurepip should honour the value of $(prefix) -Patch29: bpo-31046_ensurepip_honours_prefix.patch +Patch07: bpo-31046_ensurepip_honours_prefix.patch # PATCH-FIX-SLE no-skipif-doctests.patch jsc#SLE-13738 mcepl@suse.com # SLE-15 version of Sphinx doesn't know about skipif directive in doctests. -Patch33: no-skipif-doctests.patch +Patch08: no-skipif-doctests.patch # PATCH-FIX-SLE skip-test_pyobject_freed_is_freed.patch mcepl@suse.com # skip a test failing on SLE-15 -Patch34: skip-test_pyobject_freed_is_freed.patch +Patch09: skip-test_pyobject_freed_is_freed.patch # PATCH-FIX-SLE fix_configure_rst.patch bpo#43774 mcepl@suse.com # remove duplicate link targets and make documentation with old Sphinx in SLE -Patch35: fix_configure_rst.patch +Patch10: fix_configure_rst.patch BuildRequires: autoconf-archive BuildRequires: automake BuildRequires: fdupes @@ -414,8 +414,13 @@ This package contains libpython3.2 shared library for embedding in other applications. %prep -%setup -q -n %{tarname} -%autopatch -p1 +%autosetup -p1 -N -n %{tarname} +%autopatch -p1 -M 07 + +%if 0%{?suse_version} <= 1500 +%patch -P 08 -p1 +%endif +%autopatch -p1 -m 09 # drop Autoconf version requirement sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac