Advertisement
Guest User

Untitled

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