[615] | 1 | %define gpac_postinstall \ |
---|
| 2 | gpac_postinstall_sh=$(mktemp) && \ |
---|
| 3 | rpm -q --scripts self-build-gpac | \ |
---|
| 4 | /bin/sed -e 's|posttrans[[:blank:]].*|\#!/bin/bash|' > ${gpac_postinstall_sh} && \ |
---|
| 5 | /bin/bash ${gpac_postinstall_sh} && /bin/rm -f ${gpac_postinstall_sh} |
---|
| 6 | |
---|
| 7 | %define pkgname ffmpeg |
---|
| 8 | %define name self-build-%{pkgname} |
---|
[3763] | 9 | %define version 0.6.3 |
---|
[3126] | 10 | #% define svndate 20110326 |
---|
[3538] | 11 | %define release 1%{?svndate:.%svndate}%{?_dist_release} |
---|
[615] | 12 | |
---|
[1373] | 13 | %define sourceurl0 http://ffmpeg.org/releases/%{pkgname}-%{version}.tar.bz2 |
---|
| 14 | |
---|
[1258] | 15 | ## available for v0.6 or lower |
---|
| 16 | %define with_libfaad 1 |
---|
| 17 | |
---|
[3126] | 18 | %define with_faac 1 |
---|
| 19 | |
---|
[1258] | 20 | %define with_vaapi 1 |
---|
[1306] | 21 | %define with_libvpx 1 |
---|
[1258] | 22 | |
---|
[615] | 23 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 24 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 25 | Name: %{name} |
---|
| 26 | Version: %{version} |
---|
| 27 | Release: %{release} |
---|
| 28 | Source0: %{pkgname}-vl.spec |
---|
[1373] | 29 | #Source1: %{pkgname}-%{?svndate:%svndate}%{!?svndate:%version}.tar.bz2 |
---|
[615] | 30 | Source2: %{pkgname}-snapshot.sh |
---|
| 31 | Source90: ffmpeg.1.gz |
---|
| 32 | Source91: ffplay.1.gz |
---|
| 33 | Source92: ffserver.1.gz |
---|
[788] | 34 | Source93: ffprobe.1.gz |
---|
[615] | 35 | |
---|
| 36 | License: GPLv2+ |
---|
| 37 | Group: Restricted Software |
---|
| 38 | |
---|
| 39 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 40 | #Requires(post): subversion |
---|
| 41 | |
---|
| 42 | # (build)requies of target package. |
---|
| 43 | Requires(post): bzip2-devel |
---|
| 44 | Requires(post): gsm-devel |
---|
| 45 | Requires(post): imlib2-devel |
---|
| 46 | Requires(post): libdc1394-devel |
---|
| 47 | Requires(post): libraw1394-devel |
---|
[3126] | 48 | Requires(post): librtmp-devel >= 2.3 |
---|
[615] | 49 | Requires(post): libtheora-devel |
---|
[3126] | 50 | %{?with_vaapi:Requires(post): libva-devel >= 0.31.0} |
---|
[615] | 51 | Requires(post): libvdpau-devel |
---|
[3126] | 52 | Requires(post): libvorbis-devel |
---|
[1306] | 53 | %{?with_libvpx:Requires(post): libvpx-devel >= 0.9.1} |
---|
[3126] | 54 | %{?_with_opencore_amr:Requires(post): opencore-amr-devel} |
---|
[615] | 55 | ##Requires(post): openjpeg-devel |
---|
[3126] | 56 | ##Requires(post): schroedinger-devel |
---|
[615] | 57 | Requires(post): SDL-devel |
---|
| 58 | Requires(post): speex-devel |
---|
| 59 | ##Requires(post): texi2html |
---|
| 60 | Requires(post): zlib-devel |
---|
| 61 | Requires(post): libogg-devel |
---|
| 62 | %ifarch %{ix86} x86_64 |
---|
| 63 | Requires(post): yasm |
---|
| 64 | %endif |
---|
[3126] | 65 | Requires(post): self-build-a52dec |
---|
[615] | 66 | Requires(post): self-build-faac |
---|
[3126] | 67 | Requires(post): self-build-faad2 |
---|
[615] | 68 | Requires(post): self-build-lame |
---|
| 69 | Requires(post): self-build-libdca |
---|
[3126] | 70 | Requires(post): self-build-x264 >= 0.0.0-15.20110322 |
---|
| 71 | Requires(post): self-build-xvidcore |
---|
[615] | 72 | |
---|
| 73 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 74 | |
---|
| 75 | Packager: munepi |
---|
| 76 | |
---|
| 77 | %description |
---|
| 78 | FFMpeg is a complete and free Internet live audio and video |
---|
| 79 | broadcasting solution for Linux/Unix. It also includes a |
---|
| 80 | digital VCR. It can encode in real time in many formats |
---|
| 81 | including MPEG1 audio and video, MPEG4, h263, ac3, asf, avi, |
---|
| 82 | real, mjpeg, and flash. |
---|
| 83 | |
---|
| 84 | If you install this package, it automaticaly downloads source |
---|
| 85 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 86 | And the created rpm packages are automatically installed |
---|
| 87 | if installation is executed by apt-get command or synaptic |
---|
| 88 | package manager. |
---|
| 89 | |
---|
| 90 | [Note] |
---|
| 91 | This package requires many other packages to compile |
---|
| 92 | target software. So it consume more disk space than usual. |
---|
| 93 | Also installation takes longer time because of compilation. |
---|
| 94 | (This will take a few minutes to quarter or half of an hour, |
---|
| 95 | depends on building environment) |
---|
| 96 | |
---|
| 97 | [About self-build package] |
---|
| 98 | For some kind of software, distributing of binary package |
---|
| 99 | may viorate the patent or law. Therefore we chose self-build |
---|
| 100 | packge, create binary package on your machine, for such kind |
---|
| 101 | of softwares instead of distributing binary package. |
---|
| 102 | |
---|
| 103 | Please obey the national law when you use the created binary |
---|
| 104 | packages. And if you want to use the softwares using patented |
---|
| 105 | thechnology, it may be required to get a permission, make an |
---|
| 106 | agreement or purchas a license. Please consider it with your |
---|
| 107 | purpose or way of use and take appropriate action. |
---|
| 108 | |
---|
| 109 | %description -l ja |
---|
| 110 | FFMpeg は Linux/Unix に対する完全にフリーなインターネットライ |
---|
| 111 | ブオーティオ・ビデオブロードキャスティングソリューションです. |
---|
| 112 | またデジタル VCR を含んでいます.MPEG1 オーディオ・ビデオ, |
---|
| 113 | MPEG4, h263, ac3, asf, avi, real, mjpeg, flash を含む |
---|
| 114 | 多様なフォーマットをリアルタイムにエンコードすることができます. |
---|
| 115 | |
---|
| 116 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 117 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
| 118 | の rpm パッケージを作成します。 |
---|
| 119 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 120 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 121 | 行います。 |
---|
| 122 | |
---|
| 123 | [注意] |
---|
| 124 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 125 | ディスクの領域を多く消費します。 |
---|
| 126 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 127 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 128 | |
---|
| 129 | [self-build パッケージについて] |
---|
| 130 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 131 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 132 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 133 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 134 | ジという方法を採っています。 |
---|
| 135 | |
---|
| 136 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 137 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 138 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 139 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 140 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 141 | |
---|
| 142 | %prep |
---|
| 143 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 144 | |
---|
| 145 | %install |
---|
| 146 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 147 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 148 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[1373] | 149 | #%{__install} -p -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 150 | #%{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[788] | 151 | %{__install} -m 644 %{SOURCE90} %{SOURCE91} %{SOURCE92} %{SOURCE93} \ |
---|
[615] | 152 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 153 | |
---|
| 154 | %clean |
---|
| 155 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 156 | |
---|
| 157 | %posttrans |
---|
[1373] | 158 | #/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 77000 |
---|
| 159 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 77000 |
---|
[615] | 160 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 161 | %{pkgname}-libs-%{version}-%{release} \ |
---|
| 162 | %{pkgname}-devel-%{version}-%{release} |
---|
| 163 | |
---|
| 164 | ## Rebuild gpac with ffmpeg-devel |
---|
| 165 | # set locale |
---|
| 166 | case $LANG in |
---|
| 167 | ja*)LOCALE=ja ;; |
---|
| 168 | *) LOCALE=C ;; |
---|
| 169 | esac |
---|
| 170 | |
---|
| 171 | Rebuild_gpac_C(){ |
---|
| 172 | echo -n " " |
---|
| 173 | echo "Rebuild gpac with ffmpeg-devel" |
---|
| 174 | } |
---|
| 175 | |
---|
| 176 | Rebuild_gpac_ja(){ |
---|
| 177 | echo -n " " |
---|
| 178 | echo "ffmpeg-devel で gpac をリビルドします。" |
---|
| 179 | } |
---|
| 180 | |
---|
| 181 | Rebuild_gpac_$LOCALE |
---|
| 182 | %{gpac_postinstall} |
---|
| 183 | |
---|
| 184 | |
---|
| 185 | %files |
---|
| 186 | %defattr(-,root,root) |
---|
| 187 | %{_datadir}/%{name} |
---|
| 188 | |
---|
| 189 | %changelog |
---|
[3763] | 190 | * Sun May 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-1 |
---|
| 191 | - new upstream release |
---|
| 192 | |
---|
[3538] | 193 | * Tue Apr 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.2-1 |
---|
| 194 | - new upstream release |
---|
| 195 | |
---|
[3126] | 196 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-2 |
---|
| 197 | - required latest x264 build |
---|
| 198 | - added BuildRequires: librtmp-devel >= 2.3 |
---|
| 199 | |
---|
[2156] | 200 | * Sat Oct 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-1 |
---|
| 201 | - new upstream release |
---|
| 202 | |
---|
[1373] | 203 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-4 |
---|
| 204 | - unpacked source archives |
---|
| 205 | |
---|
[1306] | 206 | * Sun Jul 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-3 |
---|
| 207 | - fixed some dependencies |
---|
| 208 | - Requires(post): libva-devel |
---|
| 209 | - Requires(post): libvpx-devel >= 0.9.1 |
---|
| 210 | |
---|
[1258] | 211 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-2 |
---|
| 212 | - new upstream release |
---|
| 213 | |
---|
[861] | 214 | * Sun Apr 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-1.20100410 |
---|
| 215 | - bumped version to pre-0.6 |
---|
| 216 | - updated source snapshot 20100410 |
---|
| 217 | |
---|
[789] | 218 | * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-12.20100401 |
---|
| 219 | - fixed self-build log size |
---|
| 220 | |
---|
[788] | 221 | * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-11.20100401 |
---|
| 222 | - added ffprobe.1.gz |
---|
| 223 | |
---|
[786] | 224 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-10.20100401 |
---|
| 225 | - updated source snapshot 20100401 |
---|
| 226 | |
---|
[615] | 227 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-8.20100216 |
---|
| 228 | - renamed %%{Source0} to ffmpeg-vl.spec |
---|
| 229 | |
---|
| 230 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-7.20100216 |
---|
| 231 | - updated source snapshot 20100216 |
---|
| 232 | - rebuild with recent x264-devel |
---|
| 233 | - updated pre-built man files: ffmpeg.1 ffplay.1 ffserver.1 |
---|
| 234 | - added BuildRequires: libvdpau-devel |
---|
| 235 | |
---|
| 236 | * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-6 |
---|
| 237 | - dropped BuildArch: noarch |
---|
| 238 | - added ffmpeg.1, ffplay.1, ffserver.1 |
---|
| 239 | |
---|
| 240 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-5 |
---|
| 241 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
| 242 | - moved %%post actions to %%posttrans |
---|
| 243 | |
---|
| 244 | * Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-4 |
---|
| 245 | - added BuildArch: noarch |
---|
| 246 | - added ffmpeg-0.5-disable-texi2html.patch |
---|
| 247 | - dropped PreReq: texi2html |
---|
| 248 | |
---|
| 249 | * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3 |
---|
| 250 | - added %%{gpac_postinstall} in %%post |
---|
| 251 | |
---|
| 252 | * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-2 |
---|
| 253 | - corrected release number |
---|
| 254 | |
---|
| 255 | * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-1 |
---|
| 256 | - new upstream release |
---|
| 257 | - added PreReq: |
---|
| 258 | - speex-devel |
---|
| 259 | - bzip2-devel |
---|
| 260 | |
---|
| 261 | * Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.7 |
---|
| 262 | - change release to sync with ffmpeg |
---|
| 263 | |
---|
| 264 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.6 |
---|
| 265 | - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel |
---|
| 266 | |
---|
| 267 | * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.5 |
---|
| 268 | - 20090202 snapshot |
---|
| 269 | |
---|
| 270 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090110.4 |
---|
| 271 | - 20090110 snapshot |
---|
| 272 | - dropped some patches |
---|
| 273 | |
---|
| 274 | * Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-15488.1 |
---|
| 275 | - source updated (r15488) |
---|
| 276 | - fixed License: GPLv2+ |
---|
| 277 | - added BuildRequires: gsm-devel libdc1394-devel libraw1394-devel |
---|
| 278 | - added BuildRequires: yasm (only %%ix86) |
---|
| 279 | - applied ffmpeg-cpu.patch (merged from RPM Fusion) |
---|
| 280 | |
---|
| 281 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-11662.3vl4 |
---|
| 282 | - spec in utf8 |
---|
| 283 | |
---|
| 284 | * Tue May 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.9-11662.2vl4 |
---|
| 285 | - run pre-allocate-rpm.sh in %%post |
---|
| 286 | - set PreReq: self-build-setup >= 0.8 |
---|
| 287 | - change release number |
---|
| 288 | |
---|
| 289 | * Wed Apr 16 2008 Atsushi SHICHI <ats777@gmail.com> 0.4.9-11662.1vl4 |
---|
| 290 | - add "Source1: %{pkgname}-%{version}.r%{svnrev}.tar.gz", |
---|
| 291 | include Source1 in the binary package. |
---|
| 292 | - drop "Source100: ffmpeg-vine.patch". |
---|
| 293 | - drop "PreReq: subversion". |
---|
| 294 | |
---|
| 295 | * Mon Apr 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128.1vl4 |
---|
| 296 | - build with new versioning policy |
---|
| 297 | - change to use svn export from svn checkout on post install |
---|
| 298 | - fix ffmpeg-vine.patch for libswscale/swscale.c.rej |
---|
| 299 | |
---|
| 300 | * Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl2 |
---|
| 301 | - For all pre-required package that is provied by self-build, |
---|
| 302 | changed to its self-build package |
---|
| 303 | |
---|
| 304 | * Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl1 |
---|
| 305 | - initial build for Vine Linux 4.2 |
---|
| 306 | - snapshot 2008/01/28 + some Rev.11662 2008/01/29 |
---|
| 307 | |
---|
| 308 | ### end of file |
---|