self-build-avidemux-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. %define pkgname avidemux
  2. %define name self-build-%{pkgname}
  3. %define version 2.5.5
  4. %define release 1%{?_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: avidemux-cli avidemux-gui avidemux-qt
  12. Obsoletes: avidemux-devel <= 2.5.5
  13. Source0: %{pkgname}-vl.spec
  14. Source1: %{pkgname}-gtk.desktop
  15. Source2: %{pkgname}-qt.desktop
  16. # Patch0 obtained from avidemux-2.5.0-patches-1.tar.bz2:
  17. # http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/avidemux-2.5.0-patches-1.tar.bz2
  18. Source100: 2.5.0-coreImage-parallel-build.patch
  19. Source101: avidemux-2.5-pulseaudio-default.patch
  20. Source102: avidemux-2.4-qt4.patch
  21. # Prevents avidemux from creating the symlinks for .so files, which we do below
  22. Source103: avidemux-2.5.3-tmplinktarget.patch
  23. # libADM_xvidRateCtl.so and libADM_vidEnc_pluginOptions.so are supposed to be
  24. # build statically according to upstream... Let's get them installed instead
  25. Source104: avidemux-2.5.3-mpeg2enc.patch
  26. Source105: avidemux-2.5.3-pluginlibs.patch
  27. # Source108 obtained from http://lists.rpmfusion.org/pipermail/rpmfusion-developers/2010-October/008645.html
  28. #Source106: avidemux_2.5.4-ffmpeg-aac.patch
  29. Source106: avidemux_2.5.5-ffmpeg_aac.patch
  30. Source107: avidemux-2.5.5-gcc46_tmp_fix.patch
  31. # Source10 needed for version of x264 in F15/rawhide.
  32. # Use system libraries
  33. Source108: avidemux-2.5.4-libass.patch
  34. Source109: avidemux-2.5.4-liba52.patch
  35. Source110: avidemux-2.5.4-libmad.patch
  36. Source111: avidemux-2.5.4-libtwolame.patch
  37. Source112: avidemux-2.5.5_fix_lav_audio_encoder.patch
  38. # Source10 for ABI change in x264 115.
  39. Source113: avidemux-2.5.5-x264_i_to_b_open_gop.patch
  40. # Uses a header file not found in the standard package
  41. #Source116: avidemux-2.5.4-mpeg2enc.patch
  42. ## Vine customization patches
  43. Source150: avidemux-2.5.2-no-qt4-ui.patch
  44. License: GPLv2+
  45. Group: Restricted Software
  46. Requires(post): self-build-setup >= 0.9.9
  47. Requires(post): cmake
  48. Requires(post): gettext
  49. Requires(post): nasm >= 0.98.38
  50. Requires(post): libxml2-devel >= 2.6.8
  51. Requires(post): fontconfig-devel
  52. Requires(post): freetype2-devel
  53. Requires(post): js-devel
  54. Requires(post): libXv-devel
  55. Requires(post): libXmu-devel
  56. Requires(post): libsamplerate-devel
  57. Requires(post): jack-audio-connection-kit-devel
  58. Requires(post): alsa-lib-devel >= 1.0.3
  59. Requires(post): SDL-devel >= 1.2.7
  60. Requires(post): libogg-devel >= 1.1
  61. Requires(post): libvorbis-devel >= 1.0.1
  62. Requires(post): self-build-faad2 >= 2.0
  63. Requires(post): self-build-libmad >= 0.15.1
  64. Requires(post): self-build-a52dec >= 0.7.4
  65. Requires(post): self-build-faac >= 1.24
  66. Requires(post): self-build-lame >= 3.96.1
  67. Requires(post): self-build-libdca
  68. Requires(post): self-build-xvidcore >= 1.0.2
  69. Requires(post): self-build-x264 >= 0.0.0-9.20090522
  70. Requires(post): self-build-ffmpeg
  71. Requires(post): desktop-file-utils
  72. Requires(post): gtk2-devel >= 2.8.0
  73. Requires(post): cairo-devel
  74. %if %{?with_qt_ui:1} %{!?with_qt_ui:0}
  75. Requires(post): qt4-devel
  76. Requires(post): qt4-designer
  77. %endif
  78. BuildArch: noarch
  79. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  80. Packager: munepi
  81. %description
  82. Avidemux is a free video editor designed for simple cutting, filtering and
  83. encoding tasks. It supports many file types, including AVI, DVD compatible
  84. MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
  85. using projects, job queue and powerful scripting capabilities.
  86. [Note]
  87. This package requires many other packages to compile
  88. targetsoftware. So it consume more disk space than usual.
  89. Also installation takes logner time because of compilation.
  90. (This will take a few minutes to quarter or half of an hour,
  91. depends on building environment)
  92. [About self-build package]
  93. For some kind of software, distributing of binary package
  94. may viorate the patent or law. Therefore we chose self-build
  95. packge, create binary package on your machine, for such kind
  96. of softwares instead of distributing binary package.
  97. Please obey the national law when you use the created binary
  98. packages. And if you want to use the softwares using patented
  99. thechnology, it may be required to get a permission, make an
  100. agreement or purchas a license. Please consider it with your
  101. purpose or way of use and take appropriate action.
  102. %description -l ja
  103. Avidemux は簡単なカット,フィルターリング,エンコード作業のために
  104. デザインされたフリーな動画エディターです.
  105. 種々のコーデックを使い,AVI, DVD 互換 MPEG, MP4, ASF を含む
  106. たくさんのファイル形式に対応しています.
  107. タスクは,プロジェクトやジョブキュー,強力なスクリプト処理により
  108. 自動的に行われます.
  109. このパッケージをインストールすると、自動的にソースコードを
  110. ダウンロードしてコンパイルし、%{pkgname}-%{version}
  111. の rpm パッケージを作成します。
  112. また apt-get コマンドや synaptic パッケージマネージャから実行
  113. した場合は、作成された rpm パッケージのインストールも自動的に
  114. 行います。
  115. [注意]
  116. コンパイルに必要な多くの関連パッケージを要求するので通常より
  117. ディスクの領域を多く消費します。
  118. またインストール時にコンパイルを行うため、通常より時間がかか
  119. る場合があります。(環境にもよりますが数分から数十分程度)
  120. [self-build パッケージについて]
  121. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  122. 違反する可能性があるものがあります。その為、このような問題が
  123. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  124. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  125. ジという方法を採っています。
  126. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  127. アのライセンス、および利用する国の各種法令に従ってください。
  128. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  129. センスの購入などが必要となる場合がありますので、利用する目的
  130. や形態に応じて各自で判断し適切な対応を取ってください。
  131. %prep
  132. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  133. %install
  134. %{__rm} -rf ${RPM_BUILD_ROOT}
  135. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  136. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  137. %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  138. %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  139. %{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  140. %{__install} -m 644 %{SOURCE101} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  141. %{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  142. %{__install} -m 644 %{SOURCE103} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  143. %{__install} -m 644 %{SOURCE104} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  144. %{__install} -m 644 %{SOURCE105} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  145. %{__install} -m 644 %{SOURCE106} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  146. %{__install} -m 644 %{SOURCE107} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  147. %{__install} -m 644 %{SOURCE108} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  148. %{__install} -m 644 %{SOURCE109} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  149. %{__install} -m 644 %{SOURCE110} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  150. %{__install} -m 644 %{SOURCE111} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  151. %{__install} -m 644 %{SOURCE112} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  152. %{__install} -m 644 %{SOURCE113} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  153. %{__install} -m 644 %{SOURCE150} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  154. %clean
  155. %{__rm} -rf ${RPM_BUILD_ROOT}
  156. %posttrans
  157. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \
  158. http://download{,2}.berlios.de/%{source0path} 3922000
  159. %files
  160. %defattr(-,root,root)
  161. %{_datadir}/%{name}
  162. %changelog
  163. * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.5-1
  164. - new upstream release
  165. - Obsoletes: avidemux-cli avidemux-gui avidemux-qt avidemux-devel <= 2.5.5
  166. * Wed Jul 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-5
  167. - dropped Requires(post): esound-devel
  168. * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.2-4
  169. - add %%{SOURCE107}
  170. * Sat Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-3
  171. - change release to sync with avidemux-vl.spec
  172. * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-2
  173. - renamed %%{Source0} to avidemux-vl.spec
  174. * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.5.2-1
  175. - new upstream release
  176. - update patches accordingly
  177. - added Obsoletes: %{pkgname}-qt < 2.5.0
  178. - applied a progress bar to show approximately building time
  179. * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.4.4-2
  180. - applied avidemux-2.4.4-cmake.patch
  181. - check version between original spec and self-build spec in %%prep
  182. * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.4-1
  183. - new upstream release
  184. - update patches accordingly
  185. - build with x264 >= 0.0.0-9.20090522
  186. - dropped avidemux-2.4.3-ppc.patch, avidemux-x264.patch
  187. - added BuildArch: noarch
  188. - avoided to execute self-build-rpm.sh on RPM transaction
  189. - moved %%post actions to %%posttrans
  190. * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 2.4.3-7
  191. - corrected release number in avidemux.spec
  192. - dropped ExclusiveArch:
  193. * Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.3-6
  194. - add ppc to ExclusiveArch
  195. * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-5
  196. - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel
  197. - changed to PreReq: self-build-libmad >= 0.15.1 from libmad-devel
  198. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-4
  199. - fixed %%files section
  200. * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-3
  201. - added avidemux-x264.patch from Gentoo
  202. * Mon Dec 08 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-2
  203. - applied avidemux-2.4.3-alsa-device-default.patch
  204. * Mon Nov 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.4.3-1
  205. - initial build based on RPM Fusion of Fedora package
  206. - changed to BuildRequires: gettext from gettext-devel
  207. - added BuildRequires: qt4-designer for gtk subpackage
  208. - dropped avidemux-2.4.3-qt4.patch
  209. ### end of file