keepnote-vl.spec 4.3 KB

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