1 | Name: kate |
---|
2 | Summary: Advanced Text Editor |
---|
3 | Summary(ja): 高機能なテキストエディタ |
---|
4 | Version: 4.10.5 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | # kwrite LGPLv2+ |
---|
8 | # kate: app LGPLv2, plugins, LGPLv2 and LGPLv2+ and GPLv2+ |
---|
9 | # ktexteditor: LGPLv2 |
---|
10 | # katepart: LGPLv2 |
---|
11 | License: LGPLv2 and LGPLv2+ and GPLv2+ |
---|
12 | Group: Applications/Editors |
---|
13 | URL: https://projects.kde.org/projects/kde/kdebase/kate |
---|
14 | |
---|
15 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version} |
---|
18 | BuildRequires: desktop-file-utils |
---|
19 | BuildRequires: kdelibs4-devel >= %{version} |
---|
20 | BuildRequires: kactivities-devel >= %{version} |
---|
21 | BuildRequires: soprano-devel |
---|
22 | BuildRequires: sip-devel |
---|
23 | BuildRequires: python-devel |
---|
24 | BuildRequires: PyQt4-devel |
---|
25 | BuildRequires: PyKDE4-devel |
---|
26 | BuildRequires: qjson-devel |
---|
27 | |
---|
28 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
29 | Requires: %{name}-part = %{version}-%{release} |
---|
30 | Requires: %{name}-libs = %{version}-%{release} |
---|
31 | |
---|
32 | %description |
---|
33 | %{summary}. |
---|
34 | |
---|
35 | %package devel |
---|
36 | Summary: Development files for %{name} |
---|
37 | Summary(ja): %{name} の開発用ファイル |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name}-libs = %{version}-%{release} |
---|
40 | Requires: kdelibs4-devel |
---|
41 | |
---|
42 | %description devel |
---|
43 | %{summary}. |
---|
44 | |
---|
45 | %package libs |
---|
46 | Summary: Runtime files for %{name} |
---|
47 | Summary(ja): %{name} のランタイムライブラリ |
---|
48 | Group: System Environment/Libraries |
---|
49 | # when split occurred |
---|
50 | Conflicts: kdesdk4-libs < 4.6.95-10 |
---|
51 | #Requires: %{name} = %{version}-%{release} |
---|
52 | |
---|
53 | %description libs |
---|
54 | %{summary}. |
---|
55 | |
---|
56 | %package part |
---|
57 | Summary: Kate kpart plugin |
---|
58 | Summary(ja): Kate kpart プラグイン |
---|
59 | License: LGPLv2 |
---|
60 | Group: Applications/Editors |
---|
61 | # when split occurred |
---|
62 | Conflicts: kdelibs4 < 4.6.95-10 |
---|
63 | |
---|
64 | %description part |
---|
65 | %{summary}. |
---|
66 | |
---|
67 | %package -n kwrite |
---|
68 | Summary: Text Editor |
---|
69 | Summary(ja): テキストエディタ |
---|
70 | License: LGPLv2+ |
---|
71 | Group: Applications/Editors |
---|
72 | # when split occurred |
---|
73 | Conflicts: kdebase4 < 4.6.95-10 |
---|
74 | Requires: %{name}-part = %{version}-%{release} |
---|
75 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
76 | |
---|
77 | %description -n kwrite |
---|
78 | %{summary}. |
---|
79 | |
---|
80 | %package pate |
---|
81 | Summary: Kate python plugin |
---|
82 | Summary(ja): Kate python プラグイン |
---|
83 | License: LGPLv2 |
---|
84 | Group: System Environment/Libraries |
---|
85 | |
---|
86 | %description pate |
---|
87 | %{summary}. |
---|
88 | |
---|
89 | %prep |
---|
90 | %setup -q |
---|
91 | |
---|
92 | |
---|
93 | %build |
---|
94 | mkdir -p %{_target_platform} |
---|
95 | pushd %{_target_platform} |
---|
96 | %cmake \ |
---|
97 | -DCMAKE_BUILD_TYPE=release \ |
---|
98 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
99 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
100 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
101 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
102 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
103 | .. |
---|
104 | popd |
---|
105 | |
---|
106 | make %{?_smp_mflags} -C %{_target_platform} |
---|
107 | |
---|
108 | |
---|
109 | %install |
---|
110 | rm -rf $RPM_BUILD_ROOT |
---|
111 | |
---|
112 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
113 | |
---|
114 | # move devel symlinks (that would otherwise conflict with kdelibs3-devel) |
---|
115 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/kde4/devel |
---|
116 | pushd $RPM_BUILD_ROOT%{_libdir} |
---|
117 | for i in lib*.so |
---|
118 | do |
---|
119 | case "$i" in |
---|
120 | libkate*interfaces.so) |
---|
121 | linktarget=`readlink "$i"` |
---|
122 | rm -f "$i" |
---|
123 | ln -sf "../../$linktarget" "kde4/devel/$i" |
---|
124 | ;; |
---|
125 | esac |
---|
126 | done |
---|
127 | popd |
---|
128 | |
---|
129 | ## unpackaged files |
---|
130 | # playground artsticomment -devel bits |
---|
131 | rm -fv $RPM_BUILD_ROOT%{_includedir}/kde4/artisticcomment.h |
---|
132 | rm -fv $RPM_BUILD_ROOT%{_libdir}/libacomment.a |
---|
133 | |
---|
134 | |
---|
135 | %check |
---|
136 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
137 | desktop-file-validate $f |
---|
138 | done |
---|
139 | |
---|
140 | |
---|
141 | %post |
---|
142 | touch --no-create %{_datadir}icons/hicolor &> /dev/null || : |
---|
143 | |
---|
144 | %posttrans |
---|
145 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
146 | update-mime-database %{_datadir}/mime >& /dev/null |
---|
147 | |
---|
148 | %postun |
---|
149 | if [ $1 -eq 0 ] ; then |
---|
150 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
151 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
152 | update-mime-database %{_datadir}/mime >& /dev/null |
---|
153 | fi |
---|
154 | |
---|
155 | %post part -p /sbin/ldconfig |
---|
156 | %postun part -p /sbin/ldconfig |
---|
157 | |
---|
158 | |
---|
159 | %files |
---|
160 | %doc kate/AUTHORS kate/ChangeLog kate/COPYING.LIB kate/README kate/TODO |
---|
161 | %{_bindir}/kate |
---|
162 | %{_libdir}/libkdeinit4_kate.so |
---|
163 | %{_datadir}/applications/kde4/kate.desktop |
---|
164 | %{_datadir}/kde4/apps/kate/ |
---|
165 | %{_datadir}/kde4/apps/katexmltools/ |
---|
166 | %{_datadir}/kde4/apps/kconf_update/kate*.upd |
---|
167 | %{_datadir}/icons/hicolor/*/*/* |
---|
168 | %{_mandir}/man1/kate.1.gz |
---|
169 | %{_datadir}/config/katerc |
---|
170 | %{_datadir}/kde4/services/kate*.desktop |
---|
171 | %{_libdir}/kde4/kate*plugin.so |
---|
172 | %{_libdir}/kde4/katefiletemplates.so |
---|
173 | %{_datadir}/kde4/apps/katepart/ |
---|
174 | %{_datadir}/kde4/apps/ktexteditor_*/ |
---|
175 | %{_datadir}/kde4/services/ktexteditor_*.desktop |
---|
176 | %{_libdir}/kde4/ktexteditor_*.so |
---|
177 | %{_datadir}/kde4/services/plasma-applet-katesession.desktop |
---|
178 | %{_datadir}/kde4/servicetypes/kateplugin.desktop |
---|
179 | %{_libdir}/kde4/plasma_applet_katesession.so |
---|
180 | %{_libdir}/kde4/kate_kttsd.so |
---|
181 | %{_datadir}/config/ktexteditor_codesnippets_core.knsrc |
---|
182 | # these should *probably* be moved to hicolor -- rex |
---|
183 | %{_datadir}/icons/oxygen/*/actions/* |
---|
184 | %{_datadir}/doc/HTML/en/kate/ |
---|
185 | |
---|
186 | %files libs |
---|
187 | %{_libdir}/libkateinterfaces.so.4* |
---|
188 | %{_libdir}/libkatepartinterfaces.so.4* |
---|
189 | |
---|
190 | %files devel |
---|
191 | %{_libdir}/kde4/devel/libkateinterfaces.so |
---|
192 | %{_libdir}/kde4/devel/libkatepartinterfaces.so |
---|
193 | %{_includedir}/kde4/kate_export.h |
---|
194 | %{_includedir}/kde4/kate/ |
---|
195 | |
---|
196 | %files part |
---|
197 | %doc part/AUTHORS part/ChangeLog part/COPYING.LIB |
---|
198 | %doc part/INDENTATION part/NEWS part/README* part/TODO* |
---|
199 | %{_libdir}/kde4/katepart.so |
---|
200 | %{_libdir}/libkatepartinterfaces.so.4* |
---|
201 | %{_datadir}/config/katemoderc |
---|
202 | %{_datadir}/kde4/services/katepart.desktop |
---|
203 | |
---|
204 | %files -n kwrite |
---|
205 | %{_bindir}/kwrite |
---|
206 | %{_datadir}/kde4/apps/kwrite |
---|
207 | %{_libdir}/libkdeinit4_kwrite.so |
---|
208 | %{_datadir}/applications/kde4/kwrite.desktop |
---|
209 | %{_datadir}/doc/HTML/en/kwrite/ |
---|
210 | |
---|
211 | %files pate |
---|
212 | %{_libdir}/kde4/pateplugin.so |
---|
213 | %{python_sitearch}/PyKate4 |
---|
214 | %{_datadir}/config/kateschemarc |
---|
215 | %{_datadir}/config/katesyntaxhighlightingrc |
---|
216 | %{_datadir}/kde4/services/pate.desktop |
---|
217 | |
---|
218 | |
---|
219 | %changelog |
---|
220 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
221 | - new upstream release |
---|
222 | - add BuildRequires: kactivities-devel, sip-devel, python-devel, PyQt4-devel, PyKDE4-devel, qjson-devel |
---|
223 | - create %%{name}-pate subpackage |
---|
224 | |
---|
225 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
226 | - new upstream release |
---|
227 | |
---|
228 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
229 | - new upstream release |
---|
230 | |
---|
231 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
232 | - new upstream release |
---|
233 | |
---|
234 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
235 | - new upstream release |
---|
236 | |
---|
237 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
238 | - new upstream release |
---|
239 | |
---|
240 | * Fri Dec 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
241 | - new upstream release |
---|
242 | |
---|
243 | * Sat Oct 29 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
244 | - new upstream release |
---|
245 | |
---|
246 | * Mon Aug 1 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
247 | - Initial build for Vine Linux |
---|
248 | |
---|
249 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
250 | - 4.7.0 |
---|
251 | |
---|
252 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
253 | - first try |
---|
254 | |
---|