From ec223f165ec88f58754294240e907423440a1928fff6bf9d0ba64b9e97933e7b Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Mon, 17 Apr 2017 16:13:04 +0000 Subject: [PATCH] Put _kf5_bugfix_version to ease maintenance instead of relying on _tar_path (port from KUF) OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/extra-cmake-modules?expand=0&rev=129 --- extra-cmake-modules.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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