3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.93.0
6 %define kpname kde-cli-tools
7 Summary: Tools based on KDE Frameworks 5 to better interact with the system
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/unstable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
14 # Source0-md5: e02b216301cd6602f4b5fde800a57164
15 URL: https://www.kde.org/
16 BuildRequires: Qt6Core-devel >= %{qtver}
17 BuildRequires: cmake >= 3.16.0
18 BuildRequires: kf6-extra-cmake-modules >= 1.4.0
19 BuildRequires: kf6-kcmutils-devel
20 BuildRequires: kf6-kconfig-devel
21 BuildRequires: kf6-kdesu-devel
22 BuildRequires: kf6-ki18n-devel
23 BuildRequires: kf6-kiconthemes-devel
24 BuildRequires: kf6-kitemmodels-devel
25 BuildRequires: kf6-kpty-devel
26 BuildRequires: kf6-kwindowsystem-devel
27 BuildRequires: kp5-plasma-workspace-devel >= %{version}
29 BuildRequires: qt6-build >= %{qtver}
30 BuildRequires: rpmbuild(macros) >= 1.164
31 BuildRequires: tar >= 1:1.22
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Tools based on KDE Frameworks 5 to better interact with the system.
39 %setup -q -n %{kpname}-%{version}
44 %{!?with_tests:-DBUILD_TESTING=OFF} \
45 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
46 -DHTML_INSTALL_DIR=%{_kdedocdir}
54 rm -rf $RPM_BUILD_ROOT
55 %ninja_install -C build
56 rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,sr@latin}
58 %find_lang kde-cli-tools --all-name --with-kde
61 rm -rf $RPM_BUILD_ROOT
63 %files -f kde-cli-tools.lang
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/kde-open5
66 %attr(755,root,root) %{_bindir}/kdecp5
67 %attr(755,root,root) %{_bindir}/kdemv5
68 %attr(755,root,root) %{_bindir}/keditfiletype5
69 %attr(755,root,root) %{_bindir}/kinfo
70 %attr(755,root,root) %{_bindir}/kioclient5
71 %attr(755,root,root) %{_bindir}/kmimetypefinder5
72 %attr(755,root,root) %{_bindir}/kstart5
73 %attr(755,root,root) %{_bindir}/ksvgtopng5
74 %attr(755,root,root) %{_bindir}/kbroadcastnotification
75 %attr(755,root,root) %{_bindir}/kde-open
76 %attr(755,root,root) %{_bindir}/kdecp
77 %attr(755,root,root) %{_bindir}/kdemv
78 %attr(755,root,root) %{_bindir}/keditfiletype
79 %attr(755,root,root) %{_bindir}/kioclient
80 %attr(755,root,root) %{_bindir}/kmimetypefinder
81 %attr(755,root,root) %{_bindir}/kstart
82 %attr(755,root,root) %{_bindir}/ksvgtopng
83 %attr(755,root,root) %{_libexecdir}/kf6/kdeeject
84 %attr(755,root,root) %{_libexecdir}/kf6/kdesu
85 %attr(755,root,root) %{_bindir}/plasma-open-settings
86 %{_desktopdir}/org.kde.plasma.settings.open.desktop
87 %{_mandir}/man1/kdesu.1*
88 %lang(ca) %{_mandir}/ca/man1/kdesu.1*
89 %lang(de) %{_mandir}/de/man1/kdesu.1*
90 %lang(es) %{_mandir}/es/man1/kdesu.1*
91 %lang(et) %{_mandir}/et/man1/kdesu.1*
92 %lang(id) %{_mandir}/id/man1/kdesu.1*
93 %lang(it) %{_mandir}/it/man1/kdesu.1*
94 %lang(nb) %{_mandir}/nb/man1/kdesu.1*
95 %lang(nl) %{_mandir}/nl/man1/kdesu.1*
96 %lang(pt) %{_mandir}/pt/man1/kdesu.1*
97 %lang(pt_BR) %{_mandir}/pt_BR/man1/kdesu.1*
98 %lang(ru) %{_mandir}/ru/man1/kdesu.1*
99 %lang(sr) %{_mandir}/sr/man1/kdesu.1*
100 %lang(sv) %{_mandir}/sv/man1/kdesu.1*
101 %lang(uk) %{_mandir}/uk/man1/kdesu.1*
102 %{_desktopdir}/org.kde.keditfiletype.desktop
103 %attr(755,root,root) %{_bindir}/kde-inhibit
104 %lang(fr) %{_mandir}/fr/man1/kdesu.1*
105 %lang(tr) %{_mandir}/tr/man1/kdesu.1*
106 %{_libdir}/qt6/plugins/plasma/kcms/systemsettings_qwidgets/kcm_filetypes.so
107 %{_desktopdir}/kcm_filetypes.desktop
108 %{zsh_compdir}/_kde-inhibit