]>
Commit | Line | Data |
---|---|---|
3c707052 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
a3f1bc01 | 4 | %define kdeappsver 23.04.3 |
3c707052 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
7 | %define kaname calindori | |
8 | Summary: Calendar application for Plasma Mobile | |
9 | Name: ka5-%{kaname} | |
a3f1bc01 | 10 | Version: 23.04.3 |
3c707052 WF |
11 | Release: 1 |
12 | License: GPL v3+ | |
13 | Group: X11/Applications | |
14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
a3f1bc01 | 15 | # Source0-md5: ffab22288b21f781f6541185236746ad |
3c707052 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel | |
18 | BuildRequires: Qt5DBus-devel >= 5.15.2 | |
19 | BuildRequires: Qt5Gui-devel >= 5.15.2 | |
20 | BuildRequires: Qt5Network-devel | |
21 | BuildRequires: Qt5Qml-devel >= 5.15.9 | |
22 | BuildRequires: Qt5Quick-controls2-devel | |
23 | BuildRequires: Qt5Quick-devel | |
24 | BuildRequires: Qt5Svg-devel | |
25 | BuildRequires: Qt5Widgets-devel >= 5.15.2 | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: kf5-extra-cmake-modules >= 5.95.0 | |
28 | BuildRequires: kf5-kcalendarcore-devel >= 5.95.0 | |
29 | BuildRequires: kf5-kconfig-devel >= 5.95.0 | |
30 | BuildRequires: kf5-kcoreaddons-devel >= 5.95.0 | |
31 | BuildRequires: kf5-kdbusaddons-devel >= 5.95.0 | |
32 | BuildRequires: kf5-ki18n-devel >= 5.95.0 | |
33 | BuildRequires: kf5-kirigami2-devel >= 5.95.0 | |
34 | BuildRequires: kf5-knotifications-devel >= 5.95.0 | |
35 | BuildRequires: kf5-kpeople-devel >= 5.95.0 | |
36 | BuildRequires: ninja | |
37 | BuildRequires: qt5-build >= %{qtver} | |
38 | BuildRequires: rpmbuild(macros) >= 1.164 | |
39 | BuildRequires: shared-mime-info | |
40 | BuildRequires: tar >= 1:1.22 | |
41 | BuildRequires: xz | |
42 | ExcludeArch: x32 | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | Calindori is a touch friendly calendar application. It has been | |
47 | designed for mobile devices but it can also run on desktop | |
48 | environments. It offers: | |
49 | ||
50 | - Monthly agenda | |
51 | - Multiple calendars | |
52 | - Event management | |
53 | - Task management | |
54 | - Calendar import | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{kaname}-%{version} | |
58 | ||
59 | %build | |
60 | install -d build | |
61 | cd build | |
62 | %cmake \ | |
63 | -G Ninja \ | |
64 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
65 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
66 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
67 | .. | |
68 | %ninja_build | |
69 | ||
70 | %if %{with tests} | |
71 | ctest | |
72 | %endif | |
73 | ||
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | %ninja_install -C build | |
78 | ||
79 | %find_lang %{kaname} --all-name --with-kde | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files -f %{kaname}.lang | |
85 | %defattr(644,root,root,755) | |
86 | /etc/xdg/autostart/org.kde.calindac.desktop | |
87 | %attr(755,root,root) %{_bindir}/calindac | |
88 | %attr(755,root,root) %{_bindir}/calindori | |
89 | %{_desktopdir}/org.kde.calindori.desktop | |
90 | %{_datadir}/dbus-1/services/org.kde.calindac.service | |
91 | %{_iconsdir}/hicolor/scalable/apps/calindori.svg | |
92 | %{_datadir}/knotifications5/calindac.notifyrc | |
93 | %{_datadir}/metainfo/org.kde.calindori.appdata.xml |