From c8de0336b2da5148897bf70cd127cf6b395218fb Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Mon, 20 Jun 2022 21:46:20 +0200 Subject: [PATCH] Fix rhbz#2039365 --- petsc.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/petsc.spec b/petsc.spec index ebc2397..0ed24a5 100644 --- a/petsc.spec +++ b/petsc.spec @@ -278,7 +278,7 @@ Name: petsc Summary: Portable Extensible Toolkit for Scientific Computation Version: %{releasever}.2 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD URL: https://petsc.org/ Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz @@ -567,6 +567,7 @@ Portable Extensible Toolkit for Scientific Computation (developer files). %prep %setup -qc + %if %{with python} %setup -q -T -D -a 1 cp -a petsc4py-%{version}/* %{name}-%{version}/ @@ -588,6 +589,11 @@ find src/benchmarks/streams -name '*.py' | xargs pathfix.py -pn -i "%{__python3} %endif popd +# Remove pregenerated Cython C sources +pushd %{name}-%{version} +find -type f -name '*.c' -print -delete +popd + %if %{with arch64} cp -a %{name}-%{version} build64 pushd build64 @@ -1169,6 +1175,9 @@ xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C build64 V=1 MPIEXEC='%{_bu %endif %changelog +* Mon Jun 20 2022 Antonio Trande - 3.17.2-3 +- Fix rhbz#2039365 + * Mon Jun 13 2022 Python Maint - 3.17.2-2 - Rebuilt for Python 3.11