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