]> git.pld-linux.org Git - packages/ka5-cantor.git/blobdiff - ka5-cantor.spec
- updated to 22.12.1
[packages/ka5-cantor.git] / ka5-cantor.spec
index 1bcd13af8e54fdea7f2eba394617880acd50393d..783af6c60724e918aeda9d10c9541e6dce398ade 100644 (file)
@@ -1,23 +1,24 @@
 #
 # Conditional build:
 %bcond_without luajit          # build without luajit
+%bcond_with    tests           # build with tests
 #
 %ifarch x32
 %undefine      with_luajit
 %endif
 
-%define                kdeappsver      21.12.3
-%define                kframever       5.56.0
-%define                qtver           5.9.0
+%define                kdeappsver      22.12.1
+%define                kframever       5.94.0
+%define                qtver           5.15.2
 %define                kaname          cantor
 Summary:       Cantor
 Name:          ka5-%{kaname}
-Version:       21.12.3
-Release:       2
+Version:       22.12.1
+Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 3e267f8ce771c97325cad2f6bd56e697
+# Source0-md5: cb25ed9181cae353978742ae47da8c05
 URL:           https://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel
@@ -62,7 +63,7 @@ BuildRequires:        rpmbuild(macros) >= 1.164
 BuildRequires: shared-mime-info
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
-ExclusiveArch: i686  %{x8664}
+ExcludeArch:   x32
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -120,11 +121,17 @@ install -d build
 cd build
 %cmake \
        -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DHTML_INSTALL_DIR=%{_kdedocdir} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        ..
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %ninja_install -C build
This page took 0.11103 seconds and 4 git commands to generate.