rabbitvcs-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  2. Summary: Core component for RabbitVCS
  3. Summary(ja): RabbitVCS のコア・コンポーネント
  4. Name: rabbitvcs
  5. Version: 0.13
  6. Release: 1%{?_dist_release}
  7. Source0: %{name}-core-%{version}.tar.gz
  8. License: GPL
  9. Group: Development/Tools
  10. URL: http://rabbitvcs.org/
  11. Requires: nautilus, pygtk2, python-configobj
  12. Requires: pygobject, glade2, pygtk2-libglade
  13. Requires: subversion, pysvn
  14. BuildRequires: python-devel, gettext
  15. Requires(post): gtk2
  16. Requires(postun): gtk2
  17. BuildArch: noarch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Packager: kazutaka
  20. %description
  21. RabbitVCS is a set of graphical tools written to provide simple
  22. and straightforward access to the version control systems you use.
  23. This package containg core part of RabbitVCS and not connected
  24. to to any file manager or text editor.
  25. Front-ends or clients is privided separetely as a Nautilus
  26. extention, Thunar extention and Gedit plugin, and a command line
  27. utility.
  28. %description -l ja
  29. RabbitVCS はバージョン管理システムにシンプルかつ直感的にアクセス
  30. できるよう設計された GUI のツールです。
  31. このパッケージには RabbitVCS のコアとなる部分だけが含まれており、
  32. 特定のファイルマネージャやテキストエディタに依存しないようになっ
  33. ています。
  34. フロントエンドやクライアントは Nautilus 及び Thunar 用の拡張と、
  35. Gedit 用のプラグイン、そしてコマンドラインのユーティリティが、
  36. 別パッケージとして提供されています。
  37. %prep
  38. %setup -q -n %{name}-core-%{version}
  39. %build
  40. %{__python} setup.py build
  41. %install
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT}
  44. # install japanese message catalog
  45. #%{__mkdir} -p ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES
  46. #msgfmt %{SOURCE1} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/NautilusSvn.mo
  47. %clean
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %post
  50. touch --no-create %{_datadir}/icons/hicolor
  51. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  52. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  53. fi
  54. %postun
  55. touch --no-create %{_datadir}/icons/hicolor
  56. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  57. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  58. fi
  59. %files
  60. %defattr(-,root,root)
  61. %doc %{_datadir}/doc/%{name}/
  62. #%{_bindir}/%{name}
  63. #%{_libdir}/nautilus/extensions-2.0/python/RabbitVCS.py
  64. %{_libdir}/python%{pyver}/site-packages/
  65. %{_datadir}/icons/hicolor/scalable/actions/
  66. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  67. %{_datadir}/icons/hicolor/scalable/apps/%{name}-small.svg
  68. %{_datadir}/icons/hicolor/scalable/emblems/
  69. %{_datadir}/locale/
  70. %{_datadir}/%{name}/configspec.ini
  71. # only usefull for ubuntu (and debian??)
  72. #%exclude %{_datadir}/%{name}/do-rabbitvcs-restart-nautilus
  73. #%exclude %{_datadir}/%{name}/rabbitvcs-restart-required.update-notifier
  74. %changelog
  75. * Sun Feb 14 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.13-1
  76. - new upstream release
  77. - now front-end for nautilus is provided separetely
  78. (as rabbitvcs-nautilus package)
  79. * Wed Oct 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1
  80. - new upstream release with new name
  81. - add Obsoletes: nautilussvn
  82. - drop source1 (japanese translation)
  83. - update description
  84. * Fri Jun 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-3.beta1.2
  85. - update japanese translation
  86. * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-2.beta1.2
  87. - add japanese translation as Source1
  88. - add BuildRequires: gettext
  89. * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1.beta1.2
  90. - initial build for Vine Linux