]>
Commit | Line | Data |
---|---|---|
06d97861 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ee16d70c | 4 | %define kdeappsver 22.12.2 |
bc6f7bc2 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
2e363ed4 WF |
7 | %define kaname kalarm |
8 | Summary: kalarm | |
9 | Name: ka5-%{kaname} | |
ee16d70c | 10 | Version: 22.12.2 |
7e97c887 | 11 | Release: 1 |
2e363ed4 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
41208106 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ee16d70c | 15 | # Source0-md5: e1bd66667b04003b71c4535fa285a152 |
2e363ed4 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: ka5-akonadi-devel >= 18.04.0 | |
cb403c93 | 20 | BuildRequires: ka5-kcalutils-devel >= %{kdeappsver} |
2e363ed4 WF |
21 | BuildRequires: ka5-kimap-devel >= %{kdeappsver} |
22 | BuildRequires: ka5-mailcommon-devel >= %{kdeappsver} | |
d15427d1 WF |
23 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
24 | BuildRequires: kf5-kauth-devel >= %{kframever} | |
25 | BuildRequires: kf5-kcmutils-devel >= %{kframever} | |
26 | BuildRequires: kf5-kcodecs-devel >= %{kframever} | |
27 | BuildRequires: kf5-kcompletion-devel >= %{kframever} | |
28 | BuildRequires: kf5-kconfigwidgets-devel >= %{kframever} | |
29 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
30 | BuildRequires: kf5-kdelibs4support-devel >= %{kframever} | |
31 | BuildRequires: kf5-kholidays-devel >= %{kframever} | |
32 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
33 | BuildRequires: kf5-kjobwidgets-devel >= %{kframever} | |
c66b1edd | 34 | BuildRequires: ninja |
2e363ed4 WF |
35 | BuildRequires: qt5-build >= %{qtver} |
36 | BuildRequires: rpmbuild(macros) >= 1.164 | |
37 | BuildRequires: shared-mime-info | |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xz | |
0a75c142 | 40 | ExcludeArch: x32 |
2e363ed4 WF |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | KAlarm is a personal alarm message, command and email scheduler. | |
45 | ||
46 | Features | |
47 | ||
6fd78c6b WF |
48 | • Display alarms using your own text message, the text generated by |
49 | a command, or a text or image file. • Audible alarm using a sound | |
50 | file • Recurring alarm on an hours/minutes, daily, weekly, monthly | |
51 | or annual basis, or set it to trigger every time you log in. • | |
52 | Display alarms color and font customization • Support for multiple | |
53 | alarm calendars, which for example enables you to share alarms between | |
54 | a laptop and desktop computer. | |
2e363ed4 | 55 | |
87ebe98c WF |
56 | %description -l pl.UTF-8 |
57 | KAlarm jest osobistym budzikiem i harmonogramem. | |
58 | ||
59 | Własciwości | |
60 | ||
6fd78c6b WF |
61 | • Wyświetla własne wiadomości tekstowe, lub tekst wygenerowany |
62 | przez program, lub wyświetla plik tekstowy bądź obrazek • | |
63 | Dźwiękowe powiadomomienia • Powtarzalne alarmy, o określonej | |
64 | godzinie/minucie, dzienne, tygodniowe, miesięczne lub roczne a także | |
65 | wyzwalane wtedy gdy się zalogujesz • Możliwość konfiguracji | |
66 | koloru i rodzaju czcionki • Wsparcie dla wielu kalendarzy | |
67 | powiadomień, co pozwala na przykład współdzielić alarmy między | |
68 | laptopem a komputerem stacjonarnym | |
87ebe98c | 69 | |
2e363ed4 WF |
70 | %prep |
71 | %setup -q -n %{kaname}-%{version} | |
72 | ||
73 | %build | |
74 | install -d build | |
75 | cd build | |
76 | %cmake \ | |
c66b1edd | 77 | -G Ninja \ |
06d97861 | 78 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
d15427d1 | 79 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
2e363ed4 WF |
80 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
81 | .. | |
c66b1edd | 82 | %ninja_build |
2e363ed4 | 83 | |
06d97861 WF |
84 | %if %{with tests} |
85 | ctest | |
86 | %endif | |
87 | ||
88 | ||
2e363ed4 WF |
89 | %install |
90 | rm -rf $RPM_BUILD_ROOT | |
c66b1edd | 91 | %ninja_install -C build |
2e363ed4 WF |
92 | |
93 | %find_lang %{kaname} --all-name --with-kde | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
6fd78c6b WF |
98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
100 | ||
2e363ed4 WF |
101 | %files -f %{kaname}.lang |
102 | %defattr(644,root,root,755) | |
2e363ed4 | 103 | /etc/xdg/autostart/kalarm.autostart.desktop |
2e363ed4 WF |
104 | %attr(755,root,root) %{_bindir}/kalarm |
105 | %attr(755,root,root) %{_bindir}/kalarmautostart | |
106 | %{_prefix}/libexec/kauth/kalarm_helper | |
107 | %{_desktopdir}/org.kde.kalarm.desktop | |
108 | %{_datadir}/config.kcfg/kalarmconfig.kcfg | |
109 | %{_datadir}/dbus-1/interfaces/org.kde.kalarm.kalarm.xml | |
2e363ed4 WF |
110 | %{_iconsdir}/hicolor/128x128/apps/kalarm.png |
111 | %{_iconsdir}/hicolor/16x16/apps/kalarm.png | |
112 | %{_iconsdir}/hicolor/22x22/apps/kalarm.png | |
113 | %{_iconsdir}/hicolor/32x32/apps/kalarm.png | |
114 | %{_iconsdir}/hicolor/48x48/apps/kalarm.png | |
115 | %{_iconsdir}/hicolor/64x64/apps/kalarm.png | |
116 | %{_datadir}/kalarm | |
2e363ed4 WF |
117 | %dir %{_datadir}/kxmlgui5/kalarm |
118 | %{_datadir}/kxmlgui5/kalarm/kalarmui.rc | |
119 | %{_datadir}/metainfo/org.kde.kalarm.appdata.xml | |
120 | %{_datadir}/polkit-1/actions/org.kde.kalarm.rtcwake.policy | |
001dc8a1 WF |
121 | %{_datadir}/dbus-1/system-services/org.kde.kalarm.rtcwake.service |
122 | %{_datadir}/dbus-1/system.d/org.kde.kalarm.rtcwake.conf | |
123 | %{_datadir}/qlogging-categories5/kalarm.categories | |
124 | %{_datadir}/qlogging-categories5/kalarm.renamecategories | |
125 | %{_datadir}/knotifications5/kalarm.notifyrc | |
505915f0 WF |
126 | %ghost %{_libdir}/libkalarmcalendar.so.5 |
127 | %{_libdir}/libkalarmcalendar.so.*.*.* | |
128 | %ghost %{_libdir}/libkalarmplugin.so.5 | |
129 | %{_libdir}/libkalarmplugin.so.*.*.* | |
130 | %dir %{_libdir}/qt5/plugins/pim5/kalarm | |
131 | %{_libdir}/qt5/plugins/pim5/kalarm/akonadiplugin.so |