source: projects/specs/trunk/c/cherrytree/cherrytree-vl.spec @ 4811

Revision 4811, 6.8 KB checked in by kudoh, 13 years ago (diff)

%{!?python_sitelib: %define python_sitelib %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Summary: CherryTree? - note taking application
Summary(ja): CherryTree? - ノート作成アプリケーション
Name: cherrytree
Version: 0.23.1
Release: 1%{?_dist_release}
License: GPLv2+
Group: Applications/Productivity?
URL:  http://www.giuspen.com/cherrytree/
Source0: %{name}-%{version}.tar.gz
#Patch0: setup.patch

BuildRoot?: %{_tmppath}/%{name}-%{version}-root
BuildArch?: noarch

BuildRequires?: desktop-file-utils
BuildRequires?: gettext
BuildRequires?: python
BuildRequires?: python-devel
BuildRequires?: python-setuptools
Requires: cairo
Requires: pango
Requires: python
Requires: pygtk2
Requires: gtksourceview2
Requires: pygtksourceview

#Obsoletes: %name < %version

%description
A hierarchical note taking application, featuring rich text and syntax highlighting.
Features:

  • rich text (foreground color, background color and bold)
  • syntax highlighting (only when the rich text is disabled in the current node)
  • find a node, find in current node, find in all nodes
  • replace in node names, replace in current node, replace in all nodes
  • iteration of the latest find, iteration of the latest replace

%description -l ja
階層型ノートの作成アプリケーションで、リッチテキストや構文の強調表示を備えています。
特長:

  • リッチテキスト(前景色、背景色、太字)
  • 構文の強調表示(現在のノードではリッチテキストの場合だけ無効)
  • ノードの検出、現在のノードからの検索、すべてのノードからの検索
  • ノードの名前の置換、現在のノードで置換、すべてのノードで置換
  • 最新の検索・置換の繰り返し

%prep
%setup -q
#%patch0 -p1
#chmod +x setup.py

sed -i 's|Comment=Hierarchical Note Taking|Comment=Hierarchical Note Taking\nComment[ja]=階層型ノートの作成|g' \

linux/cherrytree.desktop

%build

%install
rm -rf $RPM_BUILD_ROOT
%{python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}

desktop-file-install --vendor="" \

--add-category="Utility" \
--dir %{buildroot}%_datadir/applications \

%{buildroot}%_datadir/applications/%{name}.desktop

%find_lang %{name}

%clean
rm -rf %{buildroot}

%post
update-desktop-database %{_datadir}/applications

gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
:

%postun
update-desktop-database %{_datadir}/applications

gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
:

%files -f %{name}.lang
%defattr(-,root,root)
%doc license
%{_bindir}/%{name}
%{_datadir}/application-registry/
%{_datadir}/applications/
%{_datadir}/%{name}
%{_datadir}/icons/
%{_datadir}/mime/packages/
%{_datadir}/mime-info/
%{python_sitelib}/*

%changelog

  • Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.23.1-1
  • new upstream release
  • Wed Sep 07 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.23-1
  • new upstream release
  • Wed Jul 20 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.22.2-1
  • new upstream release
  • Wed Jul 06 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.22.1-1
  • new upstream release
  • Sun Jun 12 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.22-1
  • new upstream release
  • added BuildRequires?: desktop-file-utils, python-setuptools
  • Wed May 4 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.21.3-1
  • new upstream release
  • Fri Apr 29 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.21.1-1
  • new upstream release
  • Tue Jan 18 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.19.3-1
  • new upstream release
  • Thu Jan 14 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.19.1-1
  • new upstream release
  • Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.18.1-1
  • new upstream release
  • used python macro
  • Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.17.1-1
  • new upstream release
  • Thu Dec 2 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.16-1
  • new upstream release
  • dropt Patch0
  • Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.15-1
  • new upstream release
  • deleted unnecessary code in patch0
  • Mon Sep 20 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.14.2-1
  • new upstream release
  • Wed Sep 15 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.14.1-1
  • new upstream release
  • recreated patch0
  • Thu Sep 2 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.14-1
  • new upstream release
  • Fri Aug 20 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.13-1
  • new upstream release
  • Tue Jul 20 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.12-1
  • new upstream release
  • Tue Jul 6 2010 Toshiharu Kudoh <toshi.kd2@…> 0.11-1
  • new upstream release
  • changed URL
  • added patch0 to work around install error
  • dropt BuildRequires?: ImageMagick?
  • added BuildRequires?: python, python-devel
  • modified install process
    • use setup.py in source
    • modified %%files
    • changed category to 'Utility'
  • Sun Jun 6 2010 Toshiharu Kudoh <toshi.kd2@…> 0.10-1
  • new upstream release
  • added Requires: cairo, pango
  • Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@…> 0.9.6-1
  • new upstream release
  • Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@…> 0.9.3-1
  • new upstream release
  • applied new naming policy to spec
  • Wed Feb 17 2010 Toshiharu Kudoh <toshi.kd2@…> 0.9.1-1
  • new upstream release
  • Mon Feb 15 2010 Toshiharu Kudoh <toshi.kd2@…> 0.9-1
  • new upstream release
  • Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.8.3-2
  • rebuilt with python-2.6.4
  • Thu Jan 21 2010 Toshiharu Kudoh <toshi.kd2@…> 0.8.3-1
  • new upstream release
  • Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@…> 0.8.2-1
  • new upstream release
  • Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@…> 0.8.1-1
  • new upstream release
  • Fri Dec 18 2009 Toshiharu Kudoh <toshi.kd2@…> 0.8-1
  • initial build for Vine Linux
  • Sun Dec 13 2009 slick50 <lxgator@…> 0.7.1-1pclos2010
  • 0.7.1
  • Sat Dec 12 2009 slick50 <lxgator@…> 0.7-1pclos2010
  • 0.7
  • Tue Dec 08 2009 slick50 <lxgator@…> 0.6.3-1pclos2010
  • 0.6.3
  • Fri Dec 05 2009 slick50 <lxgator@…> 0.6.2-1pclos2010
  • 0.6.2
  • Thu Nov 26 2009 slick50 <lxgator@…> 0.6-1pclos2010
  • 0.6
  • Fri Nov 20 2009 slick50 <lxgator@…> 0.5.1-1pclos2010
  • 0.5.1
  • Thu Nov 19 2009 slick50 <lxgator@…> 0.5-1pclos2010
  • 0.5
  • Thu Nov 12 2009 slick50 <lxgator@…> 0.4-1pclos2010
  • 0.4
  • Thu Nov 05 2009 slick50 <lxgator@…> 0.3-1pclos2010
  • 0.3
  • Fri Oct 30 2009 slick50 <lxgator@…> 0.2-1pclos2010
  • 0.2
  • Fri Oct 16 2009 Texstar <texstar at gmail.com> 0.1-2pclos2010
  • add missing dependency gnome-python-gtksourceview
  • Wed Oct 14 2009 slick50 <lxgator@…> 0.1-1pclos2010
  • initial pkg
Line 
1%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3Summary:   CherryTree - note taking application
4Summary(ja): CherryTree - ノート作成アプリケーション
5Name:      cherrytree
6Version:   0.23.1
7Release:   1%{?_dist_release}
8License:   GPLv2+
9Group:     Applications/Productivity
10URL:       http://www.giuspen.com/cherrytree/
11Source0:   %{name}-%{version}.tar.gz
12#Patch0: setup.patch
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildArch: noarch
16
17BuildRequires:  desktop-file-utils
18BuildRequires:  gettext
19BuildRequires:  python
20BuildRequires:  python-devel
21BuildRequires:  python-setuptools
22Requires:  cairo
23Requires:  pango
24Requires:  python
25Requires:  pygtk2
26Requires:  gtksourceview2
27Requires:  pygtksourceview
28
29#Obsoletes: %name < %version
30
31%description
32A hierarchical note taking application, featuring rich text and syntax highlighting.
33Features:
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
50%setup -q
51#%patch0 -p1
52#chmod +x setup.py
53
54sed -i 's|Comment=Hierarchical Note Taking|Comment=Hierarchical Note Taking\nComment[ja]=階層型ノートの作成|g' \
55       linux/cherrytree.desktop
56
57%build
58
59%install
60rm -rf $RPM_BUILD_ROOT
61%{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
62
63desktop-file-install --vendor="" \
64            --add-category="Utility" \
65            --dir %{buildroot}%_datadir/applications \
66                  %{buildroot}%_datadir/applications/%{name}.desktop
67
68%find_lang %{name}
69
70%clean
71rm -rf %{buildroot}
72
73%post
74update-desktop-database %{_datadir}/applications
75gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
76
77%postun
78update-desktop-database %{_datadir}/applications
79gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
80
81
82%files -f %{name}.lang
83%defattr(-,root,root)
84%doc license
85%{_bindir}/%{name}
86%{_datadir}/application-registry/
87%{_datadir}/applications/
88%{_datadir}/%{name}
89%{_datadir}/icons/
90%{_datadir}/mime/packages/
91%{_datadir}/mime-info/
92%{python_sitelib}/*
93
94
95%changelog
96* Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.23.1-1
97- new upstream release
98
99* Wed Sep 07 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.23-1
100- new upstream release
101
102* Wed Jul 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.22.2-1
103- new upstream release
104
105* Wed Jul 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.22.1-1
106- new upstream release
107
108* Sun Jun 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.22-1
109- new upstream release
110- added BuildRequires: desktop-file-utils, python-setuptools
111
112* Wed May 4 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.21.3-1
113- new upstream release
114
115* Fri Apr 29 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.21.1-1
116- new upstream release
117
118* Tue Jan 18 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.19.3-1
119- new upstream release
120
121* Thu Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.19.1-1
122- new upstream release
123
124* Sun Jan 2 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.18.1-1
125- new upstream release
126- used python macro
127
128* Sat Dec 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.17.1-1
129- new upstream release
130
131* Thu Dec 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.16-1
132- new upstream release
133- dropt Patch0
134
135* Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15-1
136- new upstream release
137- deleted unnecessary code in patch0
138
139* Mon Sep 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.2-1
140- new upstream release
141
142* Wed Sep 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.1-1
143- new upstream release
144- recreated patch0
145
146* Thu Sep 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14-1
147- new upstream release
148
149* Fri Aug 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13-1
150- new upstream release
151
152* Tue Jul 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.12-1
153- new upstream release
154
155* Tue Jul 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.11-1
156- new upstream release
157- changed URL
158- added patch0 to work around install error
159- dropt BuildRequires: ImageMagick
160- added BuildRequires: python, python-devel
161- modified install process
162  - use setup.py in source
163  - modified %%files
164  - changed category to 'Utility'
165
166* Sun Jun 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10-1
167- new upstream release
168- added Requires: cairo, pango
169
170* Tue May 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.6-1
171- new upstream release
172
173* Sat Mar 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.3-1
174- new upstream release
175- applied new naming policy to spec
176
177* Sun Mar 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.2-1
178- new upstream release
179- added BuildRequires: ImageMagick
180
181* Wed Feb 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.1-1
182- new upstream release
183
184* Mon Feb 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9-1
185- new upstream release
186
187* Sat Feb 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-2
188- rebuilt with python-2.6.4
189
190* Thu Jan 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.3-1
191- new upstream release
192
193* Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.2-1
194- new upstream release
195
196* Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-1
197- new upstream release
198
199* Fri Dec 18 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8-1
200- initial build for Vine Linux
201
202* Sun Dec 13 2009 slick50 <lxgator@gmail.com> 0.7.1-1pclos2010
203- 0.7.1
204
205* Sat Dec 12 2009 slick50 <lxgator@gmail.com> 0.7-1pclos2010
206- 0.7
207
208* Tue Dec 08 2009 slick50 <lxgator@gmail.com> 0.6.3-1pclos2010
209- 0.6.3
210
211* Fri Dec 05 2009 slick50 <lxgator@gmail.com> 0.6.2-1pclos2010
212- 0.6.2
213
214* Thu Nov 26 2009 slick50 <lxgator@gmail.com> 0.6-1pclos2010
215- 0.6
216
217* Fri Nov 20 2009 slick50 <lxgator@gmail.com> 0.5.1-1pclos2010
218- 0.5.1
219
220* Thu Nov 19 2009 slick50 <lxgator@gmail.com> 0.5-1pclos2010
221- 0.5
222
223* Thu Nov 12 2009 slick50 <lxgator@gmail.com> 0.4-1pclos2010
224- 0.4
225
226* Thu Nov 05 2009 slick50 <lxgator@gmail.com> 0.3-1pclos2010
227- 0.3
228
229* Fri Oct 30 2009 slick50 <lxgator@gmail.com> 0.2-1pclos2010
230- 0.2
231
232* Fri Oct 16 2009 Texstar <texstar at gmail.com> 0.1-2pclos2010
233- add missing dependency gnome-python-gtksourceview
234
235* Wed Oct 14 2009 slick50 <lxgator@gmail.com> 0.1-1pclos2010
236- initial pkg
237
Note: See TracBrowser for help on using the repository browser.