self-build-nautilus-dropbox-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define pkgname nautilus-dropbox
  2. %define name self-build-%{pkgname}
  3. %define version 0.6.8
  4. %define release 1%{?_dist_release}
  5. %define sourceurl https://www.dropbox.com/download?dl=packages/nautilus-dropbox-%{version}.tar.bz2
  6. Summary: Package to automatically build %{pkgname} rpm package
  7. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. Source0: %{pkgname}-vl.spec
  12. License: GPLv2 and non-free
  13. Group: Restricted Software
  14. # requires: downloading from https
  15. Requires(post): self-build-setup >= 0.9.9
  16. Requires(post): nautilus-devel >= 2.16.0
  17. Requires(post): glib2-devel >= 2.14.0
  18. Requires(post): libnotify-devel >= 0.4.4
  19. Requires(post): pygtk2
  20. Requires(post): docutils
  21. BuildArch: noarch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. Packager: iwaim, shaolin
  24. %description
  25. Dropbox extension for Nautilus.
  26. Dropbox is online backup, file sync and sharing made easy web seavice.
  27. See https://www.dropbox.com/
  28. If you install this package, it automaticaly downloads source
  29. code ,compile it, and create rpm packages of %{pkgname}-%{version}.
  30. And the created rpm packages are automatically installed
  31. if installation is executed by apt-get command or synaptic
  32. package manager.
  33. [About self-build package]
  34. For some kind of software, distributing of binary package
  35. may viorate the patent or law. Therefore we chose self-build
  36. packge, create binary package on your machine, for such kind
  37. of softwares instead of distributing binary package.
  38. Please obey the national law when you use the created binary
  39. packages. And if you want to use the softwares using patented
  40. thechnology, it may be required to get a permission, make an
  41. agreement or purchas a license. Please consider it with your
  42. purpose or way of use and take appropriate action.
  43. %description -l ja
  44. Nautilus のための Dropbox 拡張。
  45. Dropbox はオンラインバックアップやファイルの同期と共有を簡単に
  46. 実現するウェブサービスです。
  47. 詳細は https://www.dropbox.com/ を見てください。
  48. このパッケージをインストールすると、自動的にソースコードを
  49. ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm
  50. パッケージを作成します。
  51. また apt-get コマンドや synaptic パッケージマネージャから実行
  52. した場合は、作成された rpm パッケージのインストールも自動的に
  53. 行います。
  54. [注意]
  55. コンパイルに必要な多くの関連パッケージを要求するので通常より
  56. ディスクの領域を多く消費します。
  57. またインストール時にコンパイルを行うため、通常より時間がかか
  58. る場合があります。(環境にもよりますが数分から数十分程度)
  59. [self-build パッケージについて]
  60. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  61. 違反する可能性があるものがあります。その為、このような問題が
  62. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  63. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  64. ジという方法を採っています。
  65. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  66. アのライセンス、および利用する国の各種法令に従ってください。
  67. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  68. センスの購入などが必要となる場合がありますので、利用する目的
  69. や形態に応じて各自で判断し適切な対応を取ってください。
  70. %install
  71. %{__rm} -rf ${RPM_BUILD_ROOT}
  72. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  73. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  74. %clean
  75. %{__rm} -rf ${RPM_BUILD_ROOT}
  76. %posttrans
  77. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl}" 65000
  78. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
  79. %{pkgname}-images-nonfree-%{version}-%{release}
  80. %files
  81. %defattr(-,root,root)
  82. %{_datadir}/self-build-%{pkgname}
  83. %changelog
  84. * Thu Jul 7 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.6.8-1
  85. - new upstream release
  86. * Tue Nov 16 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.6.7-1
  87. - new upstream release
  88. * Sat Mar 13 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.1-1
  89. - initial release for Vine Linux