keepnote-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Summary: A note taking application
  3. Summary(ja): ノート作成アプリケーション
  4. Name: keepnote
  5. Version: 0.7.6
  6. Release: 1%{?_dist_release}
  7. Group: Applications/Editors
  8. License: GPLv2+
  9. URL: http://rasm.ods.org/keepnote/
  10. Source0: %{name}/%{name}-%{version}.tar.gz
  11. #Source1: ja_JP.UTF8.po
  12. Patch1: Makefile_gettetxt.patch
  13. Patch2: fix_desktop.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. BuildRequires: python-devel
  17. BuildRequires: python-setuptools
  18. BuildRequires: gtkspell-devel
  19. BuildRequires: desktop-file-utils
  20. # for Japanese language file build
  21. BuildRequires: gettext
  22. BuildRequires: intltool
  23. Requires: pygtk2
  24. Requires: gnome-python-extras
  25. %description
  26. KeepNote is a note taking application that works on Windows, Linux, and Mac OS X.
  27. With KeepNote, you can store your class notes, TODO lists, research notes,
  28. journal entries, paper outlines, etc in a simple notebook hierarchy with
  29. rich-text formatting, images, and more. Using full-text search, you can
  30. retrieve any note for later reference.
  31. %description -l ja
  32. KeepNote は Windows、Linux、Mac OS X で動作するノート作成アプリケーションです。
  33. KeepNote では、あなたの分類ノート、TODO リスト、研究ノート、
  34. 日記のエントリ、新聞の概略などを階層化したリッチテキストフォーマットや
  35. 画像付きなどのシンプルなノートとして保存することができます。
  36. フルテキスト検索を使い、後で参照するために取ったメモを検索できます。
  37. %prep
  38. %setup -q
  39. %patch1 -p1
  40. %patch2 -p1
  41. #%{__cp} -f %{SOURCE1} gettext/ja_JP.UTF8.po
  42. #make -f Makefile.gettext make LANG=ja_JP.UTF8
  43. %build
  44. python setup.py build
  45. %install
  46. rm -rf %{buildroot}
  47. python setup.py install --skip-build --root %{buildroot}
  48. desktop-file-install --vendor="" \
  49. --delete-original \
  50. --add-category="Office;" \
  51. --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
  52. %clean
  53. rm -rf %{buildroot}
  54. %post
  55. touch --no-create %{_datadir}/icons/hicolor || :
  56. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  57. update-desktop-database > /dev/null 2>&1 || :
  58. %postun
  59. touch --no-create %{_datadir}/icons/hicolor || :
  60. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  61. update-desktop-database > /dev/null 2>&1 || :
  62. %files
  63. %defattr(-,root,root,-)
  64. %doc LICENSE README
  65. %{_bindir}/%{name}
  66. %{_datadir}/applications/%{name}.desktop
  67. %{_datadir}/icons/hicolor/48x48/apps/keepnote.png
  68. %{python_sitelib}/*
  69. %changelog
  70. * Wed Nov 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.6-1
  71. - new upstream release
  72. - added patch2 to fix desktop file
  73. * Mon Sep 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.5-1
  74. - new upstream release
  75. * Thu Jul 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.4-1
  76. - new upstream release
  77. * Wed May 18 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  78. - new upstream release
  79. - dropt source1
  80. - merged upstream
  81. * Tue Jan 25 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.8-1
  82. - new upstream release
  83. * Tue Dec 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.7-1
  84. - new upstream release
  85. - re-added source1
  86. - fixed .desktop file a little
  87. - used python macro
  88. * Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
  89. - new upstream release
  90. - added BuildRequires: gettext, intltool
  91. * Sun Aug 1 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
  92. - new upstream release
  93. * Wed Jul 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
  94. - new upstream release
  95. - dropt source1
  96. - merged upstream
  97. * Thu May 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.2-2
  98. - updated Source1
  99. - fixed desktop-file-install --add-category section
  100. * Tue Feb 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.2-1
  101. - new upstream release
  102. - updated Source1 and Patch1
  103. * Sat Feb 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-2
  104. - updated Source1
  105. * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  106. - new upstream release
  107. * Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6-2
  108. - added BuildRequires: gtkspell-devel
  109. - updated Source1
  110. * Sat Nov 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6-1
  111. - initial build for VineSeed
  112. * Fri Jul 31 2009 Texstar <texstar@gmail.com> 0.5.3-1pclos2009
  113. - create
  114. file:///home/toshi/rpm/SOURCES/keepnote/keepnote-0.7.2/desktop/keepnote.desktop