]>
Commit | Line | Data |
---|---|---|
0e2c47de WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ac0d68bd | 4 | %define kdeappsver 21.12.3 |
48119b3f | 5 | %define kframever 5.56.0 |
1dce20a1 | 6 | %define qtver 5.9.0 |
d76da3c4 WF |
7 | %define kaname kate |
8 | ||
9 | Summary: K Desktop Environment - Advanced Text Editor | |
10 | Summary(pl.UTF-8): K Desktop Environment - Zaawansowany edytor tekstu | |
11 | Name: ka5-%{kaname} | |
ac0d68bd | 12 | Version: 21.12.3 |
e360b2c2 | 13 | Release: 2 |
d76da3c4 WF |
14 | License: GPL |
15 | Group: X11/Applications/Editors | |
da740faa | 16 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ac0d68bd | 17 | # Source0-md5: bf1c02c26c45fe03d4be8603105413b4 |
d76da3c4 | 18 | URL: http://www.kde.org/ |
1dce20a1 WF |
19 | BuildRequires: Qt5Core-devel |
20 | BuildRequires: Qt5DBus-devel | |
21 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
22 | BuildRequires: Qt5Sql-devel | |
23 | BuildRequires: Qt5Test-devel >= 5.4.0 | |
24 | BuildRequires: Qt5Widgets-devel | |
25 | BuildRequires: gettext-devel | |
48119b3f WF |
26 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
27 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
28 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
29 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
30 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} | |
31 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
32 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
33 | BuildRequires: kf5-kio-devel >= %{kframever} | |
34 | BuildRequires: kf5-kjobwidgets-devel >= %{kframever} | |
35 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
36 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
37 | BuildRequires: kf5-ktexteditor-devel >= %{kframever} | |
38 | BuildRequires: kf5-kwindowsystem-devel >= %{kframever} | |
39 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
443db19f | 40 | BuildRequires: ninja |
d76da3c4 WF |
41 | BuildRequires: shared-mime-info |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | KDE advanced text editor featuring among others: | |
46 | - fast opening/editing of files even the big ones (opens a 50MB file | |
47 | in a few seconds) | |
48 | - powerful syntaxhighlighting engine, extensible via XML files | |
49 | - Code Folding capabilities for C++, C, PHP and more | |
50 | - Dynamic Word Wrap - long lines are wrapped at the window border on | |
51 | the fly for better overview | |
52 | - multiple views allows you to view more instances of the same | |
53 | document and/or more documents at one time | |
54 | - support for different encodings globally and at write time | |
55 | - built in dockable terminal emulation | |
56 | - sidebars with a list of open documents, a directory viewer with a | |
57 | directory chooser, a filter chooser and more | |
58 | - a plugin interface to allow third party plugins | |
59 | - a "Filter" command allows you to run selected text through a shell | |
60 | command | |
61 | ||
62 | KWrite is a simple texteditor, with syntaxhighlighting, codefolding, | |
63 | dynamic word wrap and more, it's the lightweight version of Kate, | |
64 | providing more speed for minor tasks. | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | Kate (KDE advanced text editor) to zaawansowany edytor tekstu KDE o | |
68 | możliwościach obejmujących m.in.: | |
ac0d68bd WF |
69 | - szybkie otwieranie i edycję nawet dużych plików (otwiera plik |
70 | 50MB w parę sekund) | |
71 | - potężny silnik podświetlania składni, rozszerzalny za pomocą | |
72 | plików XML | |
d76da3c4 WF |
73 | - możliwość zwijania kodu dla C++, C, PHP i innych języków |
74 | - dynamiczne zawijanie wierszy - długie linie są zawijane na granicy | |
75 | okna w locie dla lepszej widoczności | |
ac0d68bd WF |
76 | - wiele widoków pozwalających oglądać więcej instancji tego |
77 | samego dokumentu i/lub więcej dokumentów w tym samym czasie | |
d76da3c4 WF |
78 | - obsługę różnych kodowań globalnie i w czasie zapisu |
79 | - wbudowaną emulację dokowalnego terminala | |
80 | - paski z listą otwartych dokumentów, przeglądarkę katalogów z | |
81 | możliwością wybierania katalogu i filtrów | |
82 | - interfejs wtyczek obsługujący zewnętrzne wtyczki | |
83 | - polecenie "Filtr" pozwalające przepuszczać zaznaczony tekst przez | |
84 | polecenie powłoki | |
85 | ||
86 | KWrite to prosty edytor tekstu z podświetlaniem składni, zwijaniem | |
87 | kodu, dynamicznym zawijaniem wierszy itp. Jest lżejszą wersją Kate, | |
88 | szybszą dla mniejszych zadań. | |
89 | ||
90 | %package devel | |
91 | Summary: kate development files | |
92 | Summary(pl.UTF-8): Pliki dla programistów kate | |
93 | Group: X11/Development/Libraries | |
94 | Requires: %{name} = %{version}-%{release} | |
95 | Obsoletes: kate-devel <= 4.8.0 | |
96 | ||
97 | %description devel | |
98 | kate development files. | |
99 | ||
100 | %description devel -l pl.UTF-8 | |
101 | Pliki dla programistów kate. | |
102 | ||
103 | %prep | |
104 | %setup -q -n %{kaname}-%{version} | |
105 | ||
106 | %build | |
107 | install -d build | |
108 | cd build | |
109 | %cmake \ | |
443db19f | 110 | -G Ninja \ |
0e2c47de | 111 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
48119b3f | 112 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
d76da3c4 WF |
113 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
114 | .. | |
443db19f | 115 | %ninja_build |
d76da3c4 | 116 | |
0e2c47de WF |
117 | %if %{with tests} |
118 | ctest | |
119 | %endif | |
120 | ||
121 | ||
d76da3c4 WF |
122 | %install |
123 | rm -rf $RPM_BUILD_ROOT | |
443db19f | 124 | %ninja_install -C build |
d76da3c4 | 125 | |
da740faa WF |
126 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/ko |
127 | ||
d76da3c4 WF |
128 | %find_lang %{kaname} --all-name --with-kde |
129 | ||
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %post -p /sbin/ldconfig | |
134 | %postun -p /sbin/ldconfig | |
135 | ||
136 | %files -f %{kaname}.lang | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_bindir}/kate | |
139 | %attr(755,root,root) %{_bindir}/kwrite | |
da740faa | 140 | %{_libdir}/qt5/plugins/ktexteditor/externaltoolsplugin.so |
d76da3c4 WF |
141 | %{_libdir}/qt5/plugins/ktexteditor/katebacktracebrowserplugin.so |
142 | %{_libdir}/qt5/plugins/ktexteditor/katebuildplugin.so | |
143 | %{_libdir}/qt5/plugins/ktexteditor/katecloseexceptplugin.so | |
144 | %{_libdir}/qt5/plugins/ktexteditor/katectagsplugin.so | |
145 | %{_libdir}/qt5/plugins/ktexteditor/katefilebrowserplugin.so | |
146 | %{_libdir}/qt5/plugins/ktexteditor/katefiletreeplugin.so | |
147 | %{_libdir}/qt5/plugins/ktexteditor/kategdbplugin.so | |
148 | %{_libdir}/qt5/plugins/ktexteditor/katekonsoleplugin.so | |
d76da3c4 WF |
149 | %{_libdir}/qt5/plugins/ktexteditor/kateprojectplugin.so |
150 | %{_libdir}/qt5/plugins/ktexteditor/katereplicodeplugin.so | |
151 | %{_libdir}/qt5/plugins/ktexteditor/katesearchplugin.so | |
152 | %{_libdir}/qt5/plugins/ktexteditor/katesnippetsplugin.so | |
153 | %{_libdir}/qt5/plugins/ktexteditor/katesqlplugin.so | |
154 | %{_libdir}/qt5/plugins/ktexteditor/katesymbolviewerplugin.so | |
155 | %{_libdir}/qt5/plugins/ktexteditor/katexmlcheckplugin.so | |
156 | %{_libdir}/qt5/plugins/ktexteditor/katexmltoolsplugin.so | |
da740faa WF |
157 | %{_libdir}/qt5/plugins/ktexteditor/ktexteditorpreviewplugin.so |
158 | %{_libdir}/qt5/plugins/ktexteditor/lspclientplugin.so | |
d76da3c4 WF |
159 | %{_libdir}/qt5/plugins/ktexteditor/tabswitcherplugin.so |
160 | %{_libdir}/qt5/plugins/ktexteditor/textfilterplugin.so | |
a21f8f99 WF |
161 | %{_libdir}/qt5/plugins/ktexteditor/compilerexplorer.so |
162 | %{_libdir}/qt5/plugins/ktexteditor/latexcompletionplugin.so | |
d76da3c4 WF |
163 | %{_libdir}/qt5/plugins/plasma/dataengine/plasma_engine_katesessions.so |
164 | %{_desktopdir}/org.kde.kate.desktop | |
165 | %{_desktopdir}/org.kde.kwrite.desktop | |
166 | %{_iconsdir}/hicolor/128x128/apps/kate.png | |
167 | %{_iconsdir}/hicolor/128x128/apps/kwrite.png | |
168 | %{_iconsdir}/hicolor/16x16/apps/kate.png | |
169 | %{_iconsdir}/hicolor/16x16/apps/kwrite.png | |
170 | %{_iconsdir}/hicolor/22x22/apps/kate.png | |
171 | %{_iconsdir}/hicolor/22x22/apps/kwrite.png | |
172 | %{_iconsdir}/hicolor/32x32/apps/kate.png | |
173 | %{_iconsdir}/hicolor/32x32/apps/kwrite.png | |
174 | %{_iconsdir}/hicolor/48x48/apps/kate.png | |
175 | %{_iconsdir}/hicolor/48x48/apps/kwrite.png | |
176 | %{_iconsdir}/hicolor/64x64/apps/kate.png | |
177 | %{_iconsdir}/hicolor/64x64/apps/kwrite.png | |
da740faa WF |
178 | %dir %{_iconsdir}/hicolor/150x150 |
179 | %dir %{_iconsdir}/hicolor/150x150/apps | |
180 | %{_iconsdir}/hicolor/150x150/apps/kate.png | |
181 | %dir %{_iconsdir}/hicolor/310x310 | |
182 | %dir %{_iconsdir}/hicolor/310x310/apps | |
183 | %{_iconsdir}/hicolor/310x310/apps/kate.png | |
184 | %dir %{_iconsdir}/hicolor/44x44 | |
185 | %dir %{_iconsdir}/hicolor/44x44/apps | |
186 | %{_iconsdir}/hicolor/44x44/apps/kate.png | |
187 | %dir %{_iconsdir}/hicolor/256x256 | |
188 | %dir %{_iconsdir}/hicolor/256x256/apps | |
189 | %{_iconsdir}/hicolor/256x256/apps/kate.png | |
190 | %dir %{_iconsdir}/hicolor/512x512 | |
191 | %dir %{_iconsdir}/hicolor/512x512/apps | |
192 | %{_iconsdir}/hicolor/512x512/apps/kate.png | |
193 | %{_iconsdir}/hicolor/scalable/apps/kate.svg | |
d76da3c4 | 194 | %{_iconsdir}/hicolor/scalable/apps/kwrite.svgz |
f00ecbe0 | 195 | %dir %{_datadir}/kateproject |
d76da3c4 | 196 | %{_datadir}/kateproject/kateproject.example |
f00ecbe0 | 197 | %dir %{_datadir}/katexmltools |
d76da3c4 WF |
198 | %{_datadir}/katexmltools/html4-loose.dtd.xml |
199 | %{_datadir}/katexmltools/html4-strict.dtd.xml | |
200 | %{_datadir}/katexmltools/kcfg.dtd.xml | |
201 | %{_datadir}/katexmltools/kde-docbook.dtd.xml | |
202 | %{_datadir}/katexmltools/kpartgui.dtd.xml | |
203 | %{_datadir}/katexmltools/language.dtd.xml | |
204 | %{_datadir}/katexmltools/simplify_dtd.xsl | |
205 | %{_datadir}/katexmltools/testcases.xml | |
206 | %{_datadir}/katexmltools/xhtml1-frameset.dtd.xml | |
207 | %{_datadir}/katexmltools/xhtml1-strict.dtd.xml | |
208 | %{_datadir}/katexmltools/xhtml1-transitional.dtd.xml | |
209 | %{_datadir}/katexmltools/xslt-1.0.dtd.xml | |
d76da3c4 WF |
210 | %{_datadir}/kservices5/plasma-dataengine-katesessions.desktop |
211 | %{_mandir}/ca/man1/kate.1* | |
212 | %{_mandir}/de/man1/kate.1* | |
213 | %{_mandir}/es/man1/kate.1* | |
214 | %{_mandir}/it/man1/kate.1* | |
215 | %{_mandir}/man1/kate.1* | |
216 | %{_mandir}/nl/man1/kate.1* | |
217 | %{_mandir}/pt/man1/kate.1* | |
218 | %{_mandir}/pt_BR/man1/kate.1* | |
ac0d68bd | 219 | %{_mandir}/ru/man1/kate.1* |
d76da3c4 WF |
220 | %{_mandir}/sv/man1/kate.1* |
221 | %{_mandir}/uk/man1/kate.1* | |
222 | %{_datadir}/metainfo/org.kde.kate.appdata.xml | |
223 | %{_datadir}/metainfo/org.kde.kwrite.appdata.xml | |
224 | %{_datadir}/metainfo/org.kde.plasma.katesessions.appdata.xml | |
f00ecbe0 WF |
225 | %dir %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions |
226 | %dir %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/contents | |
227 | %dir %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui | |
d76da3c4 WF |
228 | %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui/KateSessionsItemDelegate.qml |
229 | %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui/Menu.qml | |
230 | %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/contents/ui/katesessions.qml | |
231 | %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/metadata.desktop | |
232 | %{_datadir}/plasma/plasmoids/org.kde.plasma.katesessions/metadata.json | |
233 | %{_datadir}/plasma/services/org.kde.plasma.katesessions.operations | |
3b9c996a WF |
234 | %{_libdir}/qt5/plugins/ktexteditor/katecolorpickerplugin.so |
235 | %{_libdir}/qt5/plugins/ktexteditor/kategitblameplugin.so | |
6bc6dafd WF |
236 | %{_libdir}/qt5/plugins/ktexteditor/rainbowparens.so |
237 | %{_datadir}/kservices5/plasma-applet-org.kde.plasma.katesessions.desktop |