-
Notifications
You must be signed in to change notification settings - Fork 0
/
cherrytree.spec
344 lines (246 loc) · 11.8 KB
/
cherrytree.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
# get python version
%global py_ver %(if [ -f "%{__python}" ]; then %{__python} -c "import sys; sys.stdout.write(sys.version[:3])"; else echo 0; fi;)
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
Name: cherrytree
Version: 0.39.4
Release: 1%{?dist}
Summary: Hierarchical note taking application
License: GPLv3+
URL: http://www.giuspen.com/cherrytree/
Source0: https://github.com/giuspen/%{name}/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: python3-devel
BuildRequires: /usr/bin/python
Requires: python(abi) = %{py_ver}
Requires: pygtk2
Requires: pygobject2
Requires: pygtksourceview
Requires: python-enchant
Requires: dbus-python
Requires: python2-appindicator
Requires: /usr/bin/7za
%description
CherryTree is a hierarchical note taking application, featuring rich text and
syntax highlighting, storing all the data (including images) in a single XML
file with extension ".ctd".
%prep
%setup -q
%build
%if 0%{?rhel}
%{__python} setup.py build
%else
%{__python2} setup.py build
%endif
%install
%{__python2} setup.py install -O1 --root %{buildroot}
%py_byte_compile %{__python2} %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_datadir}/metainfo/com.giuspen.%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/cherrytree.desktop
# don't include useless egg
rm -rf %{buildroot}%{python2_sitelib}
# these are no longer in use
rm -rf %{buildroot}%{_datadir}/application-registry/
rm -rf %{buildroot}%{_datadir}/mime-info/
%find_lang %{name}
%if 0%{?rhel} && 0%{?rhel} <= 7
%post
update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
touch --no-create %{_datadir}/mime/packages &>/dev/null || :
%postun
update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%endif
%files -f %{name}.lang
%doc changelog.txt license.txt pygtkspellcheck
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man1/*.1*
#%{_datadir}/appdata/*
%changelog
* Wed Jun 24 2020 Ben Cotton <[email protected]> - 0.39.4-1
- Update to latest upstream release
* Wed May 27 2020 Ben Cotton <[email protected]> - 0.39.3-1
- Update to latest upstream release
* Wed Apr 29 2020 Ben Cotton <[email protected]> - 0.39.2-1
- Update to latest upstream release
* Mon Feb 10 2020 Ben Cotton <[email protected]> - 0.38.10-1
- Update to latest upstream release
* Fri Nov 01 2019 Ben Cotton <[email protected]> - 0.38.9-2
- Move to COPR
* Wed Oct 30 2019 Ben Cotton <[email protected]> - 0.38.9-1
- Update to latest upstream release
* Wed Jul 24 2019 Fedora Release Engineering <[email protected]> - 0.38.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jan 31 2019 Fedora Release Engineering <[email protected]> - 0.38.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <[email protected]> - 0.38.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jul 09 2018 Oliver Haessler <[email protected]> - 0.38.5-3
- switched from Python 3 to Python 2
* Mon Jul 09 2018 Oliver Haessler <[email protected]> - 0.38.5-2
- fixed python versioning for Fedora based on the change from
https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
* Wed Jul 04 2018 Oliver Haessler <[email protected]> - 0.38.5-1
- Update to 0.38.5 including the following bugfixes:
- bugfix – when save on exit is enabled and write to disk fails, changes are lost (#358)
- bugfix – superscript and subscript tags not recognized when copied from external source (#355)
- bugfix – workaround for bug in locale module (#368)
- added syntax highlighting for go language
- implemented support for opening a text file from the command line with cherrytree
* Tue Jun 19 2018 Miro Hrončok <[email protected]> - 0.38.2-4
- Rebuilt for Python 3.7
* Wed Feb 07 2018 Fedora Release Engineering <[email protected]> - 0.38.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Jan 07 2018 Igor Gnatenko <[email protected]> - 0.38.2-2
- Remove obsolete scriptlets
* Tue Sep 05 2017 Oliver Haessler <[email protected]> - 0.38.2-1
- Update to 0.38.2 including the following bugfixes:
- bugfix in import from cherrytree file (links broken)
- bugfix in export to HTML (‘#’ in node name)
- left arrow key press with focus on an already collapsed tree node, now moves the selection to the node parent
- automatic syntax highlighting nodes – added right click menus cut & copy as plain text
- bugfix in recent filenames, problem with underscore character
- bugfix in import from keynote
* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 0.38.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 28 2017 Oliver Haessler <[email protected]> - 0.38.1-1
- Update to 0.38.1
* Sat Apr 08 2017 Oliver Haessler <[email protected]> - 0.38.0-1
- Update to 0.38.0
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 0.37.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Oct 03 2016 Oliver Haessler <[email protected]> - 0.37.5
- Update to 0.37.5
* Mon Aug 29 2016 Oliver Haessler <[email protected]> - 0.37.4
- Update to 0.37.4
* Wed Aug 10 2016 Oliver Haessler <[email protected]> - 0.37.3
- Update to 0.37.3
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 0.37.2-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Jul 08 2016 Oliver Haessler <[email protected]> - 0.37.2
- Update to 0.37.2
* Fri May 27 2016 Oliver Haessler <[email protected]> - 0.37.0
- Update to 0.37.0
* Wed Mar 30 2016 Oliver Haessler <[email protected]> - 0.36.9-1
- Update to 0.36.9
* Tue Mar 22 2016 Oliver Haessler <[email protected]> - 0.36.8-1
- Update to 0.36.8
* Mon Feb 29 2016 Oliver Haessler <[email protected]> - 0.36.6-1
- Update to 0.36.6
* Tue Feb 23 2016 Oliver Haessler <[email protected]> - 0.36.5-1
- Update to 0.36.5
* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 0.36.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jan 26 2016 Oliver Haessler <[email protected]> - 0.36.4-2
- added new check for using python34-devel on EPEL 7
* Tue Jan 26 2016 Oliver Haessler <[email protected]> - 0.36.4-1
- Update to 0.36.4
- changed BR: python3-devel to use the python3_pkgversion macro to build on EPEL7
* Thu Jan 14 2016 Oliver Haessler <[email protected]> - 0.36.3-1
- Update to 0.36.3
* Thu Dec 3 2015 Robin Lee <[email protected]> - 0.36.0-1
- BR: python3-devel to get py_byte_compile macro
* Mon Nov 23 2015 Pavel Kovar <[email protected]> - 0.36.0-1
- Update to 0.36.0
- Requires python-appindicator
- py_byte_compile step added
- desktop-file-validate added
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 0.35.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Oct 26 2014 Robin Lee <[email protected]> - 0.35.2-1
- Update to 0.35.2
* Sun Oct 12 2014 Robin Lee <[email protected]> - 0.35.1-1
- Update to 0.35.1
* Tue Sep 09 2014 Rex Dieter <[email protected]> 0.33.4-2
- update mime scriptlet
* Sun Jun 8 2014 Robin Lee <[email protected]> - 0.33.4-1
- Update to 0.33.4
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.32.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Feb 1 2014 Robin Lee <[email protected]> - 0.32-1
- Update to 0.32.0
* Fri Sep 27 2013 Robin Lee <[email protected]> - 0.30.5-1
- Update to 0.30.5, license changed to GPLv3+
- Requires python-enchant
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 0.29.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed May 29 2013 Robin Lee <[email protected]> - 0.29.4-1
- Update to 0.29.4
* Fri Feb 8 2013 Robin Lee <[email protected]> - 0.29.2-1
- Update to 0.29.2
* Sat Jan 12 2013 Robin Lee <[email protected]> - 0.29-1
- Update to 0.29
* Wed Dec 19 2012 Robin Lee <[email protected]> - 0.28.5-1
- Update to 0.28.5
* Thu Oct 11 2012 Robin Lee <[email protected]> - 0.28-1
- Update to 0.28 (#859463, #860086, #861571, #861780)
* Sat Sep 29 2012 ZhiQiang Fan <[email protected]> - 0.27.1-1
- Update to 0.27.1 (#834037)
* Wed Jul 18 2012 Fedora Release Engineering <[email protected]> - 0.26.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Jun 13 2012 Robin Lee <[email protected]> - 0.26.2-1
- Update to 0.26.2
* Sun May 27 2012 Robin Lee <[email protected]> - 0.26-1
- Update to 0.26
* Sun Mar 4 2012 Robin Lee <[email protected]> - 0.25.4-1
- Update to 0.25.4
* Sat Feb 18 2012 Robin Lee <[email protected]> - 0.25.3-1
- Update to 0.25.3
* Wed Jan 25 2012 Robin Lee <[email protected]> - 0.25.2-1
- Update to 0.25.2
* Sun Jan 22 2012 Robin Lee <[email protected]> - 0.25.1-1
- Update to 0.25.1
* Mon Jan 16 2012 Robin Lee <[email protected]> - 0.25-1
- Update to 0.25
* Thu Jan 12 2012 Fedora Release Engineering <[email protected]> - 0.24-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Dec 31 2011 Robin Lee <[email protected]> - 0.24-1
- Update to 0.24
* Thu Nov 3 2011 Robin Lee <[email protected]> - 0.23.1-1
- Update to 0.23.1
- Add manuall python(abi) requirement
* Thu Jun 23 2011 Christoph Wickert <[email protected]> - 0.22.1-1
- Update to 0.22.1
* Mon Apr 25 2011 Christoph Wickert <[email protected]> - 0.21-1
- Update to 0.21
* Tue Mar 08 2011 Christoph Wickert <[email protected]> - 0.20.1-1
- Update to 0.20.1
* Tue Mar 08 2011 Christoph Wickert <[email protected]> - 0.20.1-1
- Update to 0.20
* Sat Jan 22 2011 Christoph Wickert <[email protected]> - 0.19.3-2
- Omit %%{_datadir}/application-registry/ and %%{_datadir}/mime-info/
* Fri Jan 21 2011 Christoph Wickert <[email protected]> - 0.19.3-2
- Remove useless egg and manually add python(abi) requirement
* Mon Jan 17 2011 Christoph Wickert <[email protected]> - 0.19.3-1
- Update to 0.19.3
* Sat Jan 15 2011 Christoph Wickert <[email protected]> - 0.19.2-1
- Update to 0.19.2
- Drop cherrytree.glade.h again
- Make sure cherrytree.desktop is not executable
* Tue Jan 11 2011 Christoph Wickert <[email protected]> - 0.19.1-1
- Update to 0.19.1
- Use setup.py instead of manual installation
- BR python2-devel instead of python-devel
* Tue Jan 04 2011 Christoph Wickert <[email protected]> - 0.19-2
- Drop cherrytree.glade.h
* Mon Jan 03 2011 Christoph Wickert <[email protected]> - 0.19-1
- Update to 0.19
* Wed Dec 29 2010 Christoph Wickert <[email protected]> - 0.18.1-1
- Update to 0.18.1
* Mon Dec 20 2010 Christoph Wickert <[email protected]> - 0.17.1-1
- Inital package