kate-vl.spec 7.0 KB

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