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