]>
Commit | Line | Data |
---|---|---|
ab05ecd5 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
40495e7f | 4 | %define kdeplasmaver 5.27.11 |
e4e1886a | 5 | %define qtver 5.15.2 |
34777080 WF |
6 | %define kpname kactivitymanagerd |
7 | Summary: kactivitymanagerd | |
8 | Name: kp5-%{kpname} | |
40495e7f | 9 | Version: 5.27.11 |
d510f9f2 | 10 | Release: 1 |
34777080 WF |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
d510f9f2 | 13 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
40495e7f | 14 | # Source0-md5: 8acbc89f0a0f9d027c960fa8c362016c |
34777080 | 15 | URL: http://www.kde.org/ |
d510f9f2 WF |
16 | BuildRequires: Qt5Concurrent-devel |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
19 | BuildRequires: Qt5Sql-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
aa6694dd | 22 | BuildRequires: boost-devel |
e20b385c | 23 | BuildRequires: cmake >= 3.16.0 |
34777080 | 24 | BuildRequires: gettext-devel |
d510f9f2 WF |
25 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 |
26 | BuildRequires: kf5-kdbusaddons-devel | |
27 | BuildRequires: kf5-kdelibs4support-devel | |
28 | BuildRequires: kf5-kdoctools-devel | |
29 | BuildRequires: kf5-kglobalaccel-devel | |
30 | BuildRequires: kf5-khtml-devel | |
31 | BuildRequires: kf5-kwindowsystem-devel | |
80dacb06 | 32 | BuildRequires: ninja |
d510f9f2 WF |
33 | BuildRequires: qt5-build >= %{qtver} |
34 | BuildRequires: qt5-qmake | |
34777080 WF |
35 | BuildRequires: rpmbuild(macros) >= 1.164 |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: xorg-lib-libX11-devel | |
38 | BuildRequires: xz | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
aa6694dd WF |
42 | System service to manage user's activities, track the usage patterns |
43 | etc. | |
34777080 WF |
44 | |
45 | %prep | |
46 | %setup -q -n %{kpname}-%{version} | |
47 | ||
48 | %build | |
e20b385c WF |
49 | %cmake -B build \ |
50 | -G Ninja \ | |
ab05ecd5 | 51 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
e20b385c WF |
52 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
53 | %ninja_build -C build | |
34777080 | 54 | |
ab05ecd5 WF |
55 | %if %{with tests} |
56 | ctest | |
57 | %endif | |
58 | ||
34777080 WF |
59 | %install |
60 | rm -rf $RPM_BUILD_ROOT | |
80dacb06 | 61 | %ninja_install -C build |
34777080 WF |
62 | |
63 | %find_lang %{kpname} --all-name --with-kde | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files -f %{kpname}.lang | |
69 | %defattr(644,root,root,755) | |
80dacb06 | 70 | %attr(755,root,root) %{_libexecdir}/kactivitymanagerd |
d510f9f2 WF |
71 | %{_libdir}/libkactivitymanagerd_plugin.so |
72 | %dir %{_libdir}/qt5/plugins/kactivitymanagerd | |
73 | %dir %{_libdir}/qt5/plugins/kactivitymanagerd/1 | |
74 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_activitytemplates.so | |
75 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_eventspy.so | |
76 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_globalshortcuts.so | |
77 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_runapplication.so | |
78 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_slc.so | |
79 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_sqlite.so | |
80 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_virtualdesktopswitch.so | |
81 | %{_datadir}/kservices5/kactivitymanagerd.desktop | |
aa6694dd | 82 | %{systemduserunitdir}/plasma-kactivitymanagerd.service |
d510f9f2 | 83 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_gtk_eventspy.so |
aa6694dd | 84 | %{_datadir}/dbus-1/services/org.kde.ActivityManager.service |
d510f9f2 WF |
85 | %{_datadir}/qlogging-categories5/kactivitymanagerd.categories |
86 | %attr(755,root,root) %{_libdir}/qt5/plugins/kactivitymanagerd/1/kactivitymanagerd_plugin_activityrunner.so | |
6227f237 | 87 | %{_datadir}/krunner/dbusplugins/plasma-runnners-activities.desktop |