nautilus-pyextensions-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. %define name nautilus-pyextensions
  2. %define version 1.0.6
  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://open.vitaminap.it/en/nautilus_pyextensions.htm
  11. Source: http://open.vitaminap.it/software/%{name}_%{version}.tar.gz
  12. Patch0: fixed_icon.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: python-devel python-setuptools
  16. BuildArch: noarch
  17. Requires: nautilus-python
  18. Requires: pygtk2
  19. Requires: audacious
  20. Requires: meld
  21. Requires: gksu
  22. Requires: zenity
  23. %description
  24. A Graphical Handler, Written in Python and PyGtk,
  25. of the Nautilus File Manager Python Extensions.
  26. %description -l ja
  27. Python と PyGtk で書かれた、Nautilus ファイルマネージャ
  28. Python Extensions のグラフィカルハンドラ。
  29. %prep
  30. %setup -q -n %{name}
  31. %patch0 -p1
  32. %build
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  36. install -m 755 %{name} $RPM_BUILD_ROOT/%{_bindir}
  37. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
  38. cp -af default-pyextensions $RPM_BUILD_ROOT/%{_datadir}/%{name}
  39. cp -af glade $RPM_BUILD_ROOT/%{_datadir}/%{name}
  40. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps
  41. install -m 644 glade/%{name}.svg $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps
  42. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  43. install -m 755 linux/%{name}.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
  44. desktop-file-install --vendor="" \
  45. --add-category="X-Accessories" \
  46. --dir %{buildroot}%_datadir/applications \
  47. %{buildroot}%_datadir/applications/%{name}.desktop
  48. #remove
  49. rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/%{name}.desktop
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %post
  53. touch --no-create %{_datadir}/icons/hicolor || :
  54. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  55. update-desktop-database > /dev/null 2>&1 || :
  56. %postun
  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. %files
  61. %defattr(-,root,root,-)
  62. %{_bindir}/%{name}
  63. %{_datadir}/%{name}
  64. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  65. %{_datadir}/applications/%{name}.desktop
  66. %changelog
  67. * Thu Mar 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.6-1
  68. - new upstream release
  69. * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-2
  70. - rebuilt with python-2.6.4
  71. * Wed Jan 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-1
  72. - new upstream release
  73. * Wed Dec 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.4-1
  74. - new upstream release
  75. - changed name and updated source1
  76. * Thu Nov 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.3-1
  77. - initial build for VineSeed
  78. * Fri Aug 21 2009 slick50 <lxgator@gmail.com> 0.6.1-1pclos2009
  79. - initial pkg