[4662] | 1 | Name: kate |
---|
| 2 | Summary: Advanced Text Editor |
---|
| 3 | Summary(ja): 高機能なテキストエディタ |
---|
[8056] | 4 | Version: 4.11.4 |
---|
[5059] | 5 | Release: 1%{?_dist_release} |
---|
[4662] | 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 | |
---|
[6725] | 15 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4662] | 16 | |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version} |
---|
| 18 | BuildRequires: desktop-file-utils |
---|
| 19 | BuildRequires: kdelibs4-devel >= %{version} |
---|
[7728] | 20 | BuildRequires: kactivities-devel >= %{version} |
---|
[4662] | 21 | BuildRequires: soprano-devel |
---|
[7728] | 22 | BuildRequires: sip-devel |
---|
| 23 | BuildRequires: python-devel |
---|
| 24 | BuildRequires: PyQt4-devel |
---|
| 25 | BuildRequires: PyKDE4-devel |
---|
| 26 | BuildRequires: qjson-devel |
---|
[4662] | 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 | |
---|
[7728] | 80 | %package pate |
---|
| 81 | Summary: Kate python plugin |
---|
| 82 | Summary(ja): Kate python プラグイン |
---|
| 83 | License: LGPLv2 |
---|
| 84 | Group: System Environment/Libraries |
---|
[4662] | 85 | |
---|
[7728] | 86 | %description pate |
---|
| 87 | %{summary}. |
---|
| 88 | |
---|
[4662] | 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 |
---|
[7728] | 160 | %doc kate/AUTHORS kate/ChangeLog kate/COPYING.LIB kate/README kate/TODO |
---|
[4662] | 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}/doc/HTML/en/kate/ |
---|
| 184 | |
---|
| 185 | %files libs |
---|
| 186 | %{_libdir}/libkateinterfaces.so.4* |
---|
[7728] | 187 | %{_libdir}/libkatepartinterfaces.so.4* |
---|
[4662] | 188 | |
---|
| 189 | %files devel |
---|
| 190 | %{_libdir}/kde4/devel/libkateinterfaces.so |
---|
| 191 | %{_libdir}/kde4/devel/libkatepartinterfaces.so |
---|
| 192 | %{_includedir}/kde4/kate_export.h |
---|
| 193 | %{_includedir}/kde4/kate/ |
---|
| 194 | |
---|
| 195 | %files part |
---|
| 196 | %doc part/AUTHORS part/ChangeLog part/COPYING.LIB |
---|
| 197 | %doc part/INDENTATION part/NEWS part/README* part/TODO* |
---|
| 198 | %{_libdir}/kde4/katepart.so |
---|
| 199 | %{_libdir}/libkatepartinterfaces.so.4* |
---|
| 200 | %{_datadir}/config/katemoderc |
---|
| 201 | %{_datadir}/kde4/services/katepart.desktop |
---|
| 202 | |
---|
| 203 | %files -n kwrite |
---|
| 204 | %{_bindir}/kwrite |
---|
| 205 | %{_datadir}/kde4/apps/kwrite |
---|
| 206 | %{_libdir}/libkdeinit4_kwrite.so |
---|
| 207 | %{_datadir}/applications/kde4/kwrite.desktop |
---|
| 208 | %{_datadir}/doc/HTML/en/kwrite/ |
---|
| 209 | |
---|
[7728] | 210 | %files pate |
---|
| 211 | %{python_sitearch}/PyKate4 |
---|
| 212 | %{_datadir}/config/kateschemarc |
---|
| 213 | %{_datadir}/config/katesyntaxhighlightingrc |
---|
| 214 | %{_datadir}/kde4/services/pate.desktop |
---|
| 215 | |
---|
| 216 | |
---|
[4662] | 217 | %changelog |
---|
[8056] | 218 | * Sun Dec 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 219 | - new upstream release |
---|
| 220 | |
---|
[7801] | 221 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 222 | - new upstream release |
---|
| 223 | |
---|
[7728] | 224 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 225 | - new upstream release |
---|
| 226 | - add BuildRequires: kactivities-devel, sip-devel, python-devel, PyQt4-devel, PyKDE4-devel, qjson-devel |
---|
| 227 | - create %%{name}-pate subpackage |
---|
| 228 | |
---|
[7294] | 229 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 230 | - new upstream release |
---|
| 231 | |
---|
[7105] | 232 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 233 | - new upstream release |
---|
| 234 | |
---|
[6899] | 235 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 236 | - new upstream release |
---|
| 237 | |
---|
[6797] | 238 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 239 | - new upstream release |
---|
| 240 | |
---|
[6725] | 241 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 242 | - new upstream release |
---|
| 243 | |
---|
[5323] | 244 | * Fri Dec 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
| 245 | - new upstream release |
---|
| 246 | |
---|
[5059] | 247 | * Sat Oct 29 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
| 248 | - new upstream release |
---|
| 249 | |
---|
[4662] | 250 | * Mon Aug 1 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
| 251 | - Initial build for Vine Linux |
---|
| 252 | |
---|
| 253 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
| 254 | - 4.7.0 |
---|
| 255 | |
---|
| 256 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
| 257 | - first try |
---|
| 258 | |
---|