]>
Commit | Line | Data |
---|---|---|
2c4b36a7 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
b416f5ce | 4 | %define kdeframever 5.97 |
5d42376f | 5 | %define qtver 5.15.2 |
7ae58350 | 6 | %define kfname kidletime |
0dd6ed9f WF |
7 | |
8 | Summary: Reporting of idle time of user and system | |
7ae58350 | 9 | Name: kf5-%{kfname} |
b416f5ce | 10 | Version: 5.97.0 |
42e3d252 | 11 | Release: 1 |
0dd6ed9f WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
462d2646 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
b416f5ce | 15 | # Source0-md5: 5ab6acca13664b38a0f789f74416b834 |
0dd6ed9f | 16 | URL: http://www.kde.org/ |
7ae58350 AM |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
19 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
20 | BuildRequires: Qt5Test-devel >= %{qtver} | |
21 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
22 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
0dd6ed9f | 23 | BuildRequires: cmake >= 2.8.12 |
8a301827 | 24 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
6c706886 | 25 | BuildRequires: ninja |
7ae58350 | 26 | BuildRequires: qt5-linguist >= %{qtver} |
0dd6ed9f | 27 | BuildRequires: rpmbuild(macros) >= 1.164 |
98d4d2f6 | 28 | BuildRequires: tar >= 1:1.22 |
3514f65e | 29 | BuildRequires: xorg-lib-libXScrnSaver-devel |
98d4d2f6 | 30 | BuildRequires: xz |
7b2cc36c | 31 | Requires: kf5-dirs |
0dd6ed9f WF |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %define qt5dir %{_libdir}/qt5 | |
35 | ||
36 | %description | |
37 | KIdleTime is a singleton reporting information on idle time. It is | |
38 | useful not only for finding out about the current idle time of the PC, | |
39 | but also for getting notified upon idle time events, such as custom | |
40 | timeouts, or user activity. | |
41 | ||
42 | %package devel | |
7ae58350 AM |
43 | Summary: Header files for %{kfname} development |
44 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
0dd6ed9f WF |
45 | Group: X11/Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description devel | |
7ae58350 | 49 | Header files for %{kfname} development. |
0dd6ed9f WF |
50 | |
51 | %description devel -l pl.UTF-8 | |
7ae58350 | 52 | Pliki nagłówkowe dla programistów używających %{kfname}. |
0dd6ed9f WF |
53 | |
54 | %prep | |
7ae58350 | 55 | %setup -q -n %{kfname}-%{version} |
0dd6ed9f WF |
56 | |
57 | %build | |
58 | install -d build | |
59 | cd build | |
6c706886 | 60 | %cmake -G Ninja \ |
2c4b36a7 | 61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
7ae58350 | 62 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
0dd6ed9f | 63 | ../ |
6c706886 | 64 | %ninja_build |
0dd6ed9f | 65 | |
2c4b36a7 WF |
66 | %if %{with tests} |
67 | ctest | |
68 | %endif | |
69 | ||
70 | ||
0dd6ed9f WF |
71 | %install |
72 | rm -rf $RPM_BUILD_ROOT | |
6c706886 | 73 | %ninja_install -C build |
0dd6ed9f WF |
74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc README.md | |
f4cf21fc | 84 | %{_datadir}/qlogging-categories5/kidletime.categories |
3dbba3a8 | 85 | %ghost %{_libdir}/libKF5IdleTime.so.5 |
df5bb8a5 | 86 | %attr(755,root,root) %{_libdir}/libKF5IdleTime.so.*.* |
48f97137 AM |
87 | %dir %{_libdir}/qt5/plugins/kf5/org.kde.kidletime.platforms |
88 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin0.so | |
89 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin1.so | |
15495c87 | 90 | %{_datadir}/qlogging-categories5/kidletime.renamecategories |
0dd6ed9f WF |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{_includedir}/KF5/KIdleTime | |
0dd6ed9f | 95 | %{_libdir}/cmake/KF5IdleTime |
3dbba3a8 | 96 | %{_libdir}/libKF5IdleTime.so |
0dd6ed9f | 97 | %{qt5dir}/mkspecs/modules/qt_KIdleTime.pri |