cherrytree-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Summary: CherryTree - note taking application
  2. Summary(ja): CherryTree - ノート作成アプリケーション
  3. Name: cherrytree
  4. Version: 0.9.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Productivity
  8. URL: http://open.vitaminap.it/en/cherrytree.htm
  9. Source0: %{name}_%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: ImageMagick
  13. Requires: python
  14. Requires: pygtk2
  15. Requires: gtksourceview2
  16. Requires: pygtksourceview
  17. #Obsoletes: %name < %version
  18. %description
  19. A hierarchical note taking application, featuring rich text and syntax highlighting.
  20. Features:
  21. - rich text (foreground color, background color and bold)
  22. - syntax highlighting (only when the rich text is disabled in the current node)
  23. - find a node, find in current node, find in all nodes
  24. - replace in node names, replace in current node, replace in all nodes
  25. - iteration of the latest find, iteration of the latest replace
  26. %description -l ja
  27. 階層型ノートの作成アプリケーションで、リッチテキストや構文の強調表示を備えています。
  28. 特長:
  29. - リッチテキスト(前景色、背景色、太字)
  30. - 構文の強調表示(現在のノードではリッチテキストの場合だけ無効)
  31. - ノードの検出、現在のノードからの検索、すべてのノードからの検索
  32. - ノードの名前の置換、現在のノードで置換、すべてのノードで置換
  33. - 最新の検索・置換の繰り返し
  34. %prep
  35. %setup -q -n %{name}
  36. %build
  37. %install
  38. rm -rf %{buildroot}
  39. %__install -dm 755 %{buildroot}%{_bindir}
  40. %__install -m 755 %{name} %{buildroot}%{_bindir}
  41. %__install -dm 755 %{buildroot}%{_datadir}/%{name}
  42. cp -R glade %{buildroot}%{_datadir}/%{name}
  43. %__install -dm 755 %{buildroot}%{_datadir}/mime-info
  44. %__install -dm 755 %{buildroot}%{_datadir}/mime/packages/
  45. %__install -dm 755 %{buildroot}%{_datadir}/application-registry
  46. %__install -dm 755 %{buildroot}%{_datadir}/applications
  47. %__install -dm 755 %{buildroot}%{_datadir}/pixmaps
  48. cp -R modules %{buildroot}%{_datadir}/%{name}/modules
  49. %__install -m 644 glade/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
  50. convert %{buildroot}%{_datadir}/pixmaps/%{name}.png -resize 48x48 %{buildroot}%{_datadir}/pixmaps/%{name}.png
  51. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  52. cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop << EOF
  53. [Desktop Entry]
  54. Encoding=UTF-8
  55. Name=CherryTree
  56. Comment=Tree-way Notes Keeper
  57. Comment[ja]=階層型ノートの作成
  58. Exec=cherrytree %f
  59. Icon=cherrytree
  60. MimeType=text/cherrytree-ctd;
  61. Terminal=false
  62. Type=Application
  63. StartupNotify=true
  64. Categories=GNOME;GTK;Office;
  65. EOF
  66. #remove
  67. rm -f %{buildroot}/%{_datadir}/%{name}/glade/*.desktop
  68. rm -f %{buildroot}/%{_datadir}/%{name}/glade/README
  69. %clean
  70. rm -rf %{buildroot}
  71. %post
  72. update-desktop-database %{_datadir}/applications
  73. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  74. %postun
  75. update-desktop-database %{_datadir}/applications
  76. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  77. %files
  78. %defattr(-,root,root)
  79. %{_bindir}/%{name}
  80. %{_datadir}/pixmaps/%{name}.png
  81. %{_datadir}/%{name}
  82. %{_datadir}/application-registry
  83. %{_datadir}/mime-info
  84. %{_datadir}/mime/packages
  85. %{_datadir}/applications/*.desktop
  86. %changelog
  87. * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.3-1
  88. - new upstream release
  89. - applied new naming policy to spec
  90. * Sun Mar 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.2-1
  91. - new upstream release
  92. - added BuildRequires: ImageMagick
  93. * Wed Feb 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.1-1
  94. - new upstream release
  95. * Mon Feb 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9-1
  96. - new upstream release
  97. * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-2
  98. - rebuilt with python-2.6.4
  99. * Thu Jan 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.3-1
  100. - new upstream release
  101. * Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.2-1
  102. - new upstream release
  103. * Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-1
  104. - new upstream release
  105. * Fri Dec 18 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8-1
  106. - initial build for Vine Linux
  107. * Sun Dec 13 2009 slick50 <lxgator@gmail.com> 0.7.1-1pclos2010
  108. - 0.7.1
  109. * Sat Dec 12 2009 slick50 <lxgator@gmail.com> 0.7-1pclos2010
  110. - 0.7
  111. * Tue Dec 08 2009 slick50 <lxgator@gmail.com> 0.6.3-1pclos2010
  112. - 0.6.3
  113. * Fri Dec 05 2009 slick50 <lxgator@gmail.com> 0.6.2-1pclos2010
  114. - 0.6.2
  115. * Thu Nov 26 2009 slick50 <lxgator@gmail.com> 0.6-1pclos2010
  116. - 0.6
  117. * Fri Nov 20 2009 slick50 <lxgator@gmail.com> 0.5.1-1pclos2010
  118. - 0.5.1
  119. * Thu Nov 19 2009 slick50 <lxgator@gmail.com> 0.5-1pclos2010
  120. - 0.5
  121. * Thu Nov 12 2009 slick50 <lxgator@gmail.com> 0.4-1pclos2010
  122. - 0.4
  123. * Thu Nov 05 2009 slick50 <lxgator@gmail.com> 0.3-1pclos2010
  124. - 0.3
  125. * Fri Oct 30 2009 slick50 <lxgator@gmail.com> 0.2-1pclos2010
  126. - 0.2
  127. * Fri Oct 16 2009 Texstar <texstar at gmail.com> 0.1-2pclos2010
  128. - add missing dependency gnome-python-gtksourceview
  129. * Wed Oct 14 2009 slick50 <lxgator@gmail.com> 0.1-1pclos2010
  130. - initial pkg