]>
Commit | Line | Data |
---|---|---|
a9330721 AM |
1 | # TODO: |
2 | # /usr/lib64/python2.7/site-packages/PyKate4/__init__.py | |
3 | # /usr/lib64/python2.7/site-packages/PyKate4/kate.so | |
4 | # /usr/share/kde4/services/pate.desktop | |
5 | ||
853c5da9 AM |
6 | %define _state stable |
7 | %define orgname kate | |
634c4a8c | 8 | %define qtver 4.8.3 |
853c5da9 AM |
9 | |
10 | Summary: K Desktop Environment - Advanced Text Editor | |
11 | Summary(pl.UTF-8): K Desktop Environment - Zaawansowany edytor tekstu | |
a142a57e | 12 | Name: kde4-kate |
d66332b8 | 13 | Version: 4.14.3 |
0ef29e8a | 14 | Release: 4 |
853c5da9 AM |
15 | License: GPL |
16 | Group: X11/Applications/Editors | |
a82bca4d | 17 | Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz |
d66332b8 | 18 | # Source0-md5: 14da162cc650075cfb364fd39e64924d |
0ef29e8a | 19 | Patch0: cxx.patch |
853c5da9 | 20 | URL: http://www.kde.org/ |
d57b32ba | 21 | BuildRequires: kde4-kdelibs-devel >= %{version} |
bb67c910 | 22 | BuildRequires: python-PyKDE4-devel >= %{version} |
0ef29e8a | 23 | BuildRequires: sip-PyQt4 |
d57b32ba | 24 | BuildRequires: shared-mime-info |
bb67c910 | 25 | Obsoletes: kate <= 4.8.0 |
df236a49 AM |
26 | Obsoletes: kde4-kdebase-kwrite < 4.6.99 |
27 | Obsoletes: kde4-kdesdk-kate < 4.6.99 | |
853c5da9 AM |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | KDE advanced text editor featuring among others: | |
32 | - fast opening/editing of files even the big ones (opens a 50MB file | |
33 | in a few seconds) | |
34 | - powerful syntaxhighlighting engine, extensible via XML files | |
35 | - Code Folding capabilities for C++, C, PHP and more | |
36 | - Dynamic Word Wrap - long lines are wrapped at the window border on | |
37 | the fly for better overview | |
38 | - multiple views allows you to view more instances of the same | |
39 | document and/or more documents at one time | |
40 | - support for different encodings globally and at write time | |
41 | - built in dockable terminal emulation | |
42 | - sidebars with a list of open documents, a directory viewer with a | |
43 | directory chooser, a filter chooser and more | |
44 | - a plugin interface to allow third party plugins | |
45 | - a "Filter" command allows you to run selected text through a shell | |
46 | command | |
47 | ||
48 | KWrite is a simple texteditor, with syntaxhighlighting, codefolding, | |
49 | dynamic word wrap and more, it's the lightweight version of Kate, | |
50 | providing more speed for minor tasks. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Kate (KDE advanced text editor) to zaawansowany edytor tekstu KDE o | |
54 | możliwościach obejmujących m.in.: | |
55 | - szybkie otwieranie i edycję nawet dużych plików (otwiera plik 50MB w | |
56 | parę sekund) | |
57 | - potężny silnik podświetlania składni, rozszerzalny za pomocą plików | |
58 | XML | |
59 | - możliwość zwijania kodu dla C++, C, PHP i innych języków | |
60 | - dynamiczne zawijanie wierszy - długie linie są zawijane na granicy | |
61 | okna w locie dla lepszej widoczności | |
62 | - wiele widoków pozwalających oglądać więcej instancji tego samego | |
63 | dokumentu i/lub więcej dokumentów w tym samym czasie | |
64 | - obsługę różnych kodowań globalnie i w czasie zapisu | |
65 | - wbudowaną emulację dokowalnego terminala | |
66 | - paski z listą otwartych dokumentów, przeglądarkę katalogów z | |
67 | możliwością wybierania katalogu i filtrów | |
68 | - interfejs wtyczek obsługujący zewnętrzne wtyczki | |
69 | - polecenie "Filtr" pozwalające przepuszczać zaznaczony tekst przez | |
70 | polecenie powłoki | |
71 | ||
72 | KWrite to prosty edytor tekstu z podświetlaniem składni, zwijaniem | |
73 | kodu, dynamicznym zawijaniem wierszy itp. Jest lżejszą wersją Kate, | |
74 | szybszą dla mniejszych zadań. | |
75 | ||
76 | %package devel | |
77 | Summary: kate development files | |
78 | Summary(pl.UTF-8): Pliki dla programistów kate | |
79 | Group: X11/Development/Libraries | |
80 | Requires: %{name} = %{version}-%{release} | |
6c2b3d3a | 81 | Obsoletes: kate-devel <= 4.8.0 |
853c5da9 AM |
82 | |
83 | %description devel | |
84 | kate development files. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Pliki dla programistów kate. | |
88 | ||
89 | %prep | |
90 | %setup -q -n %{orgname}-%{version} | |
0ef29e8a | 91 | %patch0 -p1 |
853c5da9 AM |
92 | |
93 | %build | |
94 | install -d build | |
95 | cd build | |
96 | %cmake \ | |
97 | .. | |
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} -C build/ install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT \ | |
105 | kde_htmldir=%{_kdedocdir} | |
106 | ||
107 | %find_lang kate --with-kde | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
a142a57e | 115 | %files -f %{orgname}.lang |
853c5da9 AM |
116 | %defattr(644,root,root,755) |
117 | %attr(755,root,root) %{_bindir}/kate | |
da27f5f8 | 118 | #%attr(755,root,root) %{_bindir}/ktesnippets_editor |
853c5da9 AM |
119 | %attr(755,root,root) %{_bindir}/kwrite |
120 | %attr(755,root,root) %{_libdir}/kde4/*.so | |
121 | %attr(755,root,root) %{_libdir}/libkateinterfaces.so | |
122 | %attr(755,root,root) %{_libdir}/libkateinterfaces.so.*.*.* | |
123 | %attr(755,root,root) %ghost %{_libdir}/libkateinterfaces.so.? | |
124 | %attr(755,root,root) %{_libdir}/libkatepartinterfaces.so | |
125 | %attr(755,root,root) %{_libdir}/libkatepartinterfaces.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libkatepartinterfaces.so.? | |
127 | %attr(755,root,root) %{_libdir}/libkdeinit4_kate.so | |
128 | %attr(755,root,root) %{_libdir}/libkdeinit4_kwrite.so | |
bb67c910 AM |
129 | %dir %{py_sitedir}/PyKate4 |
130 | %{py_sitedir}/PyKate4/__init__.py | |
131 | %attr(755,root,root) %{py_sitedir}/PyKate4/kate.so | |
853c5da9 AM |
132 | %{_datadir}/apps/kate |
133 | %{_datadir}/apps/katepart | |
134 | %{_datadir}/apps/katexmltools | |
135 | %{_datadir}/apps/kconf_update/kate-2.4.upd | |
136 | %{_datadir}/apps/ktexteditor_* | |
137 | %{_datadir}/apps/kwrite | |
853c5da9 | 138 | %{_datadir}/config/katemoderc |
853c5da9 | 139 | %{_datadir}/config/katerc |
87af14a7 JR |
140 | %{_datadir}/config/kateschemarc |
141 | %{_datadir}/config/katesyntaxhighlightingrc | |
009ebf5d | 142 | %{_datadir}/config/ktexteditor_codesnippets_core.knsrc |
853c5da9 AM |
143 | %{_datadir}/kde4/services/kate*.desktop |
144 | %{_datadir}/kde4/services/ktexteditor_*.desktop | |
bb67c910 | 145 | %{_datadir}/kde4/services/pate.desktop |
853c5da9 AM |
146 | %{_datadir}/kde4/services/plasma-applet-katesession.desktop |
147 | %{_datadir}/kde4/servicetypes/kateplugin.desktop | |
bb67c910 | 148 | %{_datadir}/kde4/servicetypes/katepythonplugin.desktop |
853c5da9 | 149 | %{_desktopdir}/kde4/kate.desktop |
853c5da9 | 150 | %{_desktopdir}/kde4/kwrite.desktop |
009ebf5d | 151 | %{_iconsdir}/*/*/actions/debug-kategdb.png |
853c5da9 | 152 | %{_iconsdir}/*/*/apps/kate.* |
87af14a7 | 153 | %{_iconsdir}/*/*/apps/ktexteditorautobrace.* |
853c5da9 AM |
154 | %{_kdedocdir}/en/kwrite |
155 | %{_mandir}/man1/kate.1* | |
156 | ||
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
159 | %{_includedir}/kate | |
160 | %{_includedir}/kate_export.h |