self-build-gpac-vl.spec 8.1 KB

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