self-build-Skype-vl.spec 6.3 KB

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