nautilus-pyextensions-vl.spec 3.7 KB

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