]>
Commit | Line | Data |
---|---|---|
adcfa9e7 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
e9fd6148 | 4 | %define kdeappsver 22.08.0 |
187a5532 | 5 | %define qtver 5.15.2 |
adcfa9e7 WF |
6 | %define kf5ver 5.71.0 |
7 | %define kaname zanshin | |
8 | Summary: A Getting Things Done application | |
9 | Name: ka5-%{kaname} | |
e9fd6148 | 10 | Version: 22.08.0 |
7d077cce | 11 | Release: 2 |
adcfa9e7 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
e9fd6148 | 15 | # Source0-md5: 862a3e20612e0e0cd9e85c6d5807ebce |
adcfa9e7 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: ka5-akonadi-calendar-devel >= %{kdeappsver} | |
19 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} | |
20 | BuildRequires: ka5-kontactinterface-devel >= %{kdeappsver} | |
21 | BuildRequires: kf5-ki18n-devel >= 5.93.0 | |
22 | BuildRequires: kf5-krunner-devel >= 5.93.0 | |
23 | BuildRequires: kf5-kwindowsystem-devel >= 5.93.0 | |
24 | BuildRequires: libstdc++-devel >= 6:8 | |
25 | BuildRequires: ninja | |
26 | BuildRequires: qt5-build >= %{qtver} | |
27 | BuildRequires: rpmbuild(macros) >= 1.736 | |
28 | BuildRequires: tar >= 1:1.22 | |
29 | BuildRequires: xorg-lib-libX11-devel | |
30 | BuildRequires: xz | |
31 | Requires: Qt5Core >= %{qtver} | |
32 | Requires: Qt5DBus >= %{qtver} | |
33 | Requires: Qt5PrintSupport >= %{qtver} | |
34 | Requires: Qt5Widgets >= %{qtver} | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | A Getting Things Done application which aims at getting your mind like | |
39 | water. Zanshin is a state of awareness, of relaxed alertness, in | |
40 | Japanese martial arts. A literal translation of zanshin is "remaining | |
41 | mind". ([Extract from | |
42 | Wikipedia](https://en.wikipedia.org/wiki/Zanshin)) | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{kaname}-%{version} | |
46 | ||
47 | %build | |
48 | install -d build | |
49 | cd build | |
50 | %cmake \ | |
51 | -G Ninja \ | |
52 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
53 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
54 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
55 | .. | |
56 | %ninja_build | |
57 | ||
58 | %if %{with tests} | |
59 | ctest | |
60 | %endif | |
61 | ||
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %ninja_install -C build | |
66 | ||
67 | %find_lang %{kaname} --all-name --with-kde | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files -f %{kaname}.lang | |
73 | %defattr(644,root,root,755) | |
74 | %doc AUTHORS HACKING TODO | |
75 | %attr(755,root,root) %{_bindir}/zanshin | |
76 | %attr(755,root,root) %{_bindir}/zanshin-migrator | |
adcfa9e7 WF |
77 | %attr(755,root,root) %{_libdir}/qt5/plugins/krunner_zanshin.so |
78 | %attr(755,root,root) %{_libdir}/qt5/plugins/zanshin_part.so | |
79 | %{_desktopdir}/org.kde.zanshin.desktop | |
80 | %{_iconsdir}/hicolor/128x128/apps/zanshin.png | |
81 | %{_iconsdir}/hicolor/256x256/apps/zanshin.png | |
82 | %{_iconsdir}/hicolor/48x48/apps/zanshin.png | |
83 | %{_iconsdir}/hicolor/64x64/apps/zanshin.png | |
84 | %{_iconsdir}/hicolor/scalable/apps/zanshin.svgz | |
85 | %{_datadir}/kservices5/kontact/zanshin_plugin.desktop | |
86 | %{_datadir}/kservices5/plasma-runner-zanshin.desktop | |
87 | %{_datadir}/kservices5/zanshin_part.desktop | |
88 | %{_datadir}/kxmlgui5/zanshin | |
89 | %{_datadir}/metainfo/org.kde.zanshin.metainfo.xml | |
e9fd6148 | 90 | %{_libdir}/qt5/plugins/pim5/kontact/kontact_zanshinplugin.so |