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