nautilus-dropbox-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %define nautilus_extensions_dir %{_libdir}/nautilus/extensions-2.0
  2. Summary: Dropbox extension for Nautilus
  3. Name: nautilus-dropbox
  4. Version: 0.6.1
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Internet
  8. URL: https://www.dropbox.com/
  9. Source0: %{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  11. BuildRequires: nautilus-devel >= 2.16.0
  12. BuildRequires: glib2-devel >= 2.14.0
  13. BuildRequires: libnotify-devel >= 0.4.4
  14. BuildRequires: pygtk2
  15. BuildRequires: docutils
  16. BuildRequires(check): desktop-file-utils
  17. Requires: %{name}-images = %{version}
  18. Requires: nautilus glib2 libnotify pygtk2
  19. Requires(post,postun): desktop-file-utils, gtk2
  20. %description
  21. Dropbox extension for Nautilus.
  22. Dropbox is online backup, file sync and sharing made easy web seavice.
  23. See https://www.dropbox.com/
  24. %description -l ja
  25. Nautilus のための Dropbox 拡張。
  26. Dropbox はオンラインバックアップやファイルの同期と共有を簡単に
  27. 実現するウェブサービスです。
  28. 詳細は https://www.dropbox.com/ を見てください。
  29. %package images-nonfree
  30. Summary: Dropbox extension for Nautilus non-free images
  31. Group: Applications/Internet
  32. License: non-free (see COPYING)
  33. Requires: %{name} = %{version}-%{release}
  34. Provides: %{name}-images
  35. %description images-nonfree
  36. Dropbox extension for Nautilus non-free images.
  37. %prep
  38. %setup -q
  39. %configure
  40. %build
  41. make
  42. %install
  43. rm -rf %{buildroot}
  44. %makeinstall NAUTILUS_EXTENSION_DIR=%{buildroot}%{nautilus_extensions_dir}
  45. ## drop unnecessary files
  46. # *.{a,la}
  47. %{__rm} -f %{buildroot}%{nautilus_extensions_dir}/libnautilus-dropbox.{a,la}
  48. # cache file
  49. %{__rm} -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
  50. %check
  51. %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/dropbox.desktop
  52. %post
  53. touch --no-create %{_datadir}/icons/hicolor
  54. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  55. %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  56. fi
  57. if [ -x %{_bindir}/update-desktop-database ] ; then
  58. %{_bindir}/update-desktop-database %{_datadir}/applications
  59. fi
  60. %postun
  61. touch --no-create %{_datadir}/icons/hicolor
  62. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  63. %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  64. fi
  65. if [ -x %{_bindir}/update-desktop-database ] ; then
  66. %{_bindir}/update-desktop-database %{_datadir}/applications
  67. fi
  68. %clean
  69. rm -rf %{buildroot}
  70. %files
  71. %defattr(-,root,root,-)
  72. %doc AUTHORS COPYING NEWS README
  73. %config(missingok) %{_datadir}/applications/dropbox.desktop
  74. %{_bindir}/dropbox
  75. %{nautilus_extensions_dir}/libnautilus-dropbox.so
  76. %{_mandir}/man1/dropbox.1*
  77. %files images-nonfree
  78. %defattr(-,root,root,-)
  79. %doc COPYING README
  80. %{_datadir}/icons/hicolor/*/apps/*
  81. %{_datadir}/icons/hicolor/*/emblems/*
  82. %changelog
  83. * Sat Mar 13 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.1-1
  84. - Initial build.