nautilus-pyextensions-vl.spec 3.6 KB

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