nautilussvn-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  2. %define extver beta1.2
  3. %define srcextver beta1-2
  4. Summary: Integrated Subversion support for Nautilus
  5. Summary(ja): Subversion サポートを Nautilus に追加する拡張
  6. Name: nautilussvn
  7. Version: 0.12
  8. Release: 3.%{extver}%{?_dist_release}
  9. Source0: %{name}_%{version}-%{srcextver}.tar.gz
  10. Source1: nautilussvn-ja.po
  11. License: GPL
  12. Group: Development/Tools
  13. URL: http://code.google.com/p/nautilussvn/
  14. Requires: nautilus, pygtk2, python-configobj
  15. Requires: pygobject, glade2, pygtk2-libglade
  16. Requires: subversion, pysvn
  17. Requires: nautilus-python
  18. BuildRequires: python-devel, gettext
  19. Requires(post): gtk2
  20. Requires(postun): gtk2
  21. BuildArch: noarch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. Packager: kazutaka
  24. %description
  25. An extension to Nautilus to allow better integration with
  26. the Subversion source control system.
  27. %description -l ja
  28. Nautilus に Subversion バージョン管理システムとの統合機能を
  29. 追加する拡張です。
  30. %prep
  31. %setup -q
  32. %build
  33. %{__python} setup.py build
  34. %install
  35. %{__rm} -rf ${RPM_BUILD_ROOT}
  36. %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT}
  37. # install japanese message catalog
  38. %{__mkdir} -p ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES
  39. msgfmt %{SOURCE1} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/NautilusSvn.mo
  40. %clean
  41. %{__rm} -rf ${RPM_BUILD_ROOT}
  42. %post
  43. touch --no-create %{_datadir}/icons/hicolor
  44. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  45. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  46. fi
  47. %postun
  48. touch --no-create %{_datadir}/icons/hicolor
  49. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  50. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  51. fi
  52. %files
  53. %defattr(-,root,root)
  54. %doc %{_datadir}/doc/%{name}/
  55. %{_bindir}/nautilussvn
  56. %{_libdir}/nautilus/extensions-2.0/python/NautilusSvn.py
  57. %{_libdir}/python%{pyver}/site-packages/
  58. %{_datadir}/icons/hicolor/scalable/actions/
  59. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  60. %{_datadir}/icons/hicolor/scalable/emblems/
  61. %{_datadir}/locale/
  62. # only usefull for ubuntu (and debian??)
  63. %exclude %{_datadir}/nautilussvn/do-nautilussvn-restart-nautilus
  64. %exclude %{_datadir}/nautilussvn/nautilussvn-restart-required.update-notifier
  65. %changelog
  66. * Fri Jun 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-3.beta1.2
  67. - update japanese translation
  68. * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-2.beta1.2
  69. - add japanese translation as Source1
  70. - add BuildRequires: gettext
  71. * Sat May 23 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.12-1.beta1.2
  72. - initial build for Vine Linux