nautilus-pyextensions-vl.spec 4.1 KB

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