diff --git a/extra-cmake-modules.spec b/extra-cmake-modules.spec index ecc9d30..862abf4 100644 --- a/extra-cmake-modules.spec +++ b/extra-cmake-modules.spec @@ -16,7 +16,6 @@ # -%define _tar_path 5.33 Name: extra-cmake-modules Summary: CMake modules License: BSD-3-Clause @@ -24,7 +23,11 @@ Group: Development/Tools/Other Url: https://projects.kde.org/projects/kdesupport/extra-cmake-modules Version: 5.33.0 Release: 0 -Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz +# Full KF5 version (e.g. 5.33.0) +%{!?_kf5_version: %global _kf5_version %{version}} +# Last major and minor KF5 version (e.g. 5.33) +%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} +Source: http://download.kde.org/stable/frameworks/%{_kf5_bugfix_version}/%{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM: Search for unversioned clang Patch0: 0001-FindPyModGen-Also-search-for-an-unversioned-clang.patch # PATCH-FIX-UPSTREAM: Import FindClangLLVM from KDevelop