self-build-gstreamer-plugins-bad-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. %define pkgname gstreamer-plugins-bad
  2. %define majorminor 0.10
  3. %define gstreamer gstreamer
  4. %define gst_minver 0.10.33
  5. %define gstpb_minver 0.10.33
  6. %define _gst_ver 0.10.23
  7. %define release 1%{?_dist_release}
  8. %define sourceurl http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%{_gst_ver}.tar.xz
  9. Summary: Package to automatically build %{pkgname} rpm package
  10. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  11. Name: self-build-%{pkgname}
  12. Version: %{_gst_ver}
  13. Release: %{release}
  14. Source0: %{pkgname}-vl.spec
  15. License: LGPLv2+ and LGPLv2
  16. Group: Restricted Software
  17. Requires(post): self-build-setup >= 0.9.9
  18. # (build)requies of target package.
  19. Requires: %{gstreamer} >= %{gst_minver}
  20. Requires(post): %{gstreamer}-devel >= %{gst_minver}
  21. Requires(post): %{gstreamer}-plugins-base-devel >= %{gstpb_minver}
  22. Requires(post): check
  23. Requires(post): gettext
  24. Requires(post): PyXML
  25. Requires(post): libXt-devel
  26. Requires(post): liboil-devel
  27. Requires(post): libdirectfb-devel
  28. Requires(post): self-build-libdca
  29. Requires(post): self-build-faac
  30. Requires(post): self-build-faad2
  31. Requires(post): gsm-devel
  32. Requires(post): libmpcdec-devel
  33. Requires(post): SDL-devel
  34. #Requires(post): soundtouch-devel
  35. #Requires(post): swfdec-devel
  36. #Buildrequires: wavpack-devel
  37. Requires(post): self-build-xvidcore
  38. Requires(post): bzip2-devel
  39. Requires(post): mesa-libGLU-devel
  40. Requires(post): neon-devel
  41. Requires(post): libmms-devel
  42. Requires(post): libmusicbrainz-devel
  43. #Requires(post): libcdaudio-devel
  44. Requires(post): jack-audio-connection-kit-devel
  45. #Requires(post): mjpegtools-devel
  46. #Requires(post): nas-devel
  47. Requires(post): self-build-x264
  48. #Requires(post): wildmidi-devel
  49. Requires(post): libsndfile-devel
  50. #Requires(post): libmodplug-devel
  51. #Requires(post): libtimidity-devel
  52. #Requires(post): gmyth-devel >= 0.4
  53. Requires(post): libdc1394-devel
  54. Requires(post): libexif-devel
  55. #Requires(post): libiptcdata-devel
  56. #Requires(post): exempi-devel
  57. #Requires(post): dirac-devel
  58. #Requires(post): libofa-devel
  59. Requires(post): libdvdnav-devel
  60. Requires(post): jasper-devel
  61. Requires(post): openssl-devel
  62. Requires(post): twolame-devel
  63. Requires(post): libvdpau-devel
  64. Requires(post): librtmp-devel
  65. Requires(post): libvpx-devel
  66. BuildArch: noarch
  67. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  68. Packager: munepi
  69. %description
  70. GStreamer is a streaming media framework, based on graphs of elements which
  71. operate on media data.
  72. This package contains plug-ins that have licensing issues, aren't tested
  73. well enough, or the code is not of good enough quality.
  74. If you install this package, it automaticaly downloads source
  75. code, compile it, and create rpm packages of
  76. %{pkgname}-%{version}.
  77. And the created rpm packages are automatically installed
  78. if installation is executed by apt-get command or synaptic
  79. package manager.
  80. [Note]
  81. This package requires many other packages to compile
  82. targetsoftware. So it consume more disk space than usual.
  83. Also installation takes logner time because of compilation.
  84. (This will take a few minutes to quarter or half of an hour,
  85. depends on building environment)
  86. [About self-build package]
  87. For some kind of software, distributing of binary package
  88. may viorate the patent or law. Therefore we chose self-build
  89. packge, create binary package on your machine, for such kind
  90. of softwares instead of distributing binary package.
  91. Please obey the national law when you use the created binary
  92. packages. And if you want to use the softwares using patented
  93. thechnology, it may be required to get a permission, make an
  94. agreement or purchas a license. Please consider it with your
  95. purpose or way of use and take appropriate action.
  96. # '
  97. %description -l ja
  98. gstreamer-plugins-bad は GStreamer ストリーミングメディア
  99. フレームワーク用 bad プラグイン集です。
  100. このパッケージをインストールすると、自動的にソースコードを
  101. ダウンロードしてコンパイルし、%{pkgname}-%{version}
  102. の rpm パッケージを作成します。
  103. また apt-get コマンドや synaptic パッケージマネージャから実行
  104. した場合は、作成された rpm パッケージのインストールも自動的に
  105. 行います。
  106. [注意]
  107. コンパイルに必要な多くの関連パッケージを要求するので通常より
  108. ディスクの領域を多く消費します。
  109. またインストール時にコンパイルを行うため、通常より時間がかか
  110. る場合があります。(環境にもよりますが数分から数十分程度)
  111. [self-build パッケージについて]
  112. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  113. 違反する可能性があるものがあります。その為、このような問題が
  114. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  115. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  116. ジという方法を採っています。
  117. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  118. アのライセンス、および利用する国の各種法令に従ってください。
  119. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  120. センスの購入などが必要となる場合がありますので、利用する目的
  121. や形態に応じて各自で判断し適切な対応を取ってください。
  122. %prep
  123. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  124. %install
  125. %{__rm} -rf ${RPM_BUILD_ROOT}
  126. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  127. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  128. %clean
  129. %{__rm} -rf ${RPM_BUILD_ROOT}
  130. %posttrans
  131. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 333000
  132. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
  133. %{pkgname}-devel-%{version}-%{release}
  134. %files
  135. %defattr(-,root,root)
  136. %{_datadir}/%{name}
  137. %changelog
  138. * Wed Mar 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.23-1
  139. - update to 0.10.23
  140. * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.22-1
  141. - new upstream release
  142. - added Requires(post): libvpx-devel
  143. * Wed Nov 2 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.21-2
  144. - s/self-build-libdvdnav/libdvdnav/
  145. * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.21-1
  146. - new upstream release
  147. - added Requires(post):
  148. - libmms-devel
  149. - librtmp-devel
  150. * Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.20-1
  151. - new upstream release
  152. * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.19-1
  153. - new upstream release
  154. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.18-1
  155. - new upstream release
  156. - renamed %%{Source0} to gstreamer-plugins-bad-vl.spec
  157. - added Requires(post): libvdpau-devel
  158. - check version between original spec and self-build spec in %%prep
  159. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.17-1
  160. - new upstream release
  161. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.12-1
  162. - initial build for Vine Linux.