]> git.pld-linux.org Git - packages/kf5-kactivities.git/blobdiff - kf5-kactivities.spec
- updated to 5.116.0
[packages/kf5-kactivities.git] / kf5-kactivities.spec
index 8eb7b994e476a7261e1ad3834d478bb2d58279ce..d7327a3964ecfc8c95d3e2a086644f743224acef 100644 (file)
@@ -1,17 +1,20 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # Conflict /usr/bin/kactivitymanagerd
-%define                kdeframever     5.89
-%define                qtver           5.9.0
+%define                kdeframever     5.116
+%define                qtver           5.15.2
 %define                kfname          kactivities
 
 Summary:       Core components for the KDE's Activities Activity Manager
 Name:          kf5-%{kfname}
-Version:       5.89.0
+Version:       5.116.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
 Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: 8ca5ece8f271aa17fb95617c6506e457
+# Source0-md5: 303995a8483ad06c9cd7a775691ac610
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5DBus-devel >= %{qtver}
@@ -23,7 +26,7 @@ BuildRequires:        Qt5Test-devel >= %{qtver}
 BuildRequires: Qt5Widgets-devel >= %{qtver}
 BuildRequires: Qt5Xml-devel >= %{qtver}
 BuildRequires: boost-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.16
 BuildRequires: gettext-devel
 BuildRequires: kf5-attica-devel >= %{version}
 BuildRequires: kf5-extra-cmake-modules >= %{version}
@@ -83,12 +86,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
@@ -115,7 +123,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/KF5/KActivities
-%{_includedir}/KF5/kactivities_version.h
 %{_libdir}/cmake/KF5Activities
 %{_libdir}/libKF5Activities.so
 %{_pkgconfigdir}/libKActivities.pc
This page took 0.200933 seconds and 4 git commands to generate.