]> git.pld-linux.org Git - packages/kf5-ktextwidgets.git/blobdiff - kf5-ktextwidgets.spec
- updated to 5.110.0
[packages/kf5-ktextwidgets.git] / kf5-ktextwidgets.spec
index cc439052aac963c1ef73864e1cfe0a84dce47afd..ea6204c22b743ad7016090cfad945315dec23fe7 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeframever     5.91
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeframever     5.110
 %define                qtver           5.15.2
 %define                kfname          ktextwidgets
 
 Summary:       Text editing widgets
 Name:          kf5-%{kfname}
-Version:       5.91.0
+Version:       5.110.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: f67fa515f50c11fcb376d26f2197a4d8
+# Source0-md5: ff9d06b644ec42b7cfadb4edda08d5dd
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Speech-devel >= %{qtver}
@@ -63,12 +66,17 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 %setup -q -n %{kfname}-%{version}
 
 %build
-install -d build
-cd build
-%cmake -G Ninja \
-       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-       ../
-%ninja_build
+%cmake -B build \
+       -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+%ninja_build -C build
+
+%if %{with tests}
+%ninja_build -C build test
+%endif
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.177815 seconds and 4 git commands to generate.