]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeappsver 23.08.5 | |
5 | %define kframever 5.94.0 | |
6 | %define qtver 5.15.2 | |
7 | %define kaname kalarm | |
8 | Summary: kalarm | |
9 | Name: ka5-%{kaname} | |
10 | Version: 23.08.5 | |
11 | Release: 1 | |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications | |
14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
15 | # Source0-md5: 5567b164f35fbd405552e3cd34f0fe87 | |
16 | URL: http://www.kde.org/ | |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 3.20 | |
19 | BuildRequires: ka5-akonadi-devel >= 18.04.0 | |
20 | BuildRequires: ka5-kcalutils-devel >= %{kdeappsver} | |
21 | BuildRequires: ka5-kimap-devel >= %{kdeappsver} | |
22 | BuildRequires: ka5-mailcommon-devel >= %{kdeappsver} | |
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} | |
34 | BuildRequires: ninja | |
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 | |
40 | ExcludeArch: x32 | |
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 | ||
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. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | KAlarm jest osobistym budzikiem i harmonogramem. | |
58 | ||
59 | Własciwości | |
60 | ||
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 | |
69 | ||
70 | %prep | |
71 | %setup -q -n %{kaname}-%{version} | |
72 | ||
73 | %build | |
74 | %cmake \ | |
75 | -B build \ | |
76 | -G Ninja \ | |
77 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
78 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
79 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON | |
80 | %ninja_build -C build | |
81 | ||
82 | %if %{with tests} | |
83 | ctest --test-dir build | |
84 | %endif | |
85 | ||
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | %ninja_install -C build | |
90 | ||
91 | %find_lang %{kaname} --all-name --with-kde | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files -f %{kaname}.lang | |
100 | %defattr(644,root,root,755) | |
101 | /etc/xdg/autostart/kalarm.autostart.desktop | |
102 | %attr(755,root,root) %{_bindir}/kalarm | |
103 | %attr(755,root,root) %{_bindir}/kalarmautostart | |
104 | %{_prefix}/libexec/kauth/kalarm_helper | |
105 | %{_desktopdir}/org.kde.kalarm.desktop | |
106 | %{_datadir}/config.kcfg/kalarmconfig.kcfg | |
107 | %{_datadir}/dbus-1/interfaces/org.kde.kalarm.kalarm.xml | |
108 | %{_iconsdir}/hicolor/128x128/apps/kalarm.png | |
109 | %{_iconsdir}/hicolor/16x16/apps/kalarm.png | |
110 | %{_iconsdir}/hicolor/22x22/apps/kalarm.png | |
111 | %{_iconsdir}/hicolor/32x32/apps/kalarm.png | |
112 | %{_iconsdir}/hicolor/48x48/apps/kalarm.png | |
113 | %{_iconsdir}/hicolor/64x64/apps/kalarm.png | |
114 | %{_datadir}/kalarm | |
115 | %dir %{_iconsdir}/breeze | |
116 | %dir %{_iconsdir}/breeze/actions | |
117 | %dir %{_iconsdir}/breeze/actions/16 | |
118 | %dir %{_iconsdir}/breeze/actions/22 | |
119 | %dir %{_iconsdir}/breeze-dark | |
120 | %dir %{_iconsdir}/breeze-dark/actions | |
121 | %dir %{_iconsdir}/breeze-dark/actions/16 | |
122 | %dir %{_iconsdir}/breeze-dark/actions/22 | |
123 | %{_iconsdir}/breeze-dark/actions/16/show-today.svg | |
124 | %{_iconsdir}/breeze-dark/actions/22/show-today.svg | |
125 | %{_iconsdir}/breeze/actions/16/show-today.svg | |
126 | %{_iconsdir}/breeze/actions/22/show-today.svg | |
127 | %dir %{_datadir}/kxmlgui5/kalarm | |
128 | %{_datadir}/kxmlgui5/kalarm/kalarmui.rc | |
129 | %{_datadir}/metainfo/org.kde.kalarm.appdata.xml | |
130 | %{_datadir}/polkit-1/actions/org.kde.kalarm.rtcwake.policy | |
131 | %{_datadir}/dbus-1/system-services/org.kde.kalarm.rtcwake.service | |
132 | %{_datadir}/dbus-1/system.d/org.kde.kalarm.rtcwake.conf | |
133 | %{_datadir}/qlogging-categories5/kalarm.categories | |
134 | %{_datadir}/qlogging-categories5/kalarm.renamecategories | |
135 | %{_datadir}/knotifications5/kalarm.notifyrc | |
136 | %ghost %{_libdir}/libkalarmcalendar.so.5 | |
137 | %{_libdir}/libkalarmcalendar.so.*.*.* | |
138 | %ghost %{_libdir}/libkalarmplugin.so.5 | |
139 | %{_libdir}/libkalarmplugin.so.*.*.* | |
140 | %dir %{_libdir}/qt5/plugins/pim5/kalarm | |
141 | %{_libdir}/qt5/plugins/pim5/kalarm/akonadiplugin.so |