]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeappsver 22.12.3 | |
5 | %define kframever 5.94.0 | |
6 | %define qtver 5.15.2 | |
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} | |
12 | Version: 22.12.3 | |
13 | Release: 1 | |
14 | License: GPL | |
15 | Group: X11/Applications/Editors | |
16 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
17 | # Source0-md5: b2525e7da611b55b72bc18d064fc334c | |
18 | URL: http://www.kde.org/ | |
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 | |
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} | |
40 | BuildRequires: ninja | |
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.: | |
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 | |
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 | |
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 | |
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 \ | |
110 | -G Ninja \ | |
111 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
112 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
113 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
114 | .. | |
115 | %ninja_build | |
116 | ||
117 | %if %{with tests} | |
118 | ctest | |
119 | %endif | |
120 | ||
121 | ||
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | %ninja_install -C build | |
125 | ||
126 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/ko | |
127 | # not supported by glibc yet | |
128 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
129 | ||
130 | %find_lang %{kaname} --all-name --with-kde | |
131 | ||
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
138 | %files -f %{kaname}.lang | |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_bindir}/kate | |
141 | %attr(755,root,root) %{_bindir}/kwrite | |
142 | %{_libdir}/qt5/plugins/ktexteditor/externaltoolsplugin.so | |
143 | %{_libdir}/qt5/plugins/ktexteditor/katebacktracebrowserplugin.so | |
144 | %{_libdir}/qt5/plugins/ktexteditor/katebuildplugin.so | |
145 | %{_libdir}/qt5/plugins/ktexteditor/katecloseexceptplugin.so | |
146 | %{_libdir}/qt5/plugins/ktexteditor/katectagsplugin.so | |
147 | %{_libdir}/qt5/plugins/ktexteditor/katefilebrowserplugin.so | |
148 | %{_libdir}/qt5/plugins/ktexteditor/katefiletreeplugin.so | |
149 | %{_libdir}/qt5/plugins/ktexteditor/kategdbplugin.so | |
150 | %{_libdir}/qt5/plugins/ktexteditor/katekonsoleplugin.so | |
151 | %{_libdir}/qt5/plugins/ktexteditor/kateprojectplugin.so | |
152 | %{_libdir}/qt5/plugins/ktexteditor/katereplicodeplugin.so | |
153 | %{_libdir}/qt5/plugins/ktexteditor/katesearchplugin.so | |
154 | %{_libdir}/qt5/plugins/ktexteditor/katesnippetsplugin.so | |
155 | %{_libdir}/qt5/plugins/ktexteditor/katesqlplugin.so | |
156 | %{_libdir}/qt5/plugins/ktexteditor/katesymbolviewerplugin.so | |
157 | %{_libdir}/qt5/plugins/ktexteditor/katexmlcheckplugin.so | |
158 | %{_libdir}/qt5/plugins/ktexteditor/katexmltoolsplugin.so | |
159 | %{_libdir}/qt5/plugins/ktexteditor/ktexteditorpreviewplugin.so | |
160 | %{_libdir}/qt5/plugins/ktexteditor/lspclientplugin.so | |
161 | %{_libdir}/qt5/plugins/ktexteditor/tabswitcherplugin.so | |
162 | %{_libdir}/qt5/plugins/ktexteditor/textfilterplugin.so | |
163 | %{_libdir}/qt5/plugins/ktexteditor/compilerexplorer.so | |
164 | %{_libdir}/qt5/plugins/ktexteditor/latexcompletionplugin.so | |
165 | %{_libdir}/qt5/plugins/ktexteditor/cmaketoolsplugin.so | |
166 | %{_desktopdir}/org.kde.kate.desktop | |
167 | %{_desktopdir}/org.kde.kwrite.desktop | |
168 | %{_iconsdir}/hicolor/128x128/apps/kate.png | |
169 | %{_iconsdir}/hicolor/128x128/apps/kwrite.png | |
170 | %{_iconsdir}/hicolor/16x16/apps/kate.png | |
171 | %{_iconsdir}/hicolor/16x16/apps/kwrite.png | |
172 | %{_iconsdir}/hicolor/22x22/apps/kate.png | |
173 | %{_iconsdir}/hicolor/22x22/apps/kwrite.png | |
174 | %{_iconsdir}/hicolor/32x32/apps/kate.png | |
175 | %{_iconsdir}/hicolor/32x32/apps/kwrite.png | |
176 | %{_iconsdir}/hicolor/48x48/apps/kate.png | |
177 | %{_iconsdir}/hicolor/48x48/apps/kwrite.png | |
178 | %{_iconsdir}/hicolor/64x64/apps/kate.png | |
179 | %{_iconsdir}/hicolor/64x64/apps/kwrite.png | |
180 | %dir %{_iconsdir}/hicolor/150x150 | |
181 | %dir %{_iconsdir}/hicolor/150x150/apps | |
182 | %{_iconsdir}/hicolor/150x150/apps/kate.png | |
183 | %dir %{_iconsdir}/hicolor/310x310 | |
184 | %dir %{_iconsdir}/hicolor/310x310/apps | |
185 | %{_iconsdir}/hicolor/310x310/apps/kate.png | |
186 | %dir %{_iconsdir}/hicolor/44x44 | |
187 | %dir %{_iconsdir}/hicolor/44x44/apps | |
188 | %{_iconsdir}/hicolor/44x44/apps/kate.png | |
189 | %dir %{_iconsdir}/hicolor/256x256 | |
190 | %dir %{_iconsdir}/hicolor/256x256/apps | |
191 | %{_iconsdir}/hicolor/256x256/apps/kate.png | |
192 | %dir %{_iconsdir}/hicolor/512x512 | |
193 | %dir %{_iconsdir}/hicolor/512x512/apps | |
194 | %{_iconsdir}/hicolor/512x512/apps/kate.png | |
195 | %{_iconsdir}/hicolor/scalable/apps/kate.svg | |
196 | %dir %{_datadir}/kateproject | |
197 | %{_datadir}/kateproject/kateproject.example | |
198 | %dir %{_datadir}/katexmltools | |
199 | %{_datadir}/katexmltools/html4-loose.dtd.xml | |
200 | %{_datadir}/katexmltools/html4-strict.dtd.xml | |
201 | %{_datadir}/katexmltools/kcfg.dtd.xml | |
202 | %{_datadir}/katexmltools/kde-docbook.dtd.xml | |
203 | %{_datadir}/katexmltools/kpartgui.dtd.xml | |
204 | %{_datadir}/katexmltools/language.dtd.xml | |
205 | %{_datadir}/katexmltools/simplify_dtd.xsl | |
206 | %{_datadir}/katexmltools/testcases.xml | |
207 | %{_datadir}/katexmltools/xhtml1-frameset.dtd.xml | |
208 | %{_datadir}/katexmltools/xhtml1-strict.dtd.xml | |
209 | %{_datadir}/katexmltools/xhtml1-transitional.dtd.xml | |
210 | %{_datadir}/katexmltools/xslt-1.0.dtd.xml | |
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* | |
219 | %{_mandir}/ru/man1/kate.1* | |
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 | %{_libdir}/qt5/plugins/ktexteditor/katecolorpickerplugin.so | |
225 | %{_libdir}/qt5/plugins/ktexteditor/kategitblameplugin.so | |
226 | %{_libdir}/qt5/plugins/ktexteditor/rainbowparens.so | |
227 | %{_libdir}/libkateprivate.so.*.*.* | |
228 | %{_iconsdir}/hicolor/150x150/apps/kwrite.png | |
229 | %{_iconsdir}/hicolor/256x256/apps/kwrite.png | |
230 | %{_iconsdir}/hicolor/310x310/apps/kwrite.png | |
231 | %{_iconsdir}/hicolor/44x44/apps/kwrite.png | |
232 | %{_iconsdir}/hicolor/512x512/apps/kwrite.png | |
233 | %{_iconsdir}/hicolor/scalable/apps/kwrite.svg | |
234 | %{_libdir}/qt5/plugins/ktexteditor/keyboardmacrosplugin.so | |
235 | %{_datadir}/kconf_update/katesession_migration.upd | |
236 | %attr(755,root,root) %{_datadir}/kconf_update/migrate_kate_sessions_applet_to_kdeplasma-addons.sh |