]> git.pld-linux.org Git - packages/ka5-incidenceeditor.git/blobdiff - ka5-incidenceeditor.spec
- bcond_with tests
[packages/ka5-incidenceeditor.git] / ka5-incidenceeditor.spec
index 3e4d157bb96b0a9d8c4601175971c5bbfa96b773..e42947f903fa6a15ff795b170b14209289344e7e 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      21.04.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeappsver      21.12.3
 %define                kframever       5.56.0
 %define                qtver           5.9.0
 %define                kaname          incidenceeditor
 Summary:       Incidence editor
 Name:          ka5-%{kaname}
-Version:       21.04.0
+Version:       21.12.3
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
 Source0:       http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 5fd85af5e9d3f75a33ef3ab97c2554a5
+# Source0-md5: 794c75436a1b692fb98f1207fd0df6c7
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= 5.11.1
@@ -43,6 +46,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 This lib provides incidence editor.
 
+%description -l pl.UTF-8
+Ta biblioteka zawiera edytor listy rzeczy do zrobienia.
+
 %package devel
 Summary:       Header files for %{kaname} development
 Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{kaname}
@@ -63,11 +69,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.07705 seconds and 4 git commands to generate.