]> git.pld-linux.org Git - packages/kf5-kactivities-stats.git/blobdiff - kf5-kactivities-stats.spec
- updated to 5.111.0
[packages/kf5-kactivities-stats.git] / kf5-kactivities-stats.spec
index 0a1ee72a0c1995ce90dc17e21a4ea0a727595661..d273f5698bab522c4f7351c00490a4460cfa7c76 100644 (file)
@@ -1,17 +1,20 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
 # TODO:
 # Conflict /usr/bin/kactivitymanagerd
-%define                kdeframever     5.84
-%define                qtver           5.9.0
+%define                kdeframever     5.111
+%define                qtver           5.15.2
 %define                kfname          kactivities-stats
 
 Summary:       Core components for the KDE's Activities Activity Manager
 Name:          kf5-%{kfname}
-Version:       5.84.0
+Version:       5.111.0
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: f883cab7de848ab8a9ab1c9e6579b937
+Source0:       https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
+# Source0-md5: 9939081bf93ff9a4774475c3f022a87f
 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}
@@ -84,12 +87,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
@@ -111,7 +119,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/KF5/KActivitiesStats
-%{_includedir}/KF5/kactivitiesstats_version.h
 %{_libdir}/cmake/KF5ActivitiesStats
 %{_libdir}/libKF5ActivitiesStats.so
 %{_pkgconfigdir}/libKActivitiesStats.pc
This page took 0.11081 seconds and 4 git commands to generate.