From a957b0e06f3f9d998a4a407b3ff8333c188a3e52 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Apr 25 2022 08:56:12 +0000 Subject: New upstream release (3.1.0) Rewrite spec whith new guidelines --- diff --git a/python-threadpoolctl.spec b/python-threadpoolctl.spec index 204d76b..8388fc0 100644 --- a/python-threadpoolctl.spec +++ b/python-threadpoolctl.spec @@ -4,12 +4,14 @@ Name: python-%{srcname} Version: 3.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Thread-pool Controls License: BSD URL: https://github.com/joblib/threadpoolctl Source0: %{pypi_source} +# Add Koji POWER9 and Z14 to the list of test architectures +Patch0: threadpoolctl-koji-arches.patch BuildArch: noarch BuildRequires: python3-devel @@ -37,7 +39,7 @@ BuildRequires: python3dist(cython) %_description %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires @@ -61,9 +63,10 @@ pytest -v %doc README.md multiple_openmp.md %changelog -* Mon Apr 25 2022 Sergio Pascual - 3.1.0-1 +* Mon Apr 25 2022 Sergio Pascual - 3.1.0-2 - New upstream release (3.1.0) - Rewrite spec whith new guidelines +- Add Koji's POWER9 and Z14 to the list of test architectures * Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/threadpoolctl-koji-arches.patch b/threadpoolctl-koji-arches.patch new file mode 100644 index 0000000..76d5074 --- /dev/null +++ b/threadpoolctl-koji-arches.patch @@ -0,0 +1,11 @@ +diff -ur threadpoolctl-3.1.0/tests/test_threadpoolctl.py threadpoolctl-3.1.0.arch/tests/test_threadpoolctl.py +--- threadpoolctl-3.1.0/tests/test_threadpoolctl.py 2022-01-31 16:08:24.277708800 +0100 ++++ threadpoolctl-3.1.0.arch/tests/test_threadpoolctl.py 2022-04-25 10:39:15.440156575 +0200 +@@ -591,6 +591,7 @@ + "Sandybridge", + "VORTEX", + "Zen", ++ "POWER9", "Z14", + ) + expected_blis_architectures = ( + # XXX: add more as needed by CI or developer laptops