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