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
This commit is contained in:
parent
5d53e7659b
commit
ec223f165e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user