]> git.pld-linux.org Git - packages/ka5-calendarsupport.git/blobdiff - ka5-calendarsupport.spec
relup
[packages/ka5-calendarsupport.git] / ka5-calendarsupport.spec
index b6f5f19cc7e26ffc6f8b54efb2ecfd305fa43c08..14c17b5befe68b1685109b14062db6aa67431aaf 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      21.08.0
-%define                kframever       5.56.0
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeappsver      22.08.0
+%define                kframever       5.94.0
+%define                qtver           5.15.2
 %define                kaname          calendarsupport
 Summary:       Calendarsupport
 Name:          ka5-%{kaname}
-Version:       21.08.0
-Release:       1
+Version:       22.08.0
+Release:       3
 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: 231e671514e2cc95725e9db69d9db599
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 050b68b1ac1dc67a01870a81d20df0b6
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= 5.11.1
@@ -67,11 +70,17 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
 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
@@ -88,15 +97,12 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %ghost %{_libdir}/libKF5CalendarSupport.so.5
 %attr(755,root,root) %{_libdir}/libKF5CalendarSupport.so.*.*.*
-%{_datadir}/kservicetypes5/calendarplugin.desktop
 %{_datadir}/qlogging-categories5/calendarsupport.categories
 %{_datadir}/qlogging-categories5/calendarsupport.renamecategories
 
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/KF5/CalendarSupport
-%{_includedir}/KF5/calendarsupport
-%{_includedir}/KF5/calendarsupport_version.h
 %{_libdir}/cmake/KF5CalendarSupport
 %{_libdir}/libKF5CalendarSupport.so
 %{_libdir}/qt5/mkspecs/modules/qt_CalendarSupport.pri
This page took 0.232841 seconds and 4 git commands to generate.