self-build-gpac-vl.spec 10 KB

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