nautilus-pyextensions-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. %define name nautilus-pyextensions
  2. %define version 3.0
  3. Summary: Handler of the Nautilus Python Extensions
  4. Summary(ja): Nautilus Python Extensions のハンドラ
  5. Name: %{name}
  6. Version: %{version}
  7. Release: 2%{?_dist_release}
  8. Group: Applications/Accessories
  9. License: GPLv2+
  10. URL: http://www.giuspen.com/nautilus-pyextensions/
  11. Source: http://www.giuspen.com/software/nautilus-pyextensions/%{name}-%{version}.tar.gz
  12. #Source1: nautilus-pyextensions_ja.po
  13. #Patch0: apply_environment.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: python-devel python-setuptools
  17. BuildArch: noarch
  18. Requires: nautilus-python
  19. #Requires: pygtk2
  20. Requires: pygobject3
  21. Requires: audacious
  22. Requires: meld
  23. Requires: gksu
  24. Requires: zenity
  25. %description
  26. A Graphical Handler, Written in Python and PyGtk,
  27. of the Nautilus File Manager Python Extensions.
  28. %description -l ja
  29. Python と PyGtk で書かれた、Nautilus ファイルマネージャ
  30. Python Extensions のグラフィカルハンドラ。
  31. %prep
  32. %setup -q -n %{name}-%{version}
  33. #%patch0 -p1
  34. #%{__cp} -f %{SOURCE1} locale/ja.po
  35. #pushd .
  36. #cd locale/
  37. #chmod +x i18n_po_to_mo.py
  38. #./i18n_po_to_mo.py
  39. #popd
  40. %build
  41. #%{__python} setup.py build
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. %{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
  45. mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
  46. cp -af default-pyextensions $RPM_BUILD_ROOT%{_datadir}/%{name}
  47. desktop-file-install --vendor="" \
  48. --add-category="Utility" \
  49. --dir %{buildroot}%_datadir/applications \
  50. %{buildroot}%_datadir/applications/%{name}.desktop
  51. #remove
  52. #rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/%{name}.desktop
  53. %find_lang %{name}
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %post
  57. touch --no-create %{_datadir}/icons/hicolor || :
  58. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  59. update-desktop-database > /dev/null 2>&1 || :
  60. %postun
  61. touch --no-create %{_datadir}/icons/hicolor || :
  62. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  63. update-desktop-database > /dev/null 2>&1 || :
  64. %files -f %{name}.lang
  65. %defattr(-,root,root,-)
  66. %{_bindir}/%{name}
  67. %{_datadir}/%{name}
  68. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  69. %{_datadir}/applications/%{name}.desktop
  70. %{_libdir}/python2.?/site-packages/
  71. %changelog
  72. * Wed Mar 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0-2
  73. - rebuilt with python-2.7.2
  74. * Fri Nov 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0-1
  75. - new upstream release
  76. - changed Requires: pygtk2 to pygobject3
  77. * Thu Jul 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.2-1
  78. - new upstream release
  79. * Sun Aug 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.1-1
  80. - new upstream release
  81. - dropt source1 to merge upstream
  82. - dropt patch1
  83. * Thu Jul 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2-1
  84. - new upstream release
  85. - updated patch1 and source1
  86. * Mon Jul 19 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-2
  87. - changed URL and Source tag
  88. - fixed include python script
  89. - updated and renamed patch0
  90. - fixed icon in open-as-root.py
  91. - added Japanese translation
  92. - added source1 to translate Japanese
  93. - cleaned up spec
  94. * Sun Jun 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1
  95. - new upstream release
  96. - modified install process
  97. - use setup.py in source
  98. - modified %%files
  99. - fixed desktop-file-install --add-category section
  100. * Thu Mar 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.6-1
  101. - new upstream release
  102. * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-2
  103. - rebuilt with python-2.6.4
  104. * Wed Jan 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-1
  105. - new upstream release
  106. * Wed Dec 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.4-1
  107. - new upstream release
  108. - changed name and updated source1
  109. * Thu Nov 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.3-1
  110. - initial build for VineSeed
  111. * Fri Aug 21 2009 slick50 <lxgator@gmail.com> 0.6.1-1pclos2009
  112. - initial pkg