- update to 5.21.2
[packages/kp5-kde-cli-tools.git] / kp5-kde-cli-tools.spec
1 %define         kdeplasmaver    5.21.2
2 %define         qtver           5.9.0
3 %define         kpname          kde-cli-tools
4 Summary:        Tools based on KDE Frameworks 5 to better interact with the system
5 Name:           kp5-%{kpname}
6 Version:        5.21.2
7 Release:        1
8 License:        GPL v2+/LGPL v2.1+
9 Group:          X11/Libraries
10 Source0:        http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
11 # Source0-md5:  9f794f1f0df65a93a68aa0af4258dae8
12 URL:            http://www.kde.org/
13 BuildRequires:  Qt5Core-devel >= %{qtver}
14 BuildRequires:  cmake >= 2.8.12
15 BuildRequires:  kf5-extra-cmake-modules >= 1.4.0
16 BuildRequires:  kf5-kcmutils-devel
17 BuildRequires:  kf5-kconfig-devel
18 BuildRequires:  kf5-kdelibs4support-devel
19 BuildRequires:  kf5-kdesu-devel
20 BuildRequires:  kf5-kemoticons-devel
21 BuildRequires:  kf5-ki18n-devel
22 BuildRequires:  kf5-kiconthemes-devel
23 BuildRequires:  kf5-kitemmodels-devel
24 BuildRequires:  kf5-kwindowsystem-devel
25 BuildRequires:  kp5-plasma-workspace-devel >= %{version}
26 BuildRequires:  ninja
27 BuildRequires:  qt5-build >= %{qtver}
28 BuildRequires:  rpmbuild(macros) >= 1.164
29 BuildRequires:  tar >= 1:1.22
30 BuildRequires:  xz
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Tools based on KDE Frameworks 5 to better interact with the system.
35
36 %prep
37 %setup -q -n %{kpname}-%{version}
38
39 %build
40 install -d build
41 cd build
42 %cmake -G Ninja \
43         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
44         -DHTML_INSTALL_DIR=%{_kdedocdir} \
45         ..
46 %ninja_build
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 %ninja_install -C build
51 rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,sr@latin}
52
53 %find_lang kde-cli-tools --all-name --with-kde
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post   -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
60
61 %files -f kde-cli-tools.lang
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/kbroadcastnotification
64 %attr(755,root,root) %{_bindir}/kcmshell5
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}/kioclient5
70 %attr(755,root,root) %{_bindir}/kmimetypefinder5
71 %attr(755,root,root) %{_bindir}/kstart5
72 %attr(755,root,root) %{_bindir}/ksvgtopng5
73 %attr(755,root,root) %{_bindir}/ktraderclient5
74 %attr(755,root,root) %{_libexecdir}/kf5/kdeeject
75 %attr(755,root,root) %{_libexecdir}/kf5/kdesu
76 %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_filetypes.so
77 %{_datadir}/kservices5/filetypes.desktop
78 %{_mandir}/man1/kdesu.1*
79 %lang(ca) %{_mandir}/ca/man1/kdesu.1*
80 %lang(de) %{_mandir}/de/man1/kdesu.1*
81 %lang(es) %{_mandir}/es/man1/kdesu.1*
82 %lang(et) %{_mandir}/et/man1/kdesu.1*
83 %lang(it) %{_mandir}/it/man1/kdesu.1*
84 %lang(nb) %{_mandir}/nb/man1/kdesu.1*
85 %lang(nl) %{_mandir}/nl/man1/kdesu.1*
86 %lang(pt) %{_mandir}/pt/man1/kdesu.1*
87 %lang(pt_BR) %{_mandir}/pt_BR/man1/kdesu.1*
88 %lang(ru) %{_mandir}/ru/man1/kdesu.1*
89 %lang(sr) %{_mandir}/sr/man1/kdesu.1*
90 %lang(sv) %{_mandir}/sv/man1/kdesu.1*
91 %lang(uk) %{_mandir}/uk/man1/kdesu.1*
92 %{_desktopdir}/org.kde.keditfiletype.desktop
93 %attr(755,root,root) %{_bindir}/kde-inhibit
94 %lang(fr) %{_mandir}/fr/man1/kdesu.1*
This page took 0.124028 seconds and 3 git commands to generate.