]>
Commit | Line | Data |
---|---|---|
74759ca3 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
fcf6f38d | 4 | %define kdeappsver 22.04.1 |
42f7074c | 5 | %define kframever 5.56.0 |
997a6566 | 6 | %define qtver 5.9.0 |
97946a09 WF |
7 | %define kaname kcron |
8 | Summary: kcron | |
9 | Name: ka5-%{kaname} | |
fcf6f38d | 10 | Version: 22.04.1 |
97946a09 WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications | |
bb2d0cd5 | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
fcf6f38d | 15 | # Source0-md5: 12a98e24c916b432c880ef4e043477cd |
97946a09 | 16 | URL: http://www.kde.org/ |
997a6566 | 17 | BuildRequires: Qt5Core-devel |
97946a09 | 18 | BuildRequires: Qt5Core-devel >= %{qtver} |
997a6566 WF |
19 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
20 | BuildRequires: Qt5PrintSupport-devel | |
21 | BuildRequires: Qt5Widgets-devel | |
97946a09 | 22 | BuildRequires: cmake >= 2.8.12 |
997a6566 | 23 | BuildRequires: gettext-devel |
42f7074c WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
26 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
27 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
28 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
29 | BuildRequires: kf5-kio-devel >= %{kframever} | |
31b3a01d | 30 | BuildRequires: ninja |
97946a09 WF |
31 | BuildRequires: qt5-build >= %{qtver} |
32 | BuildRequires: rpmbuild(macros) >= 1.164 | |
33 | BuildRequires: shared-mime-info | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xz | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
997a6566 WF |
39 | KCron - an application for scheduling programs to run in the |
40 | background using cron. | |
97946a09 | 41 | |
0bdd1ab8 | 42 | %description -l pl.UTF-8 |
b7940660 WF |
43 | KCron - aplikacja do planowania uruchamiania programów w tle używając |
44 | crona. | |
0bdd1ab8 | 45 | |
97946a09 WF |
46 | %prep |
47 | %setup -q -n %{kaname}-%{version} | |
48 | ||
49 | %build | |
50 | install -d build | |
51 | cd build | |
52 | %cmake \ | |
31b3a01d | 53 | -G Ninja \ |
74759ca3 | 54 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
42f7074c | 55 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
97946a09 WF |
56 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
57 | .. | |
31b3a01d | 58 | %ninja_build |
97946a09 | 59 | |
74759ca3 WF |
60 | %if %{with tests} |
61 | ctest | |
62 | %endif | |
63 | ||
64 | ||
97946a09 WF |
65 | %install |
66 | rm -rf $RPM_BUILD_ROOT | |
31b3a01d | 67 | %ninja_install -C build |
bb2d0cd5 | 68 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{ko,zh_CN} |
97946a09 WF |
69 | |
70 | %find_lang %{kaname} --all-name --with-kde | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files -f %{kaname}.lang | |
76 | %defattr(644,root,root,755) | |
997a6566 | 77 | %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_cron.so |
97946a09 | 78 | %{_datadir}/kservices5/kcm_cron.desktop |
bb2d0cd5 WF |
79 | %{_datadir}/qlogging-categories5/kcron.categories |
80 | %{_datadir}/metainfo/org.kde.kcron.metainfo.xml | |
b7940660 WF |
81 | %attr(755,root,root) %{_prefix}/libexec/kauth/kcron_helper |
82 | %{_datadir}/dbus-1/system-services/local.kcron.crontab.service | |
83 | %{_datadir}/dbus-1/system.d/local.kcron.crontab.conf | |
84 | %{_datadir}/polkit-1/actions/local.kcron.crontab.policy |