cherrytree-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Summary: CherryTree - note taking application
  3. Summary(ja): CherryTree - ノート作成アプリケーション
  4. Name: cherrytree
  5. Version: 0.19.3
  6. Release: 1%{?_dist_release}
  7. License: GPLv2+
  8. Group: Applications/Productivity
  9. URL: http://www.giuspen.com/cherrytree/
  10. Source0: %{name}-%{version}.tar.gz
  11. #Patch0: setup.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: gettext
  15. BuildRequires: python
  16. BuildRequires: python-devel
  17. Requires: cairo
  18. Requires: pango
  19. Requires: python
  20. Requires: pygtk2
  21. Requires: gtksourceview2
  22. Requires: pygtksourceview
  23. #Obsoletes: %name < %version
  24. %description
  25. A hierarchical note taking application, featuring rich text and syntax highlighting.
  26. Features:
  27. - rich text (foreground color, background color and bold)
  28. - syntax highlighting (only when the rich text is disabled in the current node)
  29. - find a node, find in current node, find in all nodes
  30. - replace in node names, replace in current node, replace in all nodes
  31. - iteration of the latest find, iteration of the latest replace
  32. %description -l ja
  33. 階層型ノートの作成アプリケーションで、リッチテキストや構文の強調表示を備えています。
  34. 特長:
  35. - リッチテキスト(前景色、背景色、太字)
  36. - 構文の強調表示(現在のノードではリッチテキストの場合だけ無効)
  37. - ノードの検出、現在のノードからの検索、すべてのノードからの検索
  38. - ノードの名前の置換、現在のノードで置換、すべてのノードで置換
  39. - 最新の検索・置換の繰り返し
  40. %prep
  41. %setup -q
  42. #%patch0 -p1
  43. #chmod +x setup.py
  44. sed -i 's|Comment=Hierarchical Note Taking|Comment=Hierarchical Note Taking\nComment[ja]=階層型ノートの作成|g' \
  45. linux/cherrytree.desktop
  46. %build
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. %{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
  50. desktop-file-install --vendor="" \
  51. --add-category="Utility" \
  52. --dir %{buildroot}%_datadir/applications \
  53. %{buildroot}%_datadir/applications/%{name}.desktop
  54. %find_lang %{name}
  55. %clean
  56. rm -rf %{buildroot}
  57. %post
  58. update-desktop-database %{_datadir}/applications
  59. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  60. %postun
  61. update-desktop-database %{_datadir}/applications
  62. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  63. %files -f %{name}.lang
  64. %defattr(-,root,root)
  65. %doc license
  66. %{_bindir}/%{name}
  67. %{_datadir}/application-registry/
  68. %{_datadir}/applications/
  69. %{_datadir}/%{name}
  70. %{_datadir}/icons/
  71. %{_datadir}/mime/packages/
  72. %{_datadir}/mime-info/
  73. %{python_sitelib}/*
  74. %changelog
  75. * Tue Jan 18 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.19.3-1
  76. - new upstream release
  77. * Thu Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.19.1-1
  78. - new upstream release
  79. * Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.18.1-1
  80. - new upstream release
  81. - used python macro
  82. * Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.17.1-1
  83. - new upstream release
  84. * Thu Dec 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.16-1
  85. - new upstream release
  86. - dropt Patch0
  87. * Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15-1
  88. - new upstream release
  89. - deleted unnecessary code in patch0
  90. * Mon Sep 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.2-1
  91. - new upstream release
  92. * Wed Sep 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.1-1
  93. - new upstream release
  94. - recreated patch0
  95. * Thu Sep 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14-1
  96. - new upstream release
  97. * Fri Aug 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13-1
  98. - new upstream release
  99. * Tue Jul 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12-1
  100. - new upstream release
  101. * Tue Jul 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.11-1
  102. - new upstream release
  103. - changed URL
  104. - added patch0 to work around install error
  105. - dropt BuildRequires: ImageMagick
  106. - added BuildRequires: python, python-devel
  107. - modified install process
  108. - use setup.py in source
  109. - modified %%files
  110. - changed category to 'Utility'
  111. * Sun Jun 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10-1
  112. - new upstream release
  113. - added Requires: cairo, pango
  114. * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.6-1
  115. - new upstream release
  116. * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.3-1
  117. - new upstream release
  118. - applied new naming policy to spec
  119. * Sun Mar 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.2-1
  120. - new upstream release
  121. - added BuildRequires: ImageMagick
  122. * Wed Feb 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.1-1
  123. - new upstream release
  124. * Mon Feb 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9-1
  125. - new upstream release
  126. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-2
  127. - rebuilt with python-2.6.4
  128. * Thu Jan 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.3-1
  129. - new upstream release
  130. * Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.2-1
  131. - new upstream release
  132. * Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-1
  133. - new upstream release
  134. * Fri Dec 18 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8-1
  135. - initial build for Vine Linux
  136. * Sun Dec 13 2009 slick50 <lxgator@gmail.com> 0.7.1-1pclos2010
  137. - 0.7.1
  138. * Sat Dec 12 2009 slick50 <lxgator@gmail.com> 0.7-1pclos2010
  139. - 0.7
  140. * Tue Dec 08 2009 slick50 <lxgator@gmail.com> 0.6.3-1pclos2010
  141. - 0.6.3
  142. * Fri Dec 05 2009 slick50 <lxgator@gmail.com> 0.6.2-1pclos2010
  143. - 0.6.2
  144. * Thu Nov 26 2009 slick50 <lxgator@gmail.com> 0.6-1pclos2010
  145. - 0.6
  146. * Fri Nov 20 2009 slick50 <lxgator@gmail.com> 0.5.1-1pclos2010
  147. - 0.5.1
  148. * Thu Nov 19 2009 slick50 <lxgator@gmail.com> 0.5-1pclos2010
  149. - 0.5
  150. * Thu Nov 12 2009 slick50 <lxgator@gmail.com> 0.4-1pclos2010
  151. - 0.4
  152. * Thu Nov 05 2009 slick50 <lxgator@gmail.com> 0.3-1pclos2010
  153. - 0.3
  154. * Fri Oct 30 2009 slick50 <lxgator@gmail.com> 0.2-1pclos2010
  155. - 0.2
  156. * Fri Oct 16 2009 Texstar <texstar at gmail.com> 0.1-2pclos2010
  157. - add missing dependency gnome-python-gtksourceview
  158. * Wed Oct 14 2009 slick50 <lxgator@gmail.com> 0.1-1pclos2010
  159. - initial pkg