]> git.pld-linux.org Git - packages/kf5-kirigami2.git/blobdiff - kf5-kirigami2.spec
- bcond_with tests
[packages/kf5-kirigami2.git] / kf5-kirigami2.spec
index 578a32986c0617ee279254a481ab324713d5852b..b053355ccad06c130964506af1ae8095eb00fc6b 100644 (file)
@@ -1,18 +1,21 @@
 #
+# Conditional build:
+%bcond_with    tests           # build with tests
+#
 # TODO:
 # - runtime Requires if any
 
-%define                kdeframever     5.84
+%define                kdeframever     5.92
 %define                qtver           5.9.0
 %define                kfname          kirigami2
 Summary:       Kirigami2 library
 Name:          kf5-%{kfname}
-Version:       5.84.0
+Version:       5.92.0
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 727e43621d82997628bac527cf2888ae
+Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 6bfe820fada95b801035afd9aa62bf5c
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= %{qtver}
@@ -52,10 +55,16 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
 install -d build
 cd build
 %cmake -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -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.051264 seconds and 4 git commands to generate.