self-build-avidemux-vl.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. %define pkgname avidemux
  2. %define name self-build-%{pkgname}
  3. %define version 2.5.2
  4. %define release 3%{?_dist_release}
  5. %define source0path %{pkgname}/%{pkgname}_%{version}.tar.gz
  6. Summary: Package to automatically build %{pkgname} rpm package
  7. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. Obsoletes: %{pkgname}-qt < 2.5.0
  12. Source0: %{pkgname}-vl.spec
  13. Source1: %{pkgname}-gtk.desktop
  14. Source2: %{pkgname}-qt.desktop
  15. Source100: 2.5.0-coreImage-parallel-build.patch
  16. Source101: avidemux-2.5-pulseaudio-default.patch
  17. Source102: avidemux-2.4-qt4.patch
  18. Source103: avidemux-2.5-i18n.patch
  19. Source104: avidemux-2.5-libmpeg2enc-altivec.patch
  20. Source105: avidemux-2.5-checkfunction-includes.patch
  21. Source106: avidemux-2.5.1-tmplinktarget.patch
  22. Source110: avidemux-2.4.3-alsa-device-default.patch
  23. Source111: avidemux-2.5.2-no-qt4-ui.patch
  24. License: GPLv2+
  25. Group: Restricted Software
  26. Requires(post): self-build-setup >= 0.9.9
  27. Requires(post): cmake
  28. Requires(post): gettext
  29. Requires(post): nasm >= 0.98.38
  30. Requires(post): libxml2-devel >= 2.6.8
  31. Requires(post): fontconfig-devel
  32. Requires(post): freetype2-devel
  33. Requires(post): js-devel
  34. Requires(post): libXv-devel
  35. Requires(post): libXmu-devel
  36. Requires(post): libsamplerate-devel
  37. Requires(post): jack-audio-connection-kit-devel
  38. Requires(post): alsa-lib-devel >= 1.0.3
  39. Requires(post): esound-devel >= 0.2.0
  40. Requires(post): SDL-devel >= 1.2.7
  41. Requires(post): libogg-devel >= 1.1
  42. Requires(post): libvorbis-devel >= 1.0.1
  43. Requires(post): self-build-faad2 >= 2.0
  44. Requires(post): self-build-libmad >= 0.15.1
  45. Requires(post): self-build-a52dec >= 0.7.4
  46. Requires(post): self-build-faac >= 1.24
  47. Requires(post): self-build-lame >= 3.96.1
  48. Requires(post): self-build-libdca
  49. Requires(post): self-build-xvidcore >= 1.0.2
  50. Requires(post): self-build-x264 >= 0.0.0-9.20090522
  51. Requires(post): self-build-ffmpeg
  52. Requires(post): desktop-file-utils
  53. Requires(post): gtk2-devel >= 2.8.0
  54. Requires(post): cairo-devel
  55. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  56. Requires(post): qt4-devel
  57. Requires(post): qt4-designer
  58. %endif
  59. BuildArch: noarch
  60. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  61. Packager: munepi
  62. %description
  63. Avidemux is a free video editor designed for simple cutting, filtering and
  64. encoding tasks. It supports many file types, including AVI, DVD compatible
  65. MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
  66. using projects, job queue and powerful scripting capabilities.
  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. Avidemux は簡単なカット,フィルターリング,エンコード作業のために
  85. デザインされたフリーな動画エディターです.
  86. 種々のコーデックを使い,AVI, DVD 互換 MPEG, MP4, ASF を含む
  87. たくさんのファイル形式に対応しています.
  88. タスクは,プロジェクトやジョブキュー,強力なスクリプト処理により
  89. 自動的に行われます.
  90. このパッケージをインストールすると、自動的にソースコードを
  91. ダウンロードしてコンパイルし、%{pkgname}-%{version}
  92. の rpm パッケージを作成します。
  93. また apt-get コマンドや synaptic パッケージマネージャから実行
  94. した場合は、作成された rpm パッケージのインストールも自動的に
  95. 行います。
  96. [注意]
  97. コンパイルに必要な多くの関連パッケージを要求するので通常より
  98. ディスクの領域を多く消費します。
  99. またインストール時にコンパイルを行うため、通常より時間がかか
  100. る場合があります。(環境にもよりますが数分から数十分程度)
  101. [self-build パッケージについて]
  102. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  103. 違反する可能性があるものがあります。その為、このような問題が
  104. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  105. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  106. ジという方法を採っています。
  107. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  108. アのライセンス、および利用する国の各種法令に従ってください。
  109. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  110. センスの購入などが必要となる場合がありますので、利用する目的
  111. や形態に応じて各自で判断し適切な対応を取ってください。
  112. %prep
  113. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  114. %install
  115. %{__rm} -rf ${RPM_BUILD_ROOT}
  116. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  117. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  118. %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  119. %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  120. %{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  121. %{__install} -m 644 %{SOURCE101} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  122. %{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  123. %{__install} -m 644 %{SOURCE103} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  124. %{__install} -m 644 %{SOURCE104} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  125. %{__install} -m 644 %{SOURCE105} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  126. %{__install} -m 644 %{SOURCE106} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  127. %{__install} -m 644 %{SOURCE110} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  128. %{__install} -m 644 %{SOURCE111} ${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 \
  133. http://download{,2}.berlios.de/%{source0path} 3126000
  134. %files
  135. %defattr(-,root,root)
  136. %{_datadir}/%{name}
  137. %changelog
  138. * Sat Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-3
  139. - change release to sync with avidemux-vl.spec
  140. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
  141. - renamed %%{Source0} to avidemux-vl.spec
  142. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
  143. - new upstream release
  144. - update patches accordingly
  145. - added Obsoletes: %{pkgname}-qt < 2.5.0
  146. - applied a progress bar to show approximately building time
  147. * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.4.4-2
  148. - applied avidemux-2.4.4-cmake.patch
  149. - check version between original spec and self-build spec in %%prep
  150. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.4-1
  151. - new upstream release
  152. - update patches accordingly
  153. - build with x264 >= 0.0.0-9.20090522
  154. - dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
  155. - added BuildArch: noarch
  156. - avoided to execute self-build-rpm.sh on RPM transaction
  157. - moved %%post actions to %%posttrans
  158. * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
  159. - corrected release number in avidemux.spec
  160. - dropped ExclusiveArch:
  161. * Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.3-6
  162. - add ppc to ExclusiveArch
  163. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
  164. - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel
  165. - changed to PreReq: self-build-libmad >= 0.15.1 from libmad-devel
  166. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
  167. - fixed %%files section
  168. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
  169. - added avidemux-x264.patch from Gentoo
  170. * Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
  171. - applied avidemux-2.4.3-alsa-device-default.patch
  172. * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
  173. - initial build based on RPM Fusion of Fedora package
  174. - changed to BuildRequires: gettext from gettext-devel
  175. - added BuildRequires: qt4-designer for gtk subpackage
  176. - dropped avidemux-2.4.3-qt4.patch
  177. ### end of file