self-build-gstreamer-plugins-ugly-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. %define pkgname gstreamer-plugins-ugly
  2. %define _gst_ver 0.10.14
  3. %define _gstpb_ver 0.10.3
  4. %define release 1%{?_dist_release}
  5. %define sourceurl http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-%{_gst_ver}.tar.bz2
  6. Summary: Package to automatically build %{pkgname} rpm package
  7. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  8. Name: self-build-%{pkgname}
  9. Version: %{_gst_ver}
  10. Release: %{release}
  11. Source0: %{pkgname}-vl.spec
  12. Source101: gstreamer-plugins-ugly-x264.patch
  13. License: LGPL
  14. Group: Restricted Software
  15. Requires(post): self-build-setup >= 0.9.9
  16. # (build)requies of target package.
  17. Requires(post): libogg-devel, libtheora-devel, libvorbis-devel
  18. Requires(post): self-build-ffmpeg
  19. Requires(post): gstreamer-devel >= %{_gst_ver}
  20. Requires(post): gstreamer-plugins-base-devel >= %{_gstpb_ver}
  21. #Requires(post): gtk-doc >= 1.3
  22. Requires(post): python >= 2.1, python-pyxml
  23. Requires(post): glib2-devel >= 2.6
  24. Requires(post): liboil-devel >= 0.3.0
  25. Requires(post): self-build-libmad >= 0.15
  26. Requires(post): libid3tag-devel >= 0.15
  27. Requires(post): self-build-libmpeg2
  28. Requires(post): self-build-a52dec
  29. Requires(post): self-build-lame
  30. BuildArch: noarch
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. Packager: munepi
  33. %description
  34. gstreamer-plugins-ugly is a set of ugly plugins for Gstreamer
  35. streaming-media framework.
  36. If you install this package, it automaticaly downloads source
  37. code, compile it, and create rpm packages of
  38. %{pkgname}-%{version}.
  39. And the created rpm packages are automatically installed
  40. if installation is executed by apt-get command or synaptic
  41. package manager.
  42. [Note]
  43. This package requires many other packages to compile
  44. targetsoftware. So it consume more disk space than usual.
  45. Also installation takes logner time because of compilation.
  46. (This will take a few minutes to quarter or half of an hour,
  47. depends on building environment)
  48. [About self-build package]
  49. For some kind of software, distributing of binary package
  50. may viorate the patent or law. Therefore we chose self-build
  51. packge, create binary package on your machine, for such kind
  52. of softwares instead of distributing binary package.
  53. Please obey the national law when you use the created binary
  54. packages. And if you want to use the softwares using patented
  55. thechnology, it may be required to get a permission, make an
  56. agreement or purchas a license. Please consider it with your
  57. purpose or way of use and take appropriate action.
  58. %description -l ja
  59. gstreamer-plugins-ugly は GStreamer ストリーミングメディア
  60. フレームワーク用 ugly プラグイン集です。
  61. このパッケージをインストールすると、自動的にソースコードを
  62. ダウンロードしてコンパイルし、%{pkgname}-%{version}
  63. の rpm パッケージを作成します。
  64. また apt-get コマンドや synaptic パッケージマネージャから実行
  65. した場合は、作成された rpm パッケージのインストールも自動的に
  66. 行います。
  67. [注意]
  68. コンパイルに必要な多くの関連パッケージを要求するので通常より
  69. ディスクの領域を多く消費します。
  70. またインストール時にコンパイルを行うため、通常より時間がかか
  71. る場合があります。(環境にもよりますが数分から数十分程度)
  72. [self-build パッケージについて]
  73. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  74. 違反する可能性があるものがあります。その為、このような問題が
  75. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  76. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  77. ジという方法を採っています。
  78. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  79. アのライセンス、および利用する国の各種法令に従ってください。
  80. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  81. センスの購入などが必要となる場合がありますので、利用する目的
  82. や形態に応じて各自で判断し適切な対応を取ってください。
  83. %prep
  84. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  85. %install
  86. %{__rm} -rf ${RPM_BUILD_ROOT}
  87. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  88. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  89. %{__install} -m 644 %{SOURCE101} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  90. %clean
  91. %{__rm} -rf ${RPM_BUILD_ROOT}
  92. %posttrans
  93. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 35000
  94. %files
  95. %defattr(-,root,root)
  96. %{_datadir}/%{name}
  97. %changelog
  98. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.14-1
  99. - new upstream relase
  100. - renamed %%{Source0} to gstreamer-plugins-ugly-vl.spec
  101. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.13-1
  102. - new upstream relase
  103. * Sat Oct 24 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.12-1
  104. - new upstream relase
  105. - added Requires(post): self-build-libmpeg2
  106. - enable mpeg2dec with libmpeg2-devel in %%configure
  107. - check version between original spec and self-build spec in %%prep
  108. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.11-3
  109. - avoided to execute self-build-rpm.sh on RPM transaction
  110. - moved %%post actions to %%posttrans
  111. * Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.11-2
  112. - added BuildArch: noarch
  113. - dropped PreReq: gtk-doc >= 1.3
  114. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.11-1
  115. - new upstream relase
  116. * Mon Feb 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.10-2
  117. - changed to PreReq: self-build-libmad >= 0.15 from libmad-devel
  118. * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.10-1
  119. - new upstream relase
  120. * Sun Aug 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.8-1
  121. - initial build for Vine Linux.