self-build-gpac-vl.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. %define pkgname gpac
  2. %define name self-build-%{pkgname}
  3. %define version 0.4.5
  4. %define release 8%{?_dist_release}
  5. %define sourceurl0 http://prdownloads.sourceforge.net/gpac/%{pkgname}-%{version}.tar.gz
  6. #% define sourceurl0 http://dl.sourceforge.net/sourceforge/gpac/%{pkgname}-%{version}.tar.gz
  7. Summary: Package to automatically build %{pkgname} rpm package
  8. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  9. Name: %{name}
  10. Version: %{version}
  11. Release: %{release}
  12. Source0: %{pkgname}-vl.spec
  13. Source100: gpac-0.4.5-makefix.patch
  14. Source101: gpac-0.4.5-soname.patch
  15. Source102: gpac-0.4.5-amr.patch
  16. Source103: gpac-0.4.5-lib64.patch
  17. Source104: gpac-0.4.5-system_openjpeg.patch
  18. Source106: gpac-0.4.5-shared_sggen.patch
  19. Source107: gpac-0.4.5-libxml2.patch
  20. Source108: gpac-ppc64.patch
  21. Source109: gpac-0.4.5-ffmpeg.patch
  22. Source150: gpac-0.4.5-mozjs-vine.patch
  23. License: LGPLv2+
  24. Group: Restricted Software
  25. Requires(post): self-build-setup >= 0.9.9
  26. Requires(post): ImageMagick
  27. Requires(post): SDL-devel
  28. Requires(post): librsvg2-devel >= 2.5.0
  29. Requires(post): libGLU-devel
  30. Requires(post): freeglut-devel
  31. Requires(post): freetype2-devel >= 2.1.4
  32. Requires(post): libjpeg-devel
  33. Requires(post): libpng-devel >= 1.2.5
  34. Requires(post): libxml2-devel
  35. Requires(post): openssl-devel
  36. Requires(post): openjpeg-devel
  37. Requires(post): pulseaudio-libs-devel
  38. Requires(post): zlib-devel
  39. Requires(post): libogg-devel libvorbis-devel libtheora-devel
  40. Requires(post): libXt-devel
  41. Requires(post): libXpm-devel
  42. Requires(post): libXv-devel
  43. #Requires(post): wxGTK-devel
  44. Requires(post): xmlrpc-epi-devel
  45. %{?_with_mozilla:Requires(post): gecko-devel}
  46. Requires(post): doxygen
  47. Requires(post): desktop-file-utils
  48. %{?_with_amr:Requires(post): amrnb-devel amrwb-devel}
  49. Requires(post): self-build-a52dec
  50. Requires(post): self-build-faad2
  51. Requires(post): self-build-libmad
  52. Requires(post): self-build-xvidcore >= 1.0.0
  53. ##Requires(post): self-build-ffmpeg
  54. BuildArch: noarch
  55. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  56. Packager: munepi
  57. %description
  58. GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
  59. from scratch in ANSI C. The original development goal is to provide a clean,
  60. small and flexible alternative to the MPEG-4 Systems reference software.
  61. GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
  62. X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
  63. MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
  64. for MP4 and 3GPP(2) files and many tools for scene descriptions
  65. (MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
  66. If you install this package, it automaticaly downloads source
  67. code ,compile it, and create rpm packages of %{pkgname}-%{version}.
  68. And the created rpm packages are automatically installed
  69. if installation is executed by apt-get command or synaptic
  70. package manager.
  71. [Note]
  72. This package requires many other packages to compile
  73. targetsoftware. So it consume more disk space than usual.
  74. Also installation takes logner time because of compilation.
  75. (This will take a few minutes to quarter or half of an hour,
  76. depends on building environment)
  77. [About self-build package]
  78. For some kind of software, distributing of binary package
  79. may viorate the patent or law. Therefore we chose self-build
  80. packge, create binary package on your machine, for such kind
  81. of softwares instead of distributing binary package.
  82. Please obey the national law when you use the created binary
  83. packages. And if you want to use the softwares using patented
  84. thechnology, it may be required to get a permission, make an
  85. agreement or purchas a license. Please consider it with your
  86. purpose or way of use and take appropriate action.
  87. %description -l ja
  88. GPAC は ANSI C でスクラッチから開発されている MPEG-4 システムの標準に基づいた
  89. マルチメディアフレームワークです。
  90. 当初の開発目標には、MPEG-4 システムリファレンスソフトウェアに
  91. 簡潔で小さく柔軟な代替を提供することです。
  92. GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
  93. X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
  94. MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
  95. for MP4 and 3GPP(2) files and many tools for scene descriptions
  96. (MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
  97. このパッケージをインストールすると、自動的にソースコードを
  98. ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm
  99. パッケージを作成します。
  100. また apt-get コマンドや synaptic パッケージマネージャから実行
  101. した場合は、作成された rpm パッケージのインストールも自動的に
  102. 行います。
  103. [注意]
  104. コンパイルに必要な多くの関連パッケージを要求するので通常より
  105. ディスクの領域を多く消費します。
  106. またインストール時にコンパイルを行うため、通常より時間がかか
  107. る場合があります。(環境にもよりますが数分から数十分程度)
  108. [self-build パッケージについて]
  109. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  110. 違反する可能性があるものがあります。その為、このような問題が
  111. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  112. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  113. ジという方法を採っています。
  114. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  115. アのライセンス、および利用する国の各種法令に従ってください。
  116. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  117. センスの購入などが必要となる場合がありますので、利用する目的
  118. や形態に応じて各自で判断し適切な対応を取ってください。
  119. %prep
  120. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  121. %install
  122. %{__rm} -rf ${RPM_BUILD_ROOT}
  123. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  124. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  125. %{__install} -m 644 \
  126. %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} \
  127. %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} \
  128. ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  129. %clean
  130. %{__rm} -rf ${RPM_BUILD_ROOT}
  131. %posttrans
  132. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 370000
  133. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
  134. %{pkgname}-libs-%{version}-%{release} \
  135. %{pkgname}-devel-%{version}-%{release} \
  136. %{pkgname}-devel-static-%{version}-%{release}
  137. %files
  138. %defattr(-,root,root)
  139. %{_datadir}/%{name}
  140. %changelog
  141. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8
  142. - renamed %%{Source0} to gpac-vl.spec
  143. * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7
  144. - rebuild
  145. * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6
  146. - changed from http://prdownloads.sourceforge.net in sourceurl0
  147. - added devel-static subpackage in gpac.spec
  148. - added gpac-0.4.5-mozjis-vine.patch
  149. (do not install in /usr/share/self-build-gpac)
  150. * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-5
  151. - avoided to execute self-build-rpm.sh on RPM transaction
  152. - moved %%post actions to %%posttrans
  153. * Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4
  154. - changed from http://prdownloads.sourceforge.net to http://dl.sourceforge.net
  155. in sourceurl0
  156. - added BuildArch: noarch
  157. * Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3
  158. - applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454)
  159. * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2
  160. - dropped PreReq: self-build-ffmpeg
  161. - rebuilt with ffmpeg-devel by self-build-ffmpeg
  162. * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1
  163. - initial bulid