]> git.pld-linux.org Git - packages/ka5-kalarm.git/blobdiff - ka5-kalarm.spec
- bcond_with tests
[packages/ka5-kalarm.git] / ka5-kalarm.spec
index 0f924181b5ca4665200a1274228d6c89b43af66d..2176270169b858c100fb0432e4e9e23d34e1b4b6 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      21.04.3
+#
+# 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          kalarm
 Summary:       kalarm
 Name:          ka5-%{kaname}
-Version:       21.04.3
+Version:       21.12.3
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Applications
 Source0:       http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: dc95b4830989c0d6661f20bf679cc24a
+# Source0-md5: 95085825d08d76e2bf8cfbd15bfa6c83
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: cmake >= 2.8.12
@@ -71,11 +74,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
@@ -101,13 +110,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_iconsdir}/hicolor/48x48/apps/kalarm.png
 %{_iconsdir}/hicolor/64x64/apps/kalarm.png
 %{_datadir}/kalarm
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-1.2.1-general.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-1.9.5-defaults.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-15.08-kickoff.sh
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-2.0.2-general.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-2.1.5-general.pl
-%attr(755,root,root) %{_datadir}/kconf_update/kalarm-version.pl
-%{_datadir}/kconf_update/kalarm.upd
 %dir %{_datadir}/kxmlgui5/kalarm
 %{_datadir}/kxmlgui5/kalarm/kalarmui.rc
 %{_datadir}/metainfo/org.kde.kalarm.appdata.xml
This page took 0.121948 seconds and 4 git commands to generate.