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