[2430] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 2 | |
---|
[521] | 3 | Summary: CherryTree - note taking application |
---|
| 4 | Summary(ja): CherryTree - ノート作成アプリケーション |
---|
| 5 | Name: cherrytree |
---|
[7557] | 6 | Version: 0.29.3 |
---|
[521] | 7 | Release: 1%{?_dist_release} |
---|
| 8 | License: GPLv2+ |
---|
| 9 | Group: Applications/Productivity |
---|
[1283] | 10 | URL: http://www.giuspen.com/cherrytree/ |
---|
[6840] | 11 | Source0: %{name}-%{version}.tar.xz |
---|
[2268] | 12 | #Patch0: setup.patch |
---|
[1283] | 13 | |
---|
[521] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildArch: noarch |
---|
| 16 | |
---|
[4126] | 17 | BuildRequires: desktop-file-utils |
---|
[1157] | 18 | BuildRequires: gettext |
---|
[1283] | 19 | BuildRequires: python |
---|
| 20 | BuildRequires: python-devel |
---|
[4126] | 21 | BuildRequires: python-setuptools |
---|
[1157] | 22 | Requires: cairo |
---|
| 23 | Requires: pango |
---|
[521] | 24 | Requires: python |
---|
| 25 | Requires: pygtk2 |
---|
| 26 | Requires: gtksourceview2 |
---|
| 27 | Requires: pygtksourceview |
---|
| 28 | |
---|
| 29 | #Obsoletes: %name < %version |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | A hierarchical note taking application, featuring rich text and syntax highlighting. |
---|
| 33 | Features: |
---|
| 34 | - rich text (foreground color, background color and bold) |
---|
| 35 | - syntax highlighting (only when the rich text is disabled in the current node) |
---|
| 36 | - find a node, find in current node, find in all nodes |
---|
| 37 | - replace in node names, replace in current node, replace in all nodes |
---|
| 38 | - iteration of the latest find, iteration of the latest replace |
---|
| 39 | |
---|
| 40 | %description -l ja |
---|
| 41 | 階層型ノートの作成アプリケーションで、リッチテキストや構文の強調表示を備えています。 |
---|
| 42 | 特長: |
---|
| 43 | - リッチテキスト(前景色、背景色、太字) |
---|
| 44 | - 構文の強調表示(現在のノードではリッチテキストの場合だけ無効) |
---|
| 45 | - ノードの検出、現在のノードからの検索、すべてのノードからの検索 |
---|
| 46 | - ノードの名前の置換、現在のノードで置換、すべてのノードで置換 |
---|
| 47 | - 最新の検索・置換の繰り返し |
---|
| 48 | |
---|
| 49 | %prep |
---|
[938] | 50 | %setup -q |
---|
[2268] | 51 | #%patch0 -p1 |
---|
[1405] | 52 | #chmod +x setup.py |
---|
[521] | 53 | |
---|
[1283] | 54 | sed -i 's|Comment=Hierarchical Note Taking|Comment=Hierarchical Note Taking\nComment[ja]=階層型ノートの作成|g' \ |
---|
| 55 | linux/cherrytree.desktop |
---|
| 56 | |
---|
[521] | 57 | %build |
---|
| 58 | |
---|
| 59 | %install |
---|
[1283] | 60 | rm -rf $RPM_BUILD_ROOT |
---|
[1805] | 61 | %{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} |
---|
[521] | 62 | |
---|
[1283] | 63 | desktop-file-install --vendor="" \ |
---|
| 64 | --add-category="Utility" \ |
---|
| 65 | --dir %{buildroot}%_datadir/applications \ |
---|
| 66 | %{buildroot}%_datadir/applications/%{name}.desktop |
---|
[521] | 67 | |
---|
[1283] | 68 | %find_lang %{name} |
---|
[521] | 69 | |
---|
| 70 | %clean |
---|
| 71 | rm -rf %{buildroot} |
---|
| 72 | |
---|
| 73 | %post |
---|
| 74 | update-desktop-database %{_datadir}/applications |
---|
| 75 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 76 | |
---|
| 77 | %postun |
---|
| 78 | update-desktop-database %{_datadir}/applications |
---|
| 79 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 80 | |
---|
| 81 | |
---|
[1283] | 82 | %files -f %{name}.lang |
---|
[521] | 83 | %defattr(-,root,root) |
---|
[7351] | 84 | %doc license.txt |
---|
[521] | 85 | %{_bindir}/%{name} |
---|
[1283] | 86 | %{_datadir}/application-registry/ |
---|
| 87 | %{_datadir}/applications/ |
---|
[521] | 88 | %{_datadir}/%{name} |
---|
[1283] | 89 | %{_datadir}/icons/ |
---|
| 90 | %{_datadir}/mime/packages/ |
---|
| 91 | %{_datadir}/mime-info/ |
---|
[5404] | 92 | %{_mandir}/man1/ |
---|
[2430] | 93 | %{python_sitelib}/* |
---|
[521] | 94 | |
---|
| 95 | |
---|
| 96 | %changelog |
---|
[7557] | 97 | * Sat Mar 16 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.29.3-1 |
---|
| 98 | - new upstream release |
---|
| 99 | |
---|
[7375] | 100 | * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.29.2-1 |
---|
| 101 | - new upstream release |
---|
| 102 | |
---|
[7351] | 103 | * Sat Jan 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.29-1 |
---|
| 104 | - new upstream release |
---|
| 105 | |
---|
[7144] | 106 | * Fri Nov 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.28.5-1 |
---|
| 107 | - new upstream release |
---|
| 108 | |
---|
[7092] | 109 | * Fri Nov 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.28.3-1 |
---|
| 110 | - new upstream release |
---|
| 111 | |
---|
[6914] | 112 | * Tue Oct 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.27.1-1 |
---|
| 113 | - new upstream release |
---|
| 114 | |
---|
[6840] | 115 | * Sat Sep 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.27-1 |
---|
| 116 | - new upstream release |
---|
| 117 | - changed source archive type to xz |
---|
| 118 | |
---|
[7557] | 119 | * Mon Jul 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.26.3-1 |
---|
[6536] | 120 | - new upstream release |
---|
| 121 | |
---|
[6349] | 122 | * Sat Jun 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.26.2-1 |
---|
| 123 | - new upstream release |
---|
| 124 | |
---|
[6294] | 125 | * Fri Jun 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.26.1-1 |
---|
| 126 | - new upstream release |
---|
| 127 | |
---|
[6198] | 128 | * Fri May 18 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.26-1 |
---|
| 129 | - new upstream release |
---|
| 130 | - changed source archive type to bz2 |
---|
| 131 | |
---|
[5772] | 132 | * Sun Feb 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.25.4-1 |
---|
| 133 | - new upstream release |
---|
| 134 | |
---|
[5570] | 135 | * Sun Feb 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.25.3-1 |
---|
| 136 | - new upstream release |
---|
| 137 | |
---|
[5476] | 138 | * Wed Jan 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.25.1-1 |
---|
| 139 | - new upstream release |
---|
| 140 | |
---|
[5404] | 141 | * Sat Jan 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.24-1 |
---|
| 142 | - new upstream release |
---|
| 143 | |
---|
[4811] | 144 | * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.23.1-1 |
---|
| 145 | - new upstream release |
---|
| 146 | |
---|
[4730] | 147 | * Wed Sep 07 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.23-1 |
---|
| 148 | - new upstream release |
---|
| 149 | |
---|
[4354] | 150 | * Wed Jul 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.22.2-1 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
[4278] | 153 | * Wed Jul 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.22.1-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[4126] | 156 | * Sun Jun 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.22-1 |
---|
| 157 | - new upstream release |
---|
| 158 | - added BuildRequires: desktop-file-utils, python-setuptools |
---|
| 159 | |
---|
[3789] | 160 | * Wed May 4 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.21.3-1 |
---|
| 161 | - new upstream release |
---|
| 162 | |
---|
[3725] | 163 | * Fri Apr 29 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.21.1-1 |
---|
| 164 | - new upstream release |
---|
| 165 | |
---|
[2528] | 166 | * Tue Jan 18 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.19.3-1 |
---|
| 167 | - new upstream release |
---|
| 168 | |
---|
[7557] | 169 | * Fri Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.19.1-1 |
---|
[2497] | 170 | - new upstream release |
---|
| 171 | |
---|
[2430] | 172 | * Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.18.1-1 |
---|
| 173 | - new upstream release |
---|
| 174 | - used python macro |
---|
| 175 | |
---|
[2361] | 176 | * Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.17.1-1 |
---|
| 177 | - new upstream release |
---|
| 178 | |
---|
[2268] | 179 | * Thu Dec 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.16-1 |
---|
| 180 | - new upstream release |
---|
| 181 | - dropt Patch0 |
---|
| 182 | |
---|
[2079] | 183 | * Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15-1 |
---|
| 184 | - new upstream release |
---|
| 185 | - deleted unnecessary code in patch0 |
---|
| 186 | |
---|
[1846] | 187 | * Mon Sep 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.2-1 |
---|
| 188 | - new upstream release |
---|
| 189 | |
---|
[1805] | 190 | * Wed Sep 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.1-1 |
---|
| 191 | - new upstream release |
---|
| 192 | - recreated patch0 |
---|
| 193 | |
---|
[1738] | 194 | * Thu Sep 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14-1 |
---|
| 195 | - new upstream release |
---|
| 196 | |
---|
[1608] | 197 | * Fri Aug 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13-1 |
---|
| 198 | - new upstream release |
---|
| 199 | |
---|
[1405] | 200 | * Tue Jul 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12-1 |
---|
| 201 | - new upstream release |
---|
| 202 | |
---|
[1283] | 203 | * Tue Jul 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.11-1 |
---|
| 204 | - new upstream release |
---|
| 205 | - changed URL |
---|
| 206 | - added patch0 to work around install error |
---|
| 207 | - dropt BuildRequires: ImageMagick |
---|
| 208 | - added BuildRequires: python, python-devel |
---|
| 209 | - modified install process |
---|
| 210 | - use setup.py in source |
---|
| 211 | - modified %%files |
---|
| 212 | - changed category to 'Utility' |
---|
| 213 | |
---|
[1157] | 214 | * Sun Jun 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10-1 |
---|
| 215 | - new upstream release |
---|
| 216 | - added Requires: cairo, pango |
---|
| 217 | |
---|
[938] | 218 | * Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.6-1 |
---|
| 219 | - new upstream release |
---|
| 220 | |
---|
[617] | 221 | * Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.3-1 |
---|
| 222 | - new upstream release |
---|
[1157] | 223 | - applied new naming policy to spec |
---|
[617] | 224 | |
---|
[521] | 225 | * Sun Mar 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.2-1 |
---|
| 226 | - new upstream release |
---|
| 227 | - added BuildRequires: ImageMagick |
---|
| 228 | |
---|
| 229 | * Wed Feb 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.1-1 |
---|
| 230 | - new upstream release |
---|
| 231 | |
---|
| 232 | * Mon Feb 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9-1 |
---|
| 233 | - new upstream release |
---|
| 234 | |
---|
| 235 | * Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-2 |
---|
| 236 | - rebuilt with python-2.6.4 |
---|
| 237 | |
---|
| 238 | * Thu Jan 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.3-1 |
---|
| 239 | - new upstream release |
---|
| 240 | |
---|
| 241 | * Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.2-1 |
---|
| 242 | - new upstream release |
---|
| 243 | |
---|
| 244 | * Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-1 |
---|
| 245 | - new upstream release |
---|
| 246 | |
---|
| 247 | * Fri Dec 18 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8-1 |
---|
| 248 | - initial build for Vine Linux |
---|
| 249 | |
---|
| 250 | * Sun Dec 13 2009 slick50 <lxgator@gmail.com> 0.7.1-1pclos2010 |
---|
| 251 | - 0.7.1 |
---|
| 252 | |
---|
| 253 | * Sat Dec 12 2009 slick50 <lxgator@gmail.com> 0.7-1pclos2010 |
---|
| 254 | - 0.7 |
---|
| 255 | |
---|
| 256 | * Tue Dec 08 2009 slick50 <lxgator@gmail.com> 0.6.3-1pclos2010 |
---|
| 257 | - 0.6.3 |
---|
| 258 | |
---|
[7557] | 259 | * Sat Dec 05 2009 slick50 <lxgator@gmail.com> 0.6.2-1pclos2010 |
---|
[521] | 260 | - 0.6.2 |
---|
| 261 | |
---|
| 262 | * Thu Nov 26 2009 slick50 <lxgator@gmail.com> 0.6-1pclos2010 |
---|
| 263 | - 0.6 |
---|
| 264 | |
---|
| 265 | * Fri Nov 20 2009 slick50 <lxgator@gmail.com> 0.5.1-1pclos2010 |
---|
| 266 | - 0.5.1 |
---|
| 267 | |
---|
| 268 | * Thu Nov 19 2009 slick50 <lxgator@gmail.com> 0.5-1pclos2010 |
---|
| 269 | - 0.5 |
---|
| 270 | |
---|
| 271 | * Thu Nov 12 2009 slick50 <lxgator@gmail.com> 0.4-1pclos2010 |
---|
| 272 | - 0.4 |
---|
| 273 | |
---|
| 274 | * Thu Nov 05 2009 slick50 <lxgator@gmail.com> 0.3-1pclos2010 |
---|
| 275 | - 0.3 |
---|
| 276 | |
---|
| 277 | * Fri Oct 30 2009 slick50 <lxgator@gmail.com> 0.2-1pclos2010 |
---|
| 278 | - 0.2 |
---|
| 279 | |
---|
| 280 | * Fri Oct 16 2009 Texstar <texstar at gmail.com> 0.1-2pclos2010 |
---|
| 281 | - add missing dependency gnome-python-gtksourceview |
---|
| 282 | |
---|
| 283 | * Wed Oct 14 2009 slick50 <lxgator@gmail.com> 0.1-1pclos2010 |
---|
| 284 | - initial pkg |
---|
| 285 | |
---|