From eacf254206c5b7b2ac562b0d27e4713b2dc226aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sun, 21 Jan 2024 20:25:42 +0000 Subject: [PATCH] Fix "The file FFTW3LibraryDepends.cmake is missing" in autotools build https://github.com/FFTW/fftw3/issues/130#issuecomment-1902748460 --- fftw.spec | 5 ++++- fix_autotools_build.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 fix_autotools_build.patch diff --git a/fftw.spec b/fftw.spec index 19f88b0..0a7fa56 100644 --- a/fftw.spec +++ b/fftw.spec @@ -24,6 +24,7 @@ Summary: A Fast Fourier Transform library License: GPL-2.0-or-later AND MIT AND BSD-2-Clause URL: http://www.fftw.org Source0: http://www.fftw.org/fftw-%{version}.tar.gz +Patch1: fix_autotools_build.patch BuildRequires: gcc-gfortran @@ -280,7 +281,7 @@ This package contains the manual for the FFTW fast Fourier transform library. %prep -%setup -q +%autosetup -p1 %build %if %{with mpich} || %{with openmpi} @@ -540,6 +541,8 @@ done * Fri Jan 19 2024 Fedora Release Engineering - 3.3.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Fix i686 build by disabling openmpi +- Fix "The file FFTW3LibraryDepends.cmake is missing" in autotools build + https://github.com/FFTW/fftw3/issues/130#issuecomment-1902748460 * Thu Jul 27 2023 Lukáš Zaoral - 3.3.10-9 - migrate to SPDX license format diff --git a/fix_autotools_build.patch b/fix_autotools_build.patch new file mode 100644 index 0000000..7bc7696 --- /dev/null +++ b/fix_autotools_build.patch @@ -0,0 +1,13 @@ +diff --git a/FFTW3Config.cmake.in b/FFTW3Config.cmake.in +index 6b1fbc2..e8a2ed8 100644 +--- a/FFTW3Config.cmake.in ++++ b/FFTW3Config.cmake.in +@@ -10,8 +10,6 @@ set (FFTW3@PREC_SUFFIX@_LIBRARIES fftw3@PREC_SUFFIX@) + set (FFTW3@PREC_SUFFIX@_LIBRARY_DIRS @CMAKE_INSTALL_FULL_LIBDIR@) + set (FFTW3@PREC_SUFFIX@_INCLUDE_DIRS @CMAKE_INSTALL_FULL_INCLUDEDIR@) + +-include ("${CMAKE_CURRENT_LIST_DIR}/FFTW3LibraryDepends.cmake") +- + if (CMAKE_VERSION VERSION_LESS 2.8.3) + set (CMAKE_CURRENT_LIST_DIR) + endif ()