nautilus-pyextensions-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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: 1%{?_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. * Fri Nov 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0-1
  73. - new upstream release
  74. - changed Requires: pygtk2 to pygobject3
  75. * Thu Jul 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.2-1
  76. - new upstream release
  77. * Sun Aug 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.1-1
  78. - new upstream release
  79. - dropt source1 to merge upstream
  80. - dropt patch1
  81. * Thu Jul 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2-1
  82. - new upstream release
  83. - updated patch1 and source1
  84. * Mon Jul 19 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-2
  85. - changed URL and Source tag
  86. - fixed include python script
  87. - updated and renamed patch0
  88. - fixed icon in open-as-root.py
  89. - added Japanese translation
  90. - added source1 to translate Japanese
  91. - cleaned up spec
  92. * Sun Jun 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1
  93. - new upstream release
  94. - modified install process
  95. - use setup.py in source
  96. - modified %%files
  97. - fixed desktop-file-install --add-category section
  98. * Thu Mar 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.6-1
  99. - new upstream release
  100. * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-2
  101. - rebuilt with python-2.6.4
  102. * Wed Jan 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-1
  103. - new upstream release
  104. * Wed Dec 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.4-1
  105. - new upstream release
  106. - changed name and updated source1
  107. * Thu Nov 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.3-1
  108. - initial build for VineSeed
  109. * Fri Aug 21 2009 slick50 <lxgator@gmail.com> 0.6.1-1pclos2009
  110. - initial pkg