self-build-gpac-vl.spec 8.9 KB

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