self-build-gstreamer1-plugins-bad-vl.spec 8.2 KB

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