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