self-build-Skype-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. %define pkgname Skype
  2. %define name self-build-%{pkgname}
  3. %define ver 4.3.0.37
  4. %define rel 1
  5. %define sourceurl0 http://download.skype.com/linux/skype-%{version}.tar.bz2
  6. Summary: Package to automatically build %{pkgname} rpm package
  7. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  8. Name: %{name}
  9. Version: %{ver}
  10. Release: %{rel}%{?_dist_release}
  11. Source0: %{pkgname}-vl.spec
  12. Source1: vine-skype.desktop
  13. License: non-free
  14. Group: Restricted Software
  15. ##!! Requires(posttrans) not yet implemented. So we use (post) instead.
  16. Requires(post): self-build-setup >= 0.9.9
  17. # Requirements for Skype dynamic
  18. %ifarch x86_64
  19. Requires(post): compat32-alsa-lib
  20. Requires(post): compat32-dbus
  21. Requires(post): compat32-e2fsprogs
  22. Requires(post): compat32-fontconfig
  23. Requires(post): compat32-freetype2
  24. Requires(post): compat32-gamin
  25. Requires(post): compat32-glib2
  26. Requires(post): compat32-keyutils-libs
  27. Requires(post): compat32-krb5-libs
  28. Requires(post): compat32-lcms
  29. Requires(post): compat32-libICE
  30. Requires(post): compat32-libSM
  31. Requires(post): compat32-libX11
  32. Requires(post): compat32-libXScrnSaver
  33. Requires(post): compat32-libXau
  34. Requires(post): compat32-libXcursor
  35. Requires(post): compat32-libXdamage
  36. Requires(post): compat32-libXdmcp
  37. Requires(post): compat32-libXext
  38. Requires(post): compat32-libXfixes
  39. Requires(post): compat32-libXi
  40. Requires(post): compat32-libXinerama
  41. Requires(post): compat32-libXrandr
  42. Requires(post): compat32-libXrender
  43. Requires(post): compat32-libXv
  44. Requires(post): compat32-libXxf86vm
  45. Requires(post): compat32-libdrm
  46. Requires(post): compat32-libexpat
  47. Requires(post): compat32-libjpeg-turbo
  48. Requires(post): compat32-libmng
  49. Requires(post): compat32-libpciaccess
  50. Requires(post): compat32-libpng
  51. Requires(post): compat32-libtiff
  52. Requires(post): compat32-libxcb
  53. Requires(post): compat32-mesa-libGL
  54. Requires(post): compat32-mesa-libGLU
  55. Requires(post): compat32-openssl
  56. Requires(post): compat32-qt4
  57. Requires(post): qt4, openssl
  58. %else
  59. Requires(post): alsa-lib
  60. Requires(post): dbus
  61. Requires(post): e2fsprogs
  62. Requires(post): fontconfig
  63. Requires(post): freetype2
  64. Requires(post): gamin
  65. Requires(post): glib2
  66. Requires(post): keyutils-libs
  67. Requires(post): krb5-libs
  68. Requires(post): lcms
  69. Requires(post): libICE
  70. Requires(post): libSM
  71. Requires(post): libX11
  72. Requires(post): libXScrnSaver
  73. Requires(post): libXau
  74. Requires(post): libXcursor
  75. Requires(post): libXdamage
  76. Requires(post): libXdmcp
  77. Requires(post): libXext
  78. Requires(post): libXfixes
  79. Requires(post): libXi
  80. Requires(post): libXinerama
  81. Requires(post): libXrandr
  82. Requires(post): libXrender
  83. Requires(post): libXv
  84. Requires(post): libXxf86vm
  85. Requires(post): libdrm
  86. Requires(post): libexpat
  87. Requires(post): libjpeg-turbo
  88. Requires(post): libmng
  89. Requires(post): libpciaccess
  90. Requires(post): libpng
  91. Requires(post): libtiff
  92. Requires(post): libxcb
  93. Requires(post): mesa-libGL
  94. Requires(post): mesa-libGLU
  95. Requires(post): openssl
  96. Requires(post): qt4
  97. %endif
  98. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  99. Distribution: Vine Linux
  100. Vendor: Project Vine
  101. Packager: iwaim, daisuke
  102. %description
  103. Skype Internet Telephony
  104. If you install this package, it automaticaly downloads source
  105. code, compile it, and create rpm packages of %{pkgname}-%{version}.
  106. And the created rpm packages are automatically installed
  107. if installation is executed by apt-get command or synaptic
  108. package manager.
  109. [About self-build package]
  110. For some kind of software, distributing of binary package
  111. may viorate the patent or law. Therefore we chose self-build
  112. packge, create binary package on your machine, for such kind
  113. of softwares instead of distributing binary package.
  114. Please obey the national law when you use the created binary
  115. packages. And if you want to use the softwares using patented
  116. thechnology, it may be required to get a permission, make an
  117. agreement or purchas a license. Please consider it with your
  118. purpose or way of use and take appropriate action.
  119. %description -l ja
  120. Skype インターネット・テレフォニー
  121. このパッケージをインストールすると、自動的にソースコードを
  122. ダウンロードしてコンパイルし、%{pkgname}-%{version}
  123. の rpm パッケージを作成します。
  124. また apt-get コマンドや synaptic パッケージマネージャから実行
  125. した場合は、作成された rpm パッケージのインストールも自動的に
  126. 行います。
  127. [self-build パッケージについて]
  128. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  129. 違反する可能性があるものがあります。その為、このような問題が
  130. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  131. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  132. ジという方法を採っています。
  133. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  134. アのライセンス、および利用する国の各種法令に従ってください。
  135. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  136. センスの購入などが必要となる場合がありますので、利用する目的
  137. や形態に応じて各自で判断し適切な対応を取ってください。
  138. %prep
  139. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  140. %install
  141. %{__rm} -rf %{buildroot}
  142. %{__install} -d %{buildroot}%{_datadir}/%{name}
  143. %{__install} -m 644 %{SOURCE0} %{buildroot}%{_datadir}/%{name}
  144. %{__install} -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}
  145. %clean
  146. %{__rm} -rf %{buildroot}
  147. %posttrans
  148. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 5000
  149. %files
  150. %defattr(-,root,root)
  151. %{_datadir}/%{name}
  152. %changelog
  153. * Mon Oct 27 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.3.0.37-1
  154. - update to 4.3.0.37
  155. * Fri Nov 16 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.0.20-1
  156. - update to 4.1.0.20
  157. * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1
  158. - update to 2.2.0.99
  159. * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1
  160. - first release for Vine Linux