diff --git a/karchive.spec b/karchive.spec index f9b5ab1..b5ed574 100644 --- a/karchive.spec +++ b/karchive.spec @@ -17,12 +17,11 @@ %define lname libKF5Archive5 -%define _tar_path 5.103 # 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: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} -# Only needed for the package signature condition +%define qt5_version 5.15.2 %bcond_without released Name: karchive Version: 5.114.0 @@ -35,12 +34,11 @@ Source: %{name}-%{version}.tar.xz Source1: %{name}-%{version}.tar.xz.sig Source2: frameworks.keyring %endif -BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} +BuildRequires: extra-cmake-modules >= %{_kf5_version} BuildRequires: fdupes -BuildRequires: kf5-filesystem BuildRequires: pkgconfig -BuildRequires: cmake(Qt5Core) >= 5.15.0 -BuildRequires: cmake(Qt5LinguistTools) > 5.15.0 +BuildRequires: cmake(Qt5Core) >= %{qt5_version} +BuildRequires: cmake(Qt5LinguistTools) >= %{qt5_version} BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(zlib) @@ -69,7 +67,7 @@ GZip format, via a subclass of QIODevice. %package devel Summary: Qt 5 addon providing access to numerous types of archives: Build Environment Requires: %{lname} = %{version} -Requires: cmake(Qt5Core) >= 5.15.0 +Requires: cmake(Qt5Core) >= %{qt5_version} %description devel KArchive provides classes for easy reading, creation and manipulation of