]>
Commit | Line | Data |
---|---|---|
0922577f WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
9a153a11 | 4 | %define kdeappsver 22.08.1 |
437fe48a | 5 | %define qtver 5.15.2 |
a732aee9 | 6 | %define kf5ver 5.71.0 |
47ae1674 AM |
7 | %define kaname konsole |
8 | Summary: KDE Terminal Emulator | |
9 | Name: ka5-%{kaname} | |
9a153a11 | 10 | Version: 22.08.1 |
f1c31ac3 | 11 | Release: 2 |
47ae1674 AM |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
d8de92f7 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
9a153a11 | 15 | # Source0-md5: 59acbbba63fc7a2c8ee1955639c3f2c7 |
47ae1674 AM |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
4a8dfcaf JP |
18 | BuildRequires: Qt5DBus-devel >= %{qtver} |
19 | BuildRequires: Qt5PrintSupport-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: cmake >= 3.13 | |
22 | BuildRequires: kf5-extra-cmake-modules >= %{kf5ver} | |
23 | BuildRequires: kf5-kbookmarks-devel >= %{kf5ver} | |
4a8dfcaf JP |
24 | BuildRequires: kf5-kconfig-devel >= %{kf5ver} |
25 | BuildRequires: kf5-kconfigwidgets-devel >= %{kf5ver} | |
26 | BuildRequires: kf5-kcoreaddons-devel >= %{kf5ver} | |
27 | BuildRequires: kf5-kcrash-devel >= %{kf5ver} | |
28 | BuildRequires: kf5-kdbusaddons-devel >= %{kf5ver} | |
29 | BuildRequires: kf5-kdoctools-devel >= %{kf5ver} | |
30 | BuildRequires: kf5-kglobalaccel-devel >= %{kf5ver} | |
31 | BuildRequires: kf5-kguiaddons-devel >= %{kf5ver} | |
32 | BuildRequires: kf5-ki18n-devel >= %{kf5ver} | |
33 | BuildRequires: kf5-kiconthemes-devel >= %{kf5ver} | |
4a8dfcaf JP |
34 | BuildRequires: kf5-kio-devel >= %{kf5ver} |
35 | BuildRequires: kf5-knewstuff-devel >= %{kf5ver} | |
36 | BuildRequires: kf5-knotifications-devel >= %{kf5ver} | |
37 | BuildRequires: kf5-knotifyconfig-devel >= %{kf5ver} | |
38 | BuildRequires: kf5-kparts-devel >= %{kf5ver} | |
39 | BuildRequires: kf5-kpty-devel >= %{kf5ver} | |
40 | BuildRequires: kf5-kservice-devel >= %{kf5ver} | |
41 | BuildRequires: kf5-ktextwidgets-devel >= %{kf5ver} | |
42 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kf5ver} | |
43 | BuildRequires: kf5-kwindowsystem-devel >= %{kf5ver} | |
44 | BuildRequires: kf5-kxmlgui-devel >= %{kf5ver} | |
a732aee9 | 45 | BuildRequires: libstdc++-devel >= 6:8 |
7eced89c | 46 | BuildRequires: ninja |
47ae1674 | 47 | BuildRequires: qt5-build >= %{qtver} |
d732b2c7 | 48 | BuildRequires: rpmbuild(macros) >= 1.736 |
47ae1674 | 49 | BuildRequires: tar >= 1:1.22 |
4a8dfcaf | 50 | BuildRequires: xorg-lib-libX11-devel |
47ae1674 | 51 | BuildRequires: xz |
4a8dfcaf JP |
52 | Requires: Qt5Core >= %{qtver} |
53 | Requires: Qt5DBus >= %{qtver} | |
54 | Requires: Qt5PrintSupport >= %{qtver} | |
55 | Requires: Qt5Widgets >= %{qtver} | |
56 | Requires: kf5-kbookmarks >= %{kf5ver} | |
4a8dfcaf JP |
57 | Requires: kf5-kconfig >= %{kf5ver} |
58 | Requires: kf5-kconfigwidgets >= %{kf5ver} | |
59 | Requires: kf5-kcoreaddons >= %{kf5ver} | |
60 | Requires: kf5-kcrash >= %{kf5ver} | |
61 | Requires: kf5-kdbusaddons >= %{kf5ver} | |
62 | Requires: kf5-kglobalaccel >= %{kf5ver} | |
63 | Requires: kf5-kguiaddons >= %{kf5ver} | |
64 | Requires: kf5-ki18n >= %{kf5ver} | |
65 | Requires: kf5-kiconthemes >= %{kf5ver} | |
66 | Requires: kf5-kio >= %{kf5ver} | |
67 | Requires: kf5-knewstuff >= %{kf5ver} | |
68 | Requires: kf5-knotifications >= %{kf5ver} | |
69 | Requires: kf5-knotifyconfig >= %{kf5ver} | |
70 | Requires: kf5-kparts >= %{kf5ver} | |
71 | Requires: kf5-kpty >= %{kf5ver} | |
72 | Requires: kf5-kservice >= %{kf5ver} | |
73 | Requires: kf5-ktextwidgets >= %{kf5ver} | |
74 | Requires: kf5-kwidgetsaddons >= %{kf5ver} | |
75 | Requires: kf5-kwindowsystem >= %{kf5ver} | |
76 | Requires: kf5-kxmlgui >= %{kf5ver} | |
47ae1674 AM |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
79 | %description | |
f40c6f09 WF |
80 | Konsole is a terminal emulator. |
81 | ||
82 | Features | |
83 | ||
d8de92f7 WF |
84 | • Tabs • Multiple profiles • Silence and Activity monitoring • |
85 | Bookmark support • Searching • Saving output | |
47ae1674 | 86 | |
997f3031 WF |
87 | %description -l pl.UTF-8 |
88 | Konsole jest emulatorem terminala. | |
89 | ||
90 | Cechy | |
91 | ||
1acebca8 WF |
92 | • Karty • Wiele profili • Monitoring ciszy i aktywności • |
93 | Zakładki • Szukanie • Zapisywanie danych wyjściowych | |
997f3031 | 94 | |
47ae1674 AM |
95 | %prep |
96 | %setup -q -n %{kaname}-%{version} | |
97 | ||
98 | %build | |
99 | install -d build | |
100 | cd build | |
101 | %cmake \ | |
7eced89c | 102 | -G Ninja \ |
0922577f | 103 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
fae40e66 | 104 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
47ae1674 AM |
105 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
106 | .. | |
7eced89c | 107 | %ninja_build |
47ae1674 | 108 | |
0922577f WF |
109 | %if %{with tests} |
110 | ctest | |
111 | %endif | |
112 | ||
113 | ||
47ae1674 AM |
114 | %install |
115 | rm -rf $RPM_BUILD_ROOT | |
7eced89c | 116 | %ninja_install -C build |
47ae1674 | 117 | |
d8de92f7 | 118 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{sr,zh_CN} |
5ac51d13 | 119 | %find_lang %{kaname} --all-name --with-kde |
47ae1674 AM |
120 | |
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
5ac51d13 | 127 | %files -f %{kaname}.lang |
47ae1674 | 128 | %defattr(644,root,root,755) |
47ae1674 AM |
129 | %defattr(644,root,root,755) |
130 | %attr(755,root,root) %{_bindir}/konsole | |
131 | %attr(755,root,root) %{_bindir}/konsoleprofile | |
d983c61d | 132 | %ghost %{_libdir}/libkonsoleprivate.so.1 |
5f1e3c0a | 133 | %{_libdir}/libkonsoleprivate.so.*.*.* |
d983c61d | 134 | %ghost %{_libdir}/libkonsoleapp.so.1 |
5f1e3c0a | 135 | %{_libdir}/libkonsoleapp.so.*.*.* |
47ae1674 | 136 | %attr(755,root,root) %{_libdir}/qt5/plugins/konsolepart.so |
80fb0a71 | 137 | %dir %{_libdir}/qt5/plugins/konsoleplugins |
d983c61d | 138 | %attr(755,root,root) %{_libdir}/qt5/plugins/konsoleplugins/konsole_sshmanagerplugin.so |
5ac51d13 | 139 | %{_datadir}/metainfo/org.kde.konsole.appdata.xml |
47ae1674 AM |
140 | %{_desktopdir}/org.kde.konsole.desktop |
141 | %{_datadir}/knotifications5/konsole.notifyrc | |
142 | %{_datadir}/konsole | |
47ae1674 AM |
143 | %{_datadir}/kservices5/konsolepart.desktop |
144 | %{_datadir}/kservicetypes5/terminalemulator.desktop | |
d8de92f7 WF |
145 | %{_datadir}/knsrcfiles/konsole.knsrc |
146 | %{_datadir}/qlogging-categories5/konsole.categories | |
1acebca8 WF |
147 | %attr(755,root,root) %{_libdir}/kconf_update_bin/konsole_globalaccel |
148 | %attr(755,root,root) %{_libdir}/qt5/plugins/konsoleplugins/konsole_quickcommandsplugin.so | |
149 | %{_datadir}/kconf_update/konsole_globalaccel.upd | |
150 | %{_datadir}/kio/servicemenus/konsolerun.desktop |