rabbitvcs-vl.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  2. %define build_vine5 0
  3. %if "%{?_dist_release}" == "vl5"
  4. %define build_vine5 1
  5. %endif
  6. %global title RabbitVCS
  7. Summary: Integrated Subversion support for Nautilus
  8. Summary(ja): Subversion サポートを Nautilus に追加する拡張
  9. Name: rabbitvcs
  10. Version: 0.15.0.5
  11. Release: 2%{?_dist_release}
  12. Source0: http://rabbitvcs.googlecode.com/files/%{name}-%{version}.tar.bz2
  13. Source1: rabbitvcs-0.14.2.1-ja.po
  14. Patch1: rabbitvcs-0.14.1.1-gtk216.patch
  15. License: GPL
  16. Group: Development/Tools
  17. URL: http://rabbitvcs.org/
  18. #Requires: nautilus, pygtk2, python-configobj
  19. #Requires: pygobject, pygtk2-libglade
  20. #Requires: subversion, pysvn, python-simplejson
  21. BuildRequires: gettext
  22. BuildRequires: gtk2-devel
  23. BuildRequires: pygtk2-devel
  24. BuildRequires: python-devel
  25. Requires(post): gtk2
  26. Requires(postun): gtk2
  27. #BuildArch: noarch
  28. Obsoletes: rabbitvcs <= 0.14.2.1
  29. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  30. Packager: kazutaka
  31. %description
  32. RabbitVCS is a set of graphical tools written to provide simple
  33. and straightforward access to the version control systems you use.
  34. This package containg core part of RabbitVCS and not connected
  35. to to any file manager or text editor.
  36. Front-ends or clients is privided separetely as a Nautilus
  37. extention, Thunar extention and Gedit plugin, and a command line
  38. utility.
  39. %description -l ja
  40. RabbitVCS はバージョン管理システムにシンプルかつ直感的にアクセス
  41. できるよう設計された GUI のツールです。
  42. このパッケージには RabbitVCS のコアとなる部分だけが含まれており、
  43. 特定のファイルマネージャやテキストエディタに依存しないようになっ
  44. ています。
  45. フロントエンドやクライアントは Nautilus 及び Thunar 用の拡張と、
  46. Gedit 用のプラグイン、そしてコマンドラインのユーティリティが、
  47. 別パッケージとして提供されています。
  48. %package core
  49. Summary: Core package of RabbitVCS
  50. Summary: RabbitVCS のコアパッケージ
  51. Group: Development/Tools
  52. Requires: dbus-python
  53. Requires: meld
  54. Requires: pygobject
  55. Requires: pygtk2
  56. Requires: pygtk2-libglade
  57. Requires: pysvn
  58. Requires: python-configobj
  59. Requires: python-dulwich
  60. Requires: subversion
  61. Obsoletes: rabbitvcs <= 0.14.2.1
  62. BuildArch: noarch
  63. #Requires: nautilus, pygtk2, python-configobj
  64. #Requires: pygobject, pygtk2-libglade
  65. #Requires: subversion, pysvn, python-simplejson
  66. %description core
  67. Contains packages shared between the RabbitVCS extensions.
  68. %package nautilus
  69. Summary: Nautilus extension for RabbitVCS
  70. Summary(ja): RabbitVCS の Nautilus 拡張
  71. Group: Development/Tools
  72. Requires: nautilus >= 2.22.0
  73. Requires: nautilus-python >= 0.7.0
  74. Requires: rabbitvcs-core = %{version}-%{release}
  75. Obsoletes: nautilussvn
  76. %description nautilus
  77. RabbitVCS is a set of graphical tools written to provide simple
  78. and straightforward access to the version control systems you use.
  79. With this package, You can acces to the version control systems
  80. by Nautilus file manager.
  81. %description nautilus -l ja
  82. RabbitVCS はバージョン管理システムにシンプルかつ直感的にアクセス
  83. できるよう設計された GUI のツールです。
  84. このパッケージを利用することで、Nautilus ファイルマネージャに
  85. 統合された形でバージョン管理システムにアクセスできるようになり
  86. ます。
  87. %package thunar
  88. Summary: Thunar extension for RabbitVCS
  89. Summary(ja): RabbitVCS の Thunar 拡張
  90. Group: Development/Tools
  91. Requires: rabbitvcs-core = %{version}-%{release}
  92. Requires: Thunar >= 0.4.0
  93. Requires: thunarx-python >= 0.2.0
  94. %description thunar
  95. An extension for Thunar to allow better integration with the
  96. Subversion source control system.
  97. %package gedit
  98. Summary: Gedit extension for RabbitVCS
  99. Summary(ja): RabbitVCS の Gedit 拡張
  100. Group: Development/Tools
  101. Requires: rabbitvcs-core = %{version}-%{release}
  102. Requires: gedit
  103. %description gedit
  104. RabbitVCS is a set of graphical tools written to provide simple and
  105. straightforward access to the version control systems you use. This is the
  106. extension for gedit text editor
  107. %package cli
  108. Summary: CLI extension for RabbitVCS
  109. Summary(ja): RabbitVCS の CLI 拡張
  110. Group: Development/Tools
  111. Requires: rabbitvcs-core = %{version}-%{release}
  112. BuildArch: noarch
  113. %description cli
  114. RabbitVCS is a set of graphical tools written to provide simple and
  115. straightforward access to the version control systems you use. This is the
  116. extension for command line interface.
  117. %prep
  118. %setup -q
  119. %if %{build_vine5}
  120. %patch1 -p1 -b .gtk216
  121. %endif
  122. %build
  123. %{__python} setup.py build
  124. %install
  125. %{__rm} -rf ${RPM_BUILD_ROOT}
  126. %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT}
  127. # install nautilus client
  128. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl6"
  129. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_libdir}/nautilus/extensions-2.0/python/
  130. %{__install} -m644 clients/nautilus/RabbitVCS.py ${RPM_BUILD_ROOT}/%{_libdir}/nautilus/extensions-2.0/python/
  131. %else
  132. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_datadir}/nautilus-python/extensions/
  133. %{__install} -m644 clients/nautilus-3.0/RabbitVCS.py ${RPM_BUILD_ROOT}/%{_datadir}/nautilus-python/extensions/
  134. %endif
  135. # Installing Thunar Extension
  136. mkdir -p $RPM_BUILD_ROOT%{_libdir}/thunarx-2/python/
  137. cp clients/thunar/%{title}.py $RPM_BUILD_ROOT%{_libdir}/thunarx-2/python/%{title}.py
  138. # Installing Gedit Extension
  139. mkdir -p $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/
  140. cp clients/gedit/%{name}-plugin.py $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}-plugin.py
  141. cp clients/gedit/%{name}.gedit-plugin $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
  142. # Installing CLI Extension
  143. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  144. cp clients/cli/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
  145. # install updated japanese translation
  146. msgfmt %{SOURCE1} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/RabbitVCS.mo
  147. %clean
  148. %{__rm} -rf ${RPM_BUILD_ROOT}
  149. %post
  150. touch --no-create %{_datadir}/icons/hicolor
  151. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  152. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  153. fi
  154. %postun
  155. touch --no-create %{_datadir}/icons/hicolor
  156. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  157. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  158. fi
  159. %files core
  160. %defattr(-, root, root, -)
  161. %doc %{_datadir}/doc/%{name}/
  162. #%{_prefix}/lib/python%{pyver}/site-packages/
  163. %{python_sitelib}/%{name}/
  164. %{python_sitelib}/%{name}-%{version}-py?.?.egg-info
  165. %{_datadir}/icons/hicolor/16x16/actions/
  166. %{_datadir}/icons/hicolor/scalable/actions/
  167. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  168. %{_datadir}/icons/hicolor/scalable/apps/%{name}-small.svg
  169. %{_datadir}/icons/hicolor/scalable/emblems/
  170. %{_datadir}/locale/
  171. %{_datadir}/%{name}/configspec.ini
  172. # only usefull for ubuntu (and debian??)
  173. #%exclude %{_datadir}/%{name}/do-rabbitvcs-restart-nautilus
  174. #%exclude %{_datadir}/%{name}/rabbitvcs-restart-required.update-notifier
  175. %files nautilus
  176. %defattr(-, root, root, -)
  177. %doc clients/nautilus/README
  178. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl6"
  179. %{_libdir}/nautilus/extensions-2.0/python/RabbitVCS.py
  180. %else
  181. %{_datadir}/nautilus-python/extensions/RabbitVCS.py
  182. %endif
  183. %files thunar
  184. %defattr(-, root, root,-)
  185. %{_libdir}/thunarx-2/python/%{title}.py*
  186. %files gedit
  187. %defattr(-, root, root,-)
  188. %{_libdir}/gedit-2/plugins/%{name}-plugin.py*
  189. %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
  190. %files cli
  191. %defattr(-, root, root,-)
  192. %{_bindir}/%{name}
  193. %changelog
  194. * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.15.0.5-2
  195. - rebuilt with python-2.7
  196. * Wed Feb 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.15.0.5-1
  197. - new upstream release
  198. - reorganized rabbitvcs-core, rabbitvcs-nautilus, rabbitvcs-thunar,
  199. rabbitvcs-gedit, rabbitvcs-cli
  200. - set contitional branch for stable release and VineSeed
  201. - added Require packages for rabbitvcs-core
  202. - added meld, pygobject, python-dulwich
  203. * Sun May 29 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.14.2.1-1
  204. - new upstream release
  205. - drop BuildArch: noarch to change installation path for RabbitVCS.py
  206. (need to locate under /usr/lib64 on x86_64)
  207. - add updated japanese translation (Source1)
  208. * Mon Jan 24 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.14.1.1-2
  209. - fix installation path of RabbitVCS.py
  210. - drop unnecessary Requires: glade2
  211. * Sun Jan 23 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.14.1.1-1
  212. - new upstream release
  213. - add Requires: python-simplejson
  214. - add Patch1 to avoid error when gtk+ < 2.18 (only for Vine 5)
  215. * Fri Jul 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.13.3-1
  216. - new upstream release
  217. - merge rabbitvcs-nautilus package again (upstream source change)
  218. - requires nautilus-python >= 0.7.0 for rabbitvcs-nautilus
  219. * Sun Feb 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.13-1
  220. - new upstream release
  221. - now front-end for nautilus is provided separetely
  222. (as rabbitvcs-nautilus package)
  223. * Wed Oct 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1
  224. - new upstream release with new name
  225. - add Obsoletes: nautilussvn
  226. - drop source1 (japanese translation)
  227. - update description
  228. * Fri Jun 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-3.beta1.2
  229. - update japanese translation
  230. * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-2.beta1.2
  231. - add japanese translation as Source1
  232. - add BuildRequires: gettext
  233. * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1.beta1.2
  234. - initial build for Vine Linux